:root {
    /* Ignition Enterprise White Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f5f7fa;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;
    --bg-sidebar: #f8fafc;

    /* Professional Enterprise Blues */
    --accent-primary: #1e40af;
    --accent-secondary: #2563eb;
    --accent-success: #047857;
    --accent-warning: #b45309;
    --accent-danger: #b91c1c;
    --accent-purple: #6d28d9;
    --accent-info: #0369a1;

    /* Enhanced Text Hierarchy */
    --text-heading: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-accent: #1e40af;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Professional Borders & Surfaces */
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;
    --border-accent: #3b82f6;
    --surface-glass: rgba(255, 255, 255, 0.95);
    --surface-card: rgba(255, 255, 255, 0.98);
    --surface-overlay: rgba(15, 23, 42, 0.05);

    /* Enterprise Gradients */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    --gradient-success: linear-gradient(135deg, #047857 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    --gradient-purple: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);

    /* Professional Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 8px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 24px rgba(30, 64, 175, 0.12);

    /* Enterprise Typography */
    --font-enterprise: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;

    /* Enhanced Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

body.theme-dark {
    --bg-primary: #0b1120;
    --bg-secondary: #0f172a;
    --bg-tertiary: #111c2f;
    --bg-card: #111827;
    --bg-card-hover: #1e293b;
    --bg-sidebar: #0f172a;

    --text-heading: #e2e8f0;
    --text-primary: #cbd5f5;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #60a5fa;
    --text-light: #cbd5f5;

    --border-primary: rgba(148, 163, 184, 0.25);
    --border-secondary: rgba(148, 163, 184, 0.35);
    --surface-glass: rgba(15, 23, 42, 0.75);
    --surface-card: rgba(15, 23, 42, 0.9);
    --surface-overlay: rgba(8, 25, 53, 0.4);

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 10px 30px -15px rgba(15, 23, 42, 0.6);
    --shadow-md: 0 12px 40px -20px rgba(30, 64, 175, 0.45);
    --shadow-lg: 0 24px 60px -12px rgba(37, 99, 235, 0.35);
    --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.25);

    --gradient-primary: linear-gradient(135deg, #1e293b 0%, #1d4ed8 100%);
    --gradient-success: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #c2410c 100%);
    --gradient-purple: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.theme-dark {
    color-scheme: dark;
}

body.theme-dark .card,
body.theme-dark .modal-content {
    background: var(--surface-card);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-md);
}

body.theme-dark .navbar {
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: var(--shadow-sm);
}

body.theme-dark .text-muted {
    color: var(--text-muted) !important;
}

body.theme-dark .badge.bg-light {
    background: rgba(148, 163, 184, 0.12) !important;
    color: var(--text-light) !important;
}
