/* Dashboard Core Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #22d3ee;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --gray-dark: #4b5563;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f3f4f6;
    --white: #ffffff;
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background: #f8fafc;
    color: var(--dark);
    overflow-x: hidden;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-right: none;
    box-shadow: var(--shadow);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: #fbbf24;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.brand-text {
    color: white;
}

.brand-text h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0;
}

.brand-text p {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    margin: 2px 0 0 0;
}

.sidebar-nav {
    padding: 24px 0 0 0;
}

.nav-section {
    margin-bottom: 0;
    padding-bottom: 24px;
}

.nav-section-title {
    padding: 0 24px 12px 24px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
    cursor: pointer;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fbbf24;
    border-right-color: #fbbf24;
}

.nav-item.active {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-right-color: #fbbf24;
    font-weight: 500;
}

.nav-item .icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.main-content {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
    width: calc(100% - 280px);
}

.main-header {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.page-subtitle {
    color: var(--gray);
    margin-top: 4px;
    font-size: 0.875rem;
}

.content-area {
    padding: var(--spacing-xl);
    min-height: calc(100vh - 80px);
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

/* Base stat-card styles - dashboard home page only */
.dashboard-home .stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-home .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-light);
}

.dashboard-home .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.content-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    transition: all 0.2s ease;
}

