/* ==========================================================================
   INTERFAST WMS — Design tokens
   Brand: "Interfast Blue" (deep site-plan navy) + "Interfast Yellow"
   (hi-vis safety yellow) — grounded in construction-site signage.
   Two themes are provided: light (default) and dark. Everything else in
   the app reads colors exclusively through these variables so a future
   theme is a one-file change.
   ========================================================================== */

:root{
  /* ---- Brand ---- */
  --ifs-navy-900:#0A1E30;
  --ifs-navy-800:#0F2A43;
  --ifs-navy-700:#173A58;
  --ifs-navy-600:#1F4C71;
  --ifs-yellow-500:#F4B400;
  --ifs-yellow-600:#D89A00;
  --ifs-yellow-700:#AD7900;

  /* ---- Semantic (light theme defaults) ---- */
  --bg:            #F2F4F7;
  --surface:       #FFFFFF;
  --surface-2:     #F7F9FB;
  --ink:           #101B26;
  --ink-muted:     #56677A;
  --ink-faint:     #8B99A8;
  --border:        #E0E6EC;
  --border-strong: #C9D2DB;

  --brand:         var(--ifs-navy-800);
  --brand-strong:  var(--ifs-navy-900);
  --brand-soft:    #E7EDF3;
  --accent:        var(--ifs-yellow-500);
  --accent-strong: var(--ifs-yellow-600);
  --accent-ink:    #241A00;

  --success:       #1E8E5A;
  --success-soft:  #E4F5EC;
  --danger:        #C0392B;
  --danger-soft:   #FBE9E7;
  --warning:       #B4790A;
  --warning-soft:  #FBF0DC;
  --info:          #1F6FA8;
  --info-soft:     #E5F1F8;

  --focus-ring: 0 0 0 3px rgba(31,76,113,.28);

  /* ---- Type ---- */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --fs-xs:   .75rem;
  --fs-sm:   .8125rem;
  --fs-base: .9375rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.625rem;
  --fs-2xl:  2.25rem;

  /* ---- Space / radius / shadow ---- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-7: 32px; --sp-8: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(16,27,38,.06);
  --shadow-md: 0 4px 16px rgba(16,27,38,.08);
  --shadow-lg: 0 12px 32px rgba(16,27,38,.14);

  --sidebar-w: 248px;
  --topbar-h: 64px;
  --transition: 160ms ease;
}

/* ---- Dark theme ---- */
:root[data-theme="dark"]{
  --bg:            #0B1520;
  --surface:       #101F2E;
  --surface-2:     #16283A;
  --ink:           #E9F0F6;
  --ink-muted:     #9DB0C2;
  --ink-faint:     #6C8098;
  --border:        #223449;
  --border-strong: #2E4762;

  --brand:         #2E5C86;
  --brand-strong:  #3E75A6;
  --brand-soft:    #16283A;
  --accent:        var(--ifs-yellow-500);
  --accent-strong: #FFC933;
  --accent-ink:    #241A00;

  --success:       #3FBE85;
  --success-soft:  #123625;
  --danger:        #E5695A;
  --danger-soft:   #3A1A16;
  --warning:       #E3A93B;
  --warning-soft:  #3A2A0F;
  --info:          #5DA6DD;
  --info-soft:     #122A38;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
}
