/* ==========================================================================
   Boomi Insights — Design Tokens
   Single source of truth for colour, type, space, radius, elevation, motion.
   Tailwind-style naming so the system can be mapped to `tailwind.config.js`
   later without touching component markup.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---------- Typography ------------------------------------------------- */
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system,
    BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", Menlo, monospace;

  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 22px;
  --fs-3xl: 26px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 650;

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --ls-wide: 0.06em;
  --ls-wider: 0.1em;

  /* ---------- Neutral scale --------------------------------------------- */
  --n-0: #ffffff;
  --n-25: #fbfcfe;
  --n-50: #f6f8fa;
  --n-100: #eef2f6;
  --n-150: #e5eaef;
  --n-200: #dde3ea;
  --n-300: #c8d2dd;
  --n-400: #9aa9b8;
  --n-500: #7a8b9c;
  --n-600: #5d6c7c;
  --n-700: #44525f;
  --n-800: #2c3843;
  --n-900: #16202b;
  --n-950: #0d1723;

  /* ---------- Brand / accent (teal-cyan, inspired by PNView #087f8c) ----- */
  --brand-50: #edf8f9;
  --brand-100: #d3eff2;
  --brand-200: #a8dee4;
  --brand-300: #6cc6d1;
  --brand-400: #33a8b6;
  --brand-500: #0e8595;
  --brand-600: #0b6d7c;
  --brand-700: #0a5664;
  --brand-800: #0a4450;
  --brand-900: #093843;

  /* ---------- Semantic status ------------------------------------------- */
  --ok: #15805e;
  --ok-fg: #0d6448;
  --ok-bg: #e7f6f0;
  --ok-bd: #bde5d5;

  --warn: #b0700c;
  --warn-fg: #8a5705;
  --warn-bg: #fdf4e3;
  --warn-bd: #f0dcb0;

  --crit: #c73642;
  --crit-fg: #9d2733;
  --crit-bg: #fdecee;
  --crit-bd: #f3c8cd;

  --info: #2266c4;
  --info-fg: #1b4f99;
  --info-bg: #ecf3fd;
  --info-bd: #c6dbf7;

  --neutral-fg: #57646f;
  --neutral-bg: #f0f3f7;
  --neutral-bd: #dde3ea;

  --violet: #6e56cf;
  --violet-bg: #f0edfd;
  --violet-bd: #d8cffa;

  /* ---------- Chart series ---------------------------------------------- */
  --c-1: #0e8595; /* teal   */
  --c-2: #2f6fd0; /* blue   */
  --c-3: #d9870d; /* amber  */
  --c-4: #6e56cf; /* violet */
  --c-5: #15805e; /* green  */
  --c-6: #c73642; /* red    */
  --c-7: #d0568f; /* pink   */
  --c-8: #5d6c7c; /* slate  */
  --c-grid: #e8edf2;
  --c-axis: #8494a3;

  /* ---------- Application surfaces -------------------------------------- */
  --bg-app: #f4f6f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #eef2f6;
  --bg-hover: #f2f6fa;
  --bg-inset: #f7f9fc;

  --fg: #16202b;
  --fg-strong: #0d1723;
  --fg-secondary: #47555f;
  --fg-muted: #6c7c8b;
  --fg-faint: #93a1ae;
  --fg-inverse: #ffffff;

  --bd: #e3e8ee;
  --bd-soft: #edf1f5;
  --bd-strong: #ccd6e0;

  /* ---------- Sidebar (deep navy operations rail) ------------------------ */
  --sb-bg: #0b1726;
  --sb-bg-elevated: #10213200;
  --sb-bd: #1b2c40;
  --sb-fg: #93a6bd;
  --sb-fg-strong: #e9f1f9;
  --sb-fg-dim: #64798f;
  --sb-hover: #16283d;
  --sb-active-bg: #14364a;
  --sb-active-fg: #5fd8cd;
  --sb-active-bar: #2fbfb0;
  --sb-label: #55708c;
  --sb-input-bg: #0f1f31;

  /* ---------- Topbar ----------------------------------------------------- */
  --tb-bg: #ffffff;
  --tb-bd: #e3e8ee;
  --tb-h: 58px;

  /* ---------- Radius ----------------------------------------------------- */
  --r-xs: 3px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 9px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-pill: 999px;

  /* ---------- Elevation -------------------------------------------------- */
  --sh-xs: 0 1px 1px rgba(16, 32, 51, 0.04);
  --sh-sm: 0 1px 2px rgba(16, 32, 51, 0.06), 0 1px 1px rgba(16, 32, 51, 0.03);
  --sh-md: 0 2px 6px rgba(16, 32, 51, 0.07), 0 1px 1px rgba(16, 32, 51, 0.03);
  --sh-lg: 0 8px 22px rgba(16, 32, 51, 0.1), 0 2px 6px rgba(16, 32, 51, 0.05);
  --sh-xl: 0 20px 44px rgba(9, 22, 38, 0.22), 0 4px 12px rgba(9, 22, 38, 0.12);
  --ring-focus: 0 0 0 3px rgba(14, 133, 149, 0.28);
  --ring-danger: 0 0 0 3px rgba(199, 54, 66, 0.24);

  /* ---------- Space scale (4pt grid) ------------------------------------- */
  --s-1: 4px;
  --s-2: 6px;
  --s-3: 8px;
  --s-4: 10px;
  --s-5: 12px;
  --s-6: 14px;
  --s-7: 16px;
  --s-8: 20px;
  --s-9: 24px;
  --s-10: 28px;
  --s-11: 32px;
  --s-12: 40px;

  /* ---------- Layout ----------------------------------------------------- */
  --sb-w: 254px;
  --sb-w-collapsed: 68px;
  --content-max: 1720px;
  --content-pad: 22px;
  --row-h: 44px;
  --ctl-h: 34px;
  --table-zebra: #fafcfe;

  /* ---------- Motion ----------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 90ms;
  --dur-2: 150ms;
  --dur-3: 240ms;

  --z-sticky: 20;
  --z-dropdown: 60;
  --z-drawer: 80;
  --z-modal: 100;
  --z-toast: 120;
}

/* Compact density for large data tables. */
[data-density="compact"] {
  --row-h: 34px;
  --fs-base: 12px;
}