.content-card:hover {
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.card-subtitle {
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 4px;
    margin-bottom: 0;
}

.card-content {
    padding: var(--spacing-lg);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: var(--light);
    transform: translateY(-1px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
}

.close-button:hover, .close-button:focus {
    color: var(--dark);
    text-decoration: none;
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.modal-body input, .modal-body select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: right;
}

/* Invoice Details Styles */
.vat-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.vat-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.vat-details.hidden {
    display: none;
}

/* Settings Styles */
.settings-container {
    display: flex;
    height: 100%;
    gap: 2rem;
}

.settings-sidebar {
    width: 250px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    height: fit-content;
}

.settings-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.settings-nav .nav-item:hover {
    background: var(--light);
    color: var(--dark);
}

.settings-nav .nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.settings-nav .nav-icon {
    font-size: 1.25rem;
}

.settings-content {
    flex: 1;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.875rem;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.bank-accounts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bank-account-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.bank-account-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.bank-account-card.primary {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.account-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.account-info p {
    color: var(--gray);
    font-size: 0.875rem;
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.account-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item .label {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 500;
}

.detail-item .value {
    font-size: 0.875rem;
    color: var(--dark);
    font-weight: 500;
}

.add-account-card {
    border: 2px dashed #d1d5db;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.add-account-card:hover {
    border-color: var(--primary);
    background: #f0f9ff;
}

.add-content {
    text-align: center;
}

.add-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.add-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.add-content p {
    font-size: 0.875rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .bank-accounts-list {
        grid-template-columns: 1fr;
    }
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1rem;
}

.form-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.bank-accounts-list {
    display: grid;
    gap: 1.5rem;
}

.bank-account-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.bank-account-card.primary {
    border-color: var(--primary);
}

.bank-account-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.account-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.account-info p {
    color: var(--gray);
    font-size: 0.875rem;
}

.account-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
}

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

.account-details {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 500;
    color: var(--gray);
}

.detail-item .value {
    font-weight: 600;
    color: var(--dark);
    font-family: 'Monaco', 'Menlo', monospace;
}

.add-account-card {
    background: var(--light);
    border: 2px dashed var(--gray-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-account-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.add-content .add-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.add-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.add-content p {
    color: var(--gray);
}

.account-fields.hidden {
    display: none;
}

.notification-group {
    margin-bottom: 2rem;
}

.notification-group h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.notification-info p {
    font-size: 0.75rem;
    color: var(--gray);
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-light);
    transition: 0.2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.security-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light);
}

.security-item:last-child {
    border-bottom: none;
}

.security-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.security-item p {
    color: var(--gray);
    margin-bottom: 1rem;
}


/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide all loading placeholders */
.loading-placeholder,
.loading-text {
    display: none !important;
}

/* CRITICAL: Hide trial elements for Professional and Enterprise users */
body.user-plan-professional .trial-banner,
body.user-plan-professional .starter-banner,
body.user-plan-professional .trial-usage-card,
body.user-plan-professional .trial-usage-limits,
body.user-plan-professional #trialUsageLimitsCard,
body.user-plan-professional #trial-usage-section,
body.user-plan-professional .upgrade-prompt,
body.user-plan-professional #trialWelcomeBanner,
body.user-plan-professional #starterWelcomeBanner,
body.user-plan-professional #professionalWelcomeBanner,
body.user-plan-enterprise .trial-banner,
body.user-plan-enterprise .starter-banner,
body.user-plan-enterprise .trial-usage-card,
body.user-plan-enterprise .trial-usage-limits,
body.user-plan-enterprise #trialUsageLimitsCard,
body.user-plan-enterprise #trial-usage-section,
body.user-plan-enterprise .upgrade-prompt,
body.user-plan-enterprise #trialWelcomeBanner,
body.user-plan-enterprise #starterWelcomeBanner,
body.user-plan-enterprise #professionalWelcomeBanner,
body.user-plan-enterprise #premiumWelcomeBanner {
    display: none !important;
}

/* Show trial elements only for Trial and Starter users */
body.user-plan-trial .trial-usage-card,
body.user-plan-trial #trialUsageLimitsCard,
body.user-plan-trial #trial-usage-section,
body.user-plan-starter .trial-usage-card,
body.user-plan-starter #trialUsageLimitsCard,
body.user-plan-starter #trial-usage-section {
    display: block !important;
}

/* Enhanced Artist-Focused Design */
.artist-highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.revenue-emphasis {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tax-savings-highlight {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid var(--success);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tax-savings-highlight::before {
    content: '💰';
    font-size: 3rem;
    position: absolute;
    top: -10px;
    right: -10px;
    opacity: 0.3;
}

/* Better Mobile Experience */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-area {
        padding: 1rem;
    }

    .settings-container {
        flex-direction: column;
        gap: 1rem;
    }

    .settings-sidebar {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
    }

    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1002;
        background: var(--primary);
        color: white;
        border: none;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: var(--shadow);
    }

    .page-title {
        font-size: 1.5rem;
        margin-left: 3rem;
    }

    /* Improved touch targets */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    .nav-item {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none;
    }
}

/* Performance Indicators */
.performance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.performance-indicator.high {
    background: #dcfce7;
    color: var(--success);
}

.performance-indicator.medium {
    background: #fef3c7;
    color: var(--warning);
}

.performance-indicator.low {
    background: #fee2e2;
    color: var(--danger);
}

/* Artist Dashboard Enhancements */
.upcoming-performances {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.performance-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

.tax-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.tax-status-indicator.protected {
    color: var(--success);
}

.tax-status-indicator.at-risk {
    color: var(--warning);
}

.tax-status-indicator.unprotected {
    color: var(--danger);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Toast Notifications */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #10B981;
}

.toast-error {
    border-left: 4px solid #EF4444;
}

.toast-info {
    border-left: 4px solid #3B82F6;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.toast-success .toast-icon {
    background: #D1FAE5;
    color: #10B981;
}

.toast-error .toast-icon {
    background: #FEE2E2;
    color: #EF4444;
}

.toast-info .toast-icon {
    background: #DBEAFE;
    color: #3B82F6;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #6B7280;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #6B7280;
}

/* Notification System Styles */
.notification-container {
    position: relative;
}

.notification-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.2s ease;
    position: relative;
}

.notification-icon:hover {
    background: var(--light);
    color: var(--dark);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    margin-top: 0.5rem;
    overflow: hidden;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
}

.notification-header h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark);
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s;
}

.mark-all-read-btn:hover {
    background: var(--primary);
    color: white;
}

.notification-panel {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    transition: background 0.15s;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: #f0f9ff;
    border-left: 3px solid var(--primary);
}

.notification-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
}
