/* ============================================================
   FleetSignal — centralized design tokens
   Restrained B2B palette: navy + neutral, blue as accent only.
   ============================================================ */
:root {
  /* Brand / accent */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-soft: #EFF4FF;
  --color-primary-softer: #F5F8FF;

  /* Neutrals */
  --color-navy: #0F172A;
  /* The logo's wordmark: "Fleet" in ink, "Signal" in brand blue, shading from lighter (top left) to deeper */
  --brand-ink: #011640;
  --brand-blue: #0071FA;
  --brand-blue-from: #0088FB;
  --brand-blue-to: #0051FB;
  --color-navy-2: #1E293B;
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-secondary: #F1F5F9;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;

  /* Text */
  --color-text: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-text-disabled: #94A3B8;

  /* Status */
  --color-success: #16A34A;
  --color-success-soft: #ECFDF3;
  --color-success-text: #15803D;
  --color-warning: #D97706;
  --color-warning-soft: #FFF7ED;
  --color-warning-text: #B45309;
  --color-danger: #DC2626;
  --color-danger-soft: #FEF2F2;
  --color-danger-text: #B91C1C;
  --color-neutral-soft: #F1F5F9;
  --color-neutral-text: #475569;

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  /* Shadows (very subtle) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, .05), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .06);

  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ring: 0 0 0 3px var(--color-primary-soft);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-primary: #3B82F6;
    --color-primary-hover: #2563EB;
    --color-primary-soft: #16233B;
    --color-primary-softer: #111c30;

    --color-navy: #0B1120;
    --brand-ink: #F8FAFC;
    --brand-blue: #3D8BFF;
    --brand-blue-from: #35A6FF;
    --brand-blue-to: #3D7BFF;
    --color-navy-2: #111827;
    --color-background: #0B1120;
    --color-surface: #111827;
    --color-surface-secondary: #1E293B;
    --color-border: #334155;
    --color-border-strong: #475569;

    --color-text: #F8FAFC;
    --color-text-secondary: #CBD5E1;
    --color-text-muted: #94A3B8;
    --color-text-disabled: #64748B;

    --color-success: #22C55E; --color-success-soft: #0f2a1b; --color-success-text: #4ADE80;
    --color-warning: #F59E0B; --color-warning-soft: #2a2011; --color-warning-text: #FBBF24;
    --color-danger: #EF4444;  --color-danger-soft: #2a1414;  --color-danger-text: #F87171;
    --color-neutral-soft: #1E293B; --color-neutral-text: #CBD5E1;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 2px 8px rgba(0,0,0,.4);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
    --ring: 0 0 0 3px rgba(59,130,246,.25);
  }
}

/* Force-light / force-dark hooks (Settings theme override) */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-primary: #3B82F6; --color-primary-hover: #2563EB;
  --color-primary-soft: #16233B; --color-primary-softer: #111c30;
  --color-navy: #0B1120; --color-navy-2: #111827;
  --brand-ink: #F8FAFC; --brand-blue: #3D8BFF; --brand-blue-from: #35A6FF; --brand-blue-to: #3D7BFF;
  --color-background: #0B1120; --color-surface: #111827;
  --color-surface-secondary: #1E293B; --color-border: #334155; --color-border-strong: #475569;
  --color-text: #F8FAFC; --color-text-secondary: #CBD5E1; --color-text-muted: #94A3B8; --color-text-disabled: #64748B;
  --color-success: #22C55E; --color-success-soft: #0f2a1b; --color-success-text: #4ADE80;
  --color-warning: #F59E0B; --color-warning-soft: #2a2011; --color-warning-text: #FBBF24;
  --color-danger: #EF4444; --color-danger-soft: #2a1414; --color-danger-text: #F87171;
  --color-neutral-soft: #1E293B; --color-neutral-text: #CBD5E1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 2px 8px rgba(0,0,0,.4); --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
  --ring: 0 0 0 3px rgba(59,130,246,.25);
}

/* The brand name, written like the logo (every page loads this file): the logo's typeface, Montserrat
   (SIL Open Font License, montserrat-OFL.txt), heavy and tight, "Signal" shaded like the logo. */
@font-face {
  font-family: "FleetSignal Wordmark";
  src: url("montserrat.woff2?v=a5ec54920b589ebe") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
.wordmark { font-family: "FleetSignal Wordmark", var(--font); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-synthesis: none; }
.wm-a { color: var(--brand-ink); }
.wm-b { color: var(--brand-blue); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wm-b { background: linear-gradient(120deg, var(--brand-blue-from), var(--brand-blue-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
