/* OnixFin — Design tokens (tema escuro padrão + tema claro) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Tipografia */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: 2rem;

  /* Espaçamento (escala de 4px) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

  /* Raios e movimento */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t: 200ms;
  --t-slow: 250ms;

  --sidebar-w: 264px;
  --topbar-h: 64px;

  /* Marca — azuis extraídos do logo Onix Consulting */
  --brand-300: #6CC0F7;
  --brand-400: #2EA0F0;
  --brand-500: #0A78D2;
  --brand-600: #0863B4;
  --brand-700: #005BA8;
  --brand-900: #062B55;

  /* Tema escuro (padrão) */
  color-scheme: dark;
  --bg: #08111F;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(10, 155, 240, .10), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(10, 120, 210, .12), transparent 60%);
  --surface: rgba(255, 255, 255, .035);
  --surface-solid: #0F1A2E;
  --surface-2: rgba(255, 255, 255, .06);
  --surface-hover: rgba(255, 255, 255, .055);
  --sidebar-bg: rgba(6, 14, 28, .86);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #E7EAF3;
  --text-muted: #A3ACC2;
  --text-faint: #7D879F;
  --accent: var(--brand-500);
  --accent-text: var(--brand-400);
  --accent-contrast: #FFFFFF;
  --accent-soft: rgba(10, 120, 210, .14);
  --focus: 0 0 0 3px rgba(10, 120, 210, .45);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --zebra: rgba(255, 255, 255, .018);
  --input-bg: rgba(255, 255, 255, .04);

  /* Status financeiros */
  --success: #3DD68C; --success-bg: rgba(61, 214, 140, .12);
  --danger: #FF6B6B;  --danger-bg: rgba(255, 107, 107, .13);
  --warning: #F5B942; --warning-bg: rgba(245, 185, 66, .14);
  --info: #A3ACC2;    --info-bg: rgba(163, 172, 194, .12);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F6FA;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(10, 120, 210, .10), transparent 60%);
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #FFFFFF;
  --surface-2: #F0F2F7;
  --surface-hover: #F6F7FB;
  --sidebar-bg: #08111F;
  --border: #E2E5EE;
  --border-strong: #CBD1DE;
  --text: #121726;
  --text-muted: #4D566B;
  --text-faint: #6B7489;
  --accent-text: var(--brand-700);
  --accent-soft: rgba(10, 120, 210, .16);
  --focus: 0 0 0 3px rgba(8, 99, 180, .45);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .16);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .3);
  --zebra: #FAFBFD;
  --input-bg: #FFFFFF;
  --success: #12804F; --success-bg: #E3F6EC;
  --danger: #C2302F;  --danger-bg: #FDE8E8;
  --warning: #9A5B00; --warning-bg: #FFF2D6;
  --info: #4D566B;    --info-bg: #EEF0F5;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t: 0ms; --t-slow: 0ms; }
}
