/* Page-Specific Styles for Cause Dashboard */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1050px;
    margin: 40px auto;
}

.card {
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

h2, h3 {
    margin-top: 0;
    color: #1a1a1a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9em;
    vertical-align: middle;
}

th {
    background: #f1f3f5;
    color: #495057;
}

button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
}

button:hover {
    background: #0052a3;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #b02a37;
}

#loading {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.commission-text {
    color: #2b8a3e;
    font-weight: bold;
}

/* Storefront Link Box Component */
.storefront-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
    border: 1px solid #cce3f5;
}

.storefront-box {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.storefront-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.95em;
    border: 1px solid #b3d1ff;
    border-radius: 4px;
    background: #ffffff;
    color: #004085;
    font-weight: 600;
    font-family: monospace;
}

/* Store Thumbnail Components */
.store-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.logo-fallback {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #e7f5ff;
    color: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    flex-shrink: 0;
    border: 1px solid #d0ebff;
}
