/* ── Dark Theme ──────────────────────────────────────────── */
:root,
[data-theme="dark"] {
    --color-bg:        #0f172a;
    --color-surface:   #1e293b;
    --color-border:    #334155;
    --color-text:      #e2e8f0;
    --color-text-muted:#94a3b8;
    --color-primary:   #3b82f6;
    --color-primary-h: #2563eb;
    --color-secondary: #64748b;
    --color-danger:    #f87171;
    --color-success:   #4ade80;
    --color-warning:   #fbbf24;
    --color-nav-bg:    #020617;
    --color-nav-text:  #cbd5e1;
    --color-nav-hover: #3b82f6;
}

/* Invert alert backgrounds for dark mode */
[data-theme="dark"] .alert-success { background: #14532d; color: #bbf7d0; }
[data-theme="dark"] .alert-error   { background: #7f1d1d; color: #fecaca; }
[data-theme="dark"] .alert-warning { background: #78350f; color: #fde68a; }
[data-theme="dark"] .alert-info    { background: #1e3a8a; color: #bfdbfe; }

[data-theme="dark"] .badge-success { background: #14532d; color: #4ade80; }
[data-theme="dark"] .badge-danger  { background: #7f1d1d; color: #f87171; }
[data-theme="dark"] .badge-info    { background: #1e3a8a; color: #60a5fa; }

[data-theme="dark"] .stat-card { background: #2563eb; }
