/**
 * SASCA 2.0 - Dashboard Styles
 */

.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dashboard-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Success Banner */
.success-banner {
    background: var(--success-light);
    border: 1px solid var(--success);
    color: #065F46;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.success-banner button {
    background: none;
    border: none;
    color: #065F46;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Businesses Section */
.businesses-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.business-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Loading & Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.loading-state {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.business-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.business-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.business-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.business-card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tier-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tier-gold {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    border: 1px solid #F59E0B;
}

.tier-silver {
    background: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    color: #374151;
    border: 1px solid #9CA3AF;
}

.tier-bronze {
    background: linear-gradient(135deg, #FED7AA, #FDBA74);
    color: #9A3412;
    border: 1px solid #F97316;
}

.tier-gray {
    background: var(--bg-gray);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.business-industry {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.business-status {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.business-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-small {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-small.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-small.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-small.btn-secondary {
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-small.btn-secondary:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.btn-small.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-small.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-gray);
}

/* Add Section */
.add-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.add-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Add Options */
.add-options {
    display: flex;
    align-items: stretch;
    gap: 2rem;
}

.add-option {
    flex: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
}

.add-option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.add-option h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.add-option p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.add-option-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.add-option-divider span {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Upload Form */
.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

.upload-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.upload-form-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.upload-options {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-gray);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.upload-or {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.25rem;
}

.upload-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.upload-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .add-options {
        flex-direction: column;
    }
    
    .add-option-divider {
        padding: 1rem 0;
    }
    
    .add-option-divider span {
        background: var(--bg-white);
        padding: 0 1rem;
    }
    
    .add-option-divider::before,
    .add-option-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
}
