﻿/* ARB v6 - token-uri: dark (deep / Polygon-teal) si light (paper tehnic / cobalt) - nu sunt inverse */

:root {
  color-scheme: dark;
  /* Dark: negru-albastru, accente teal + indigo discret */
  --poly-deep: #312e81;
  --poly-violet: #64748b;
  --poly-cyan: #38bdf8;
  --poly-mint: #10b981;
  --accent: #0ea5e9;
  --accent-2: #475569;
  --accent-soft: rgba(14, 165, 233, 0.10);
  --accent-ring: rgba(14, 165, 233, 0.32);
  --bg: #03040a;
  --bg-surface: #0b1120;
  --bg-elevated: #111827;
  --bg-sunken: #020205;
  --text: #e8edf5;
  --text-secondary: #a3adc2;
  --muted: #8b96ac;
  --border: rgba(148, 163, 184, 0.09);
  --border-strong: rgba(186, 200, 220, 0.14);
  --border-focus: rgba(45, 212, 191, 0.55);
  --danger: #fb7185;
  --warn: #fbbf24;
  --attn: #fb923c;
  --ok: #34d399;
  --radius: 14px;
  --shadow: 0 32px 64px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 48px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Noto Sans", Arial, sans-serif;
  --sidebar-bg: linear-gradient(195deg, #0a0f1f 0%, #03040a 55%, #020308 100%);
  --sidebar-border: rgba(148, 163, 184, 0.08);
  --sidebar-hover: rgba(45, 212, 191, 0.08);
  --card-bg: rgba(15, 23, 42, 0.72);
  --card-border: rgba(148, 163, 184, 0.1);
  --topbar-bg: linear-gradient(180deg, rgba(11, 17, 32, 0.96) 0%, rgba(6, 8, 16, 0.94) 100%);
  --metric-bg: rgba(3, 4, 10, 0.55);
  --input-bg: rgba(10, 15, 28, 0.92);
  --code-bg: rgba(45, 212, 191, 0.07);
  --backdrop-bg: rgba(2, 3, 8, 0.78);
  --table-head-bg: rgba(8, 12, 24, 0.95);
  --hover-overlay: rgba(45, 212, 191, 0.06);
  --page-pad-x: clamp(14px, 2.4vw, 40px);
  --page-pad-y: clamp(12px, 2.2vw, 28px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --bp-xs: 400px;
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --fw-normal: 400;
  --fw-label: 400;
  --fw-medium: 440;
  --fw-semibold: 470;
  --fw-heading: 500;
  --fw-bold: 540;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: var(--radius);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast: 0.15s;
  --dur-med: 0.22s;
  --z-backdrop: 80;
  --z-sidebar: 90;
  --z-topbar: 40;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --fs-display: clamp(1.04rem, 2vw, 1.18rem);
  --fs-section: 0.9375rem;
  --fs-title: 1rem;
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-micro: 11px;
  --line-tight: 1.35;
  --line-body: 1.55;
  --surface-1: var(--card-bg);
  --surface-2: rgba(17, 24, 39, 0.85);
  --semantic-info-bg: rgba(45, 212, 191, 0.06);
  --semantic-warn-bg: rgba(251, 191, 36, 0.07);
  --semantic-danger-bg: rgba(251, 113, 133, 0.08);
  --link: #5eead4;
  --link-hover: #99f6e4;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --poly-deep: #312e81;
  --poly-violet: #64748b;
  --poly-cyan: #38bdf8;
  --poly-mint: #10b981;
  --accent: #0ea5e9;
  --accent-2: #475569;
  --accent-soft: rgba(14, 165, 233, 0.10);
  --accent-ring: rgba(14, 165, 233, 0.32);
  --bg: #03040a;
  --bg-surface: #0b1120;
  --bg-elevated: #111827;
  --bg-sunken: #020205;
  --text: #e8edf5;
  --text-secondary: #a3adc2;
  --muted: #8b96ac;
  --border: rgba(148, 163, 184, 0.09);
  --border-strong: rgba(186, 200, 220, 0.14);
  --border-focus: rgba(45, 212, 191, 0.55);
  --shadow: 0 32px 64px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 48px rgba(0, 0, 0, 0.45);
  --sidebar-bg: linear-gradient(195deg, #0a0f1f 0%, #03040a 55%, #020308 100%);
  --sidebar-border: rgba(148, 163, 184, 0.08);
  --sidebar-hover: rgba(45, 212, 191, 0.08);
  --card-bg: rgba(15, 23, 42, 0.72);
  --card-border: rgba(148, 163, 184, 0.1);
  --topbar-bg: linear-gradient(180deg, rgba(11, 17, 32, 0.96) 0%, rgba(6, 8, 16, 0.94) 100%);
  --metric-bg: rgba(3, 4, 10, 0.55);
  --input-bg: rgba(10, 15, 28, 0.92);
  --code-bg: rgba(45, 212, 191, 0.07);
  --backdrop-bg: rgba(2, 3, 8, 0.78);
  --table-head-bg: rgba(8, 12, 24, 0.95);
  --hover-overlay: rgba(45, 212, 191, 0.06);
  --link: #5eead4;
  --link-hover: #99f6e4;
}

html[data-theme="light"] {
  color-scheme: light;
  /* Light: hartie rece, cobalt, fara aceeasi scara cromatica ca dark */
  --poly-deep: #1e40af;
  --poly-violet: #4f46e5;
  --poly-cyan: #0369a1;
  --poly-mint: #047857;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --accent-ring: rgba(37, 99, 235, 0.35);
  --bg: #f4f6f8;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-sunken: #e8ecf2;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.07);
  --border-strong: rgba(15, 23, 42, 0.12);
  --border-focus: rgba(37, 99, 235, 0.45);
  --danger: #b91c1c;
  --warn: #b45309;
  --attn: #c2410c;
  --ok: #047857;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.98) inset;
  --sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  --sidebar-border: rgba(15, 23, 42, 0.08);
  --sidebar-hover: rgba(37, 99, 235, 0.06);
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.09);
  --topbar-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --metric-bg: #eef2f7;
  --input-bg: #ffffff;
  --code-bg: rgba(37, 99, 235, 0.05);
  --backdrop-bg: rgba(15, 23, 42, 0.38);
  --table-head-bg: #f8fafc;
  --hover-overlay: rgba(37, 99, 235, 0.05);
  --surface-2: #eef2f7;
  --semantic-info-bg: rgba(59, 130, 246, 0.06);
  --semantic-warn-bg: rgba(245, 158, 11, 0.08);
  --semantic-danger-bg: rgba(239, 68, 68, 0.07);
  --link: #2563eb;
  --link-hover: #1d4ed8;
}

