/* =========================================================================
   SEQELA CBS — DESIGN TOKENS
   Source of truth for colour, type, spacing, radius, elevation and motion.
   Brand values taken from seqela.com (Seqela Technologies PLC).
   Mirror of /design/tokens.json — keep both in sync.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Noto+Sans+Ethiopic:wght@400;600&display=swap");

:root {
  /* ---------- Brand: Seqela Green ---------- */
  --sq-green-950: #021a0c;
  --sq-green-900: #042f17; /* green-deep  — sidebar, hero surfaces        */
  --sq-green-800: #064420; /* green       — PRIMARY brand colour          */
  --sq-green-700: #0a6b2e; /* green-mid   — primary hover, links          */
  --sq-green-600: #1f8a45; /* lime        — accent, success, active       */
  --sq-green-500: #3fa865;
  --sq-green-400: #6cc28c;
  --sq-green-300: #8fd4a8;
  --sq-green-200: #c5d6cb;
  --sq-green-100: #e7f0ea;
  --sq-green-50:  #eef5f0;

  /* ---------- Neutrals (green-tinted, from site) ---------- */
  --sq-ink:   #0c1f14; /* primary text        */
  --sq-ink-2: #2b3d32; /* secondary headings  */
  --sq-muted: #5a6f62; /* secondary text      */
  --sq-subtle:#8a9b90; /* placeholder, hints  */
  --sq-line:  #e3ebe5; /* borders, dividers   */
  --sq-line-strong: #c5d6cb;
  --sq-soft:  #f3f7f4; /* table header, hover */
  --sq-wash:  #f7faf8; /* app background      */
  --sq-paper: #ffffff; /* cards, surfaces     */

  /* ---------- Supporting accent ---------- */
  --sq-gold-600: #b7860b; /* PLSA / prizes / highlights */
  --sq-gold-500: #d9a514;
  --sq-gold-100: #fbf1d3;
  --sq-teal-600: #0f766e;
  --sq-teal-100: #d5efec;

  /* ---------- Semantic / status ---------- */
  --sq-success: #1f8a45;  --sq-success-bg: #e3f4e9;  --sq-success-fg: #0a6b2e;
  --sq-warning: #c27c0e;  --sq-warning-bg: #fdf1dc;  --sq-warning-fg: #8a5300;
  --sq-danger:  #c2362b;  --sq-danger-bg:  #fbe6e4;  --sq-danger-fg:  #9b2219;
  --sq-info:    #1d6fa5;  --sq-info-bg:    #e1eef8;  --sq-info-fg:    #145079;
  --sq-neutral: #5a6f62;  --sq-neutral-bg: #eef2ef;  --sq-neutral-fg: #3d4f44;

  /* ---------- Data-viz palette (ordered) ---------- */
  --sq-chart-1: #064420;
  --sq-chart-2: #1f8a45;
  --sq-chart-3: #8fd4a8;
  --sq-chart-4: #d9a514;
  --sq-chart-5: #0f766e;
  --sq-chart-6: #5a6f62;
  --sq-chart-7: #c2362b;

  /* ---------- Semantic aliases (use these in components) ---------- */
  --color-bg: var(--sq-wash);
  --color-surface: var(--sq-paper);
  --color-surface-muted: var(--sq-soft);
  --color-border: var(--sq-line);
  --color-border-strong: var(--sq-line-strong);
  --color-text: var(--sq-ink);
  --color-text-muted: var(--sq-muted);
  --color-text-subtle: var(--sq-subtle);
  --color-primary: var(--sq-green-800);
  --color-primary-hover: var(--sq-green-700);
  --color-primary-active: var(--sq-green-900);
  --color-accent: var(--sq-green-600);
  --color-focus: rgba(31, 138, 69, 0.35);
  --color-nav-bg: var(--sq-green-900);
  --color-nav-text: rgba(255, 255, 255, 0.72);
  --color-nav-active: #ffffff;

  /* ---------- Typography ---------- */
  --font-display: "Sora", "Noto Sans Ethiopic", system-ui, sans-serif;        /* headings, KPIs, buttons */
  --font-body: "Source Sans 3", "Noto Sans Ethiopic", system-ui, sans-serif;  /* body, tables, forms     */
  --font-mono: "JetBrains Mono", ui-monospace, monospace;   /* refs, account numbers   */

  --text-display: 600 32px/40px var(--font-display);  /* page hero / KPI large   */
  --text-h1: 600 24px/32px var(--font-display);       /* page title              */
  --text-h2: 600 18px/26px var(--font-display);       /* section / card title    */
  --text-h3: 600 15px/22px var(--font-display);       /* sub-section             */
  --text-body-lg: 400 16px/24px var(--font-body);
  --text-body: 400 14px/20px var(--font-body);        /* DEFAULT                 */
  --text-sm: 400 13px/18px var(--font-body);          /* table, helper           */
  --text-xs: 600 11px/16px var(--font-body);          /* overline, labels (CAPS) */

  /* ---------- Spacing (4px base, 8px grid) ---------- */
  --space-0: 0; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px;

  /* ---------- Radius (from site) ---------- */
  --radius-xs: 4px;
  --radius-sm: 6px;   /* inputs, buttons, chips */
  --radius-md: 8px;   /* dropdowns, small cards */
  --radius-lg: 14px;  /* cards, modals          */
  --radius-xl: 16px;  /* hero panels            */
  --radius-pill: 999px;

  /* ---------- Elevation (green-tinted, from site) ---------- */
  --shadow-xs: 0 1px 2px rgba(6, 68, 32, 0.06);
  --shadow-sm: 0 2px 8px rgba(6, 68, 32, 0.06), 0 1px 2px rgba(6, 68, 32, 0.04);
  --shadow-md: 0 12px 28px rgba(6, 68, 32, 0.12);
  --shadow-lg: 0 18px 50px rgba(6, 68, 32, 0.12);
  --shadow-xl: 0 28px 70px rgba(6, 68, 32, 0.18);

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 320ms;

  /* ---------- Layout ---------- */
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 64px;
  --content-max: 1440px;
  --control-h: 38px;    /* default input / button height */
  --control-h-sm: 30px;
  --control-h-lg: 46px;
  --table-row-h: 48px;

  /* ---------- Z-index ---------- */
  --z-sticky: 10; --z-nav: 20; --z-dropdown: 30; --z-drawer: 40; --z-modal: 50; --z-toast: 60;

  /* ---------- CBS legacy aliases (existing Blade / styles.css) ---------- */
  --primary-color: var(--color-primary);
  --secondary-color: var(--sq-green-700);
}

