/* ==========================================================================
   ANI Team — design tokens
   Two complete themes. Light = clean white. Dark = deep near-black.
   ========================================================================== */

:root {
  /* Typography ---------------------------------------------------------- */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 38px;
  --text-5xl: 52px;
  --text-6xl: 66px;

  --tracking-tight: -0.011em;
  --tracking-tighter: -0.022em;
  --tracking-display: -0.035em;

  /* Spacing scale (4px base) -------------------------------------------- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 40px;
  --sp-9: 48px; --sp-10: 64px; --sp-11: 80px; --sp-12: 112px;

  /* Radii ---------------------------------------------------------------- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-2xl: 18px;
  --r-full: 999px;

  /* Motion --------------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 320ms;

  /* Layout --------------------------------------------------------------- */
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --content-max: 1180px;

  --z-sticky: 40;
  --z-drawer: 70;
  --z-modal: 90;
  --z-toast: 110;
}

/* --------------------------------------------------------------------------
   LIGHT — pure white surfaces, hairline borders, near-black type
   -------------------------------------------------------------------------- */
:root,
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-sunken: #fafafa;
  --bg-elevated: #ffffff;
  --bg-inset: #f6f6f6;
  /* One step off the page, for hovers, bubbles and inset panels. */
  --bg-subtle: #f7f7f7;

  --surface: #ffffff;
  --surface-hover: #fafafa;
  --surface-active: #f2f2f2;
  --surface-accent: #f7f7f7;

  --border: #ebebeb;
  --border-strong: #dcdcdc;
  --border-hover: #d4d4d4;
  --border-focus: #000000;

  --fg: #000000;
  --fg-secondary: #454545;
  --fg-muted: #707070;
  --fg-subtle: #999999;
  --fg-onsolid: #ffffff;

  --solid: #000000;
  --solid-hover: #1f1f1f;
  --solid-fg: #ffffff;

  --accent: #0064ff;
  --accent-hover: #0057dd;
  --accent-fg: #ffffff;
  --accent-soft: #eef4ff;
  --accent-border: #cfe0ff;

  --success: #0f7b43;
  --success-soft: #eaf7ef;
  --success-border: #c4e8d3;

  --warning: #9a5b00;
  --warning-soft: #fff6e6;
  --warning-border: #f5dfb4;

  --danger: #cc2121;
  --danger-hover: #b31a1a;
  --danger-soft: #fdeded;
  --danger-border: #f6cdcd;

  --violet: #6a35d9;
  --violet-soft: #f3eeff;
  --violet-border: #ddd0fb;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.06), 0 24px 56px rgba(0, 0, 0, 0.11);

  --scrim: rgba(0, 0, 0, 0.32);
  /* The soft halo around a focused or open control. */
  --ring: rgba(0, 0, 0, 0.08);
  --skeleton-a: #f0f0f0;
  --skeleton-b: #e4e4e4;

  --grid-line: rgba(0, 0, 0, 0.045);
  --hero-glow: rgba(0, 100, 255, 0.07);
}

/* --------------------------------------------------------------------------
   DARK — deep black canvas, luminous type
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-sunken: #000000;
  --bg-elevated: #111111;
  --bg-inset: #141414;
  --bg-subtle: #151515;

  --surface: #0e0e0e;
  --surface-hover: #161616;
  --surface-active: #1c1c1c;
  --surface-accent: #131313;

  --border: #1f1f1f;
  --border-strong: #2e2e2e;
  --border-hover: #383838;
  --border-focus: #ededed;

  --fg: #ededed;
  --fg-secondary: #c2c2c2;
  --fg-muted: #8f8f8f;
  --fg-subtle: #6b6b6b;
  --fg-onsolid: #0a0a0a;

  --solid: #ededed;
  --solid-hover: #ffffff;
  --solid-fg: #0a0a0a;

  --accent: #3b82f6;
  --accent-hover: #5b9bff;
  --accent-fg: #ffffff;
  --accent-soft: #0d1a2e;
  --accent-border: #1d3557;

  --success: #3ddc84;
  --success-soft: #0b1d14;
  --success-border: #1b3a28;

  --warning: #f5b13d;
  --warning-soft: #201703;
  --warning-border: #3d2d0c;

  --danger: #ff5f56;
  --danger-hover: #ff7c74;
  --danger-soft: #230f0e;
  --danger-border: #4a1f1d;

  --violet: #a78bfa;
  --violet-soft: #170f2b;
  --violet-border: #2e2150;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6), 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.6), 0 32px 72px rgba(0, 0, 0, 0.6);

  --scrim: rgba(0, 0, 0, 0.66);
  --ring: rgba(255, 255, 255, 0.12);
  --skeleton-a: #161616;
  --skeleton-b: #232323;

  --grid-line: rgba(255, 255, 255, 0.05);
  --hero-glow: rgba(59, 130, 246, 0.1);
}
