/* Dark theme variables */
.theme-dark {
    /* Colors */
    --primary: #60a5fa;
    --primary-hover: #3b82f6;
    --primary-light: rgba(96, 165, 250, 0.1);
    --secondary: #9ca3af;
    --success: #34d399;
    --success-light: rgba(52, 211, 153, 0.1);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.1);
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.1);
    --info: #22d3ee;
    --info-light: rgba(34, 211, 238, 0.1);

    /* Background Colors */
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --bg-card: #1f2937;
    --bg-hover: #374151;

    /* Text Colors */
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --text-inverse: #111827;

    /* Border Colors */
    --border-primary: #374151;
    --border-secondary: #4b5563;
    --border-focus: #60a5fa;

    /* Shadow (adjusted for dark theme) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Dark theme specific adjustments */
.theme-dark .form-input {
    background-color: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.theme-dark .form-input:focus {
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.theme-dark .checkbox-custom {
    background-color: var(--bg-tertiary);
    border-color: var(--border-secondary);
}

.theme-dark .nav-link.active {
    background-color: rgba(96, 165, 250, 0.1);
}

.theme-dark .status-badge {
    border: 1px solid currentColor;
}

/* Dark theme scrollbars */
.theme-dark ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.theme-dark ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.theme-dark ::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 4px;
}

.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Firefox scrollbar */
.theme-dark * {
    scrollbar-width: thin;
    scrollbar-color: var(--border-secondary) var(--bg-secondary);
}

/* Auth page dark theme adjustments */
.theme-dark.auth-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.theme-dark .auth-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-xl);
}

/* Dark theme theme toggle icon */
.theme-dark .theme-icon::before {
    content: '☀️';
}

.theme-light .theme-icon::before {
    content: '🌙';
}

/* Print styles */
@media print {
    .sidebar,
    .top-header,
    .btn,
    .flash-message,
    .modal-overlay,
    .loading-overlay {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0 !important;
    }

    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}