/* Theme: Light */
/* Tema deschisă. Folosită și de Auto, când sistemul e pe deschis.
   Doar culorile (variabilele din tokens.css). O temă nouă = o copie a acestui fișier, cu
   alt nume pe prima linie și alt nume în selector (data-theme="<fișier>"). */

:root[data-theme="light"] {
    --bg-main: #f4f6fa;
    --bg-sidebar: #ffffff;
    --bg-topbar: rgba(255, 255, 255, 0.88);
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-input: #ffffff;
    --bg-input-focus: #ffffff;
    --bg-subtle: rgba(15, 23, 42, 0.025);
    --bg-hover: rgba(15, 23, 42, 0.05);
    --bg-overlay: rgba(15, 23, 42, 0.4);
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --border-hover: #94a3b8;
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --brand-light: #2563eb;
    --brand-lighter: #1d4ed8;
    --brand-soft: rgba(37, 99, 235, 0.07);
    --brand-soft-border: rgba(37, 99, 235, 0.2);
    --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.15);
    --success: #16a34a;
    --success-text: #15803d;
    --success-soft: rgba(22, 163, 74, 0.08);
    --success-soft-border: rgba(22, 163, 74, 0.25);
    --warning: #d97706;
    --warning-text: #b45309;
    --warning-soft: rgba(217, 119, 6, 0.08);
    --warning-soft-border: rgba(217, 119, 6, 0.28);
    --danger: #dc2626;
    --danger-strong: #dc2626;
    --danger-text: #b91c1c;
    --danger-soft: rgba(220, 38, 38, 0.06);
    --danger-soft-border: rgba(220, 38, 38, 0.22);
    --danger-zone-bg: rgba(220, 38, 38, 0.03);
    --info-text: #1d4ed8;
    --info-soft: rgba(37, 99, 235, 0.07);
    --info-soft-border: rgba(37, 99, 235, 0.22);
    --tone-blue: #2563eb;
    --tone-blue-bg: rgba(37, 99, 235, 0.1);
    --tone-blue-border: rgba(37, 99, 235, 0.15);
    --tone-purple: #7c3aed;
    --tone-purple-bg: rgba(139, 92, 246, 0.1);
    --tone-purple-border: rgba(139, 92, 246, 0.15);
    --tone-green: #16a34a;
    --tone-green-bg: rgba(34, 197, 94, 0.1);
    --tone-green-border: rgba(34, 197, 94, 0.15);
    --tone-orange: #d97706;
    --tone-orange-bg: rgba(245, 158, 11, 0.1);
    --tone-orange-border: rgba(245, 158, 11, 0.15);
    --tone-red: #dc2626;
    --tone-red-bg: rgba(239, 68, 68, 0.08);
    --tone-red-border: rgba(239, 68, 68, 0.15);
    --tone-gray: #64748b;
    --tone-gray-bg: rgba(15, 23, 42, 0.04);
    --tone-gray-border: #e2e8f0;
    --chart-cpu: #3b82f6;
    --chart-memory: #8b5cf6;
    --chart-storage: #f59e0b;
    --chart-grid: rgba(15, 23, 42, 0.07);
    --chart-text: #64748b;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Auto: urmează setarea sistemului (închis = Dark, din tokens.css) */
@media (prefers-color-scheme: light) {
    :root[data-theme="auto"] {
        --bg-main: #f4f6fa;
        --bg-sidebar: #ffffff;
        --bg-topbar: rgba(255, 255, 255, 0.88);
        --bg-card: #ffffff;
        --bg-card-hover: #f8fafc;
        --bg-elevated: #ffffff;
        --bg-input: #ffffff;
        --bg-input-focus: #ffffff;
        --bg-subtle: rgba(15, 23, 42, 0.025);
        --bg-hover: rgba(15, 23, 42, 0.05);
        --bg-overlay: rgba(15, 23, 42, 0.4);
        --border: #e2e8f0;
        --border-light: #cbd5e1;
        --border-hover: #94a3b8;
        --text-main: #0f172a;
        --text-secondary: #334155;
        --text-muted: #64748b;
        --text-faint: #94a3b8;
        --brand: #2563eb;
        --brand-hover: #1d4ed8;
        --brand-light: #2563eb;
        --brand-lighter: #1d4ed8;
        --brand-soft: rgba(37, 99, 235, 0.07);
        --brand-soft-border: rgba(37, 99, 235, 0.2);
        --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.15);
        --success: #16a34a;
        --success-text: #15803d;
        --success-soft: rgba(22, 163, 74, 0.08);
        --success-soft-border: rgba(22, 163, 74, 0.25);
        --warning: #d97706;
        --warning-text: #b45309;
        --warning-soft: rgba(217, 119, 6, 0.08);
        --warning-soft-border: rgba(217, 119, 6, 0.28);
        --danger: #dc2626;
        --danger-strong: #dc2626;
        --danger-text: #b91c1c;
        --danger-soft: rgba(220, 38, 38, 0.06);
        --danger-soft-border: rgba(220, 38, 38, 0.22);
        --danger-zone-bg: rgba(220, 38, 38, 0.03);
        --info-text: #1d4ed8;
        --info-soft: rgba(37, 99, 235, 0.07);
        --info-soft-border: rgba(37, 99, 235, 0.22);
        --tone-blue: #2563eb;
        --tone-blue-bg: rgba(37, 99, 235, 0.1);
        --tone-blue-border: rgba(37, 99, 235, 0.15);
        --tone-purple: #7c3aed;
        --tone-purple-bg: rgba(139, 92, 246, 0.1);
        --tone-purple-border: rgba(139, 92, 246, 0.15);
        --tone-green: #16a34a;
        --tone-green-bg: rgba(34, 197, 94, 0.1);
        --tone-green-border: rgba(34, 197, 94, 0.15);
        --tone-orange: #d97706;
        --tone-orange-bg: rgba(245, 158, 11, 0.1);
        --tone-orange-border: rgba(245, 158, 11, 0.15);
        --tone-red: #dc2626;
        --tone-red-bg: rgba(239, 68, 68, 0.08);
        --tone-red-border: rgba(239, 68, 68, 0.15);
        --tone-gray: #64748b;
        --tone-gray-bg: rgba(15, 23, 42, 0.04);
        --tone-gray-border: #e2e8f0;
        --chart-cpu: #3b82f6;
        --chart-memory: #8b5cf6;
        --chart-storage: #f59e0b;
        --chart-grid: rgba(15, 23, 42, 0.07);
        --chart-text: #64748b;
        --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
        --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
        --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
    }
}
