/* Design Tokens - Auto-generated */
/* Do not edit directly - modify tokens.json instead */

/* === PRIMITIVES === */
:root {

}

/* === SEMANTIC === */
:root {
  --color-primary: #00A3E0;
  --color-on-primary: #000000;
  --color-secondary: #00A3E0;
  --color-on-secondary: #000000;
  --color-accent: #059669;
  --color-on-accent: #000000;
  --color-background: #F3F6F9;
  --color-foreground: #1B2B3D;
  --color-card: #FFFFFF;
  --color-card-foreground: #1B2B3D;
  --color-muted: #E8EDF3;
  --color-muted-foreground: #4A5A6E;
  --color-border: #CBD5E1;
  --color-destructive: #DC2626;
  --color-on-destructive: #FFFFFF;
  --color-ring: #003C71;
  --font-heading: "Open Sans", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --space-xs: 2px;
  --space-sm: 4px;
  --space-md: 8px;
  --space-lg: 12px;
  --space-xl: 16px;
  --space-2xl: 24px;
  --space-3xl: 32px;
}

/* === COMPONENTS === */
:root {

}
/* Onsight Monitoring — application tokens (hand-maintained).
 *
 * Load after tokens.css. tokens.css is generated by ui-ux-pro-max and holds the
 * base palette, fonts and spacing; this file adds what an operations app needs
 * on top of it: status colours, derived surfaces, type scale, radii, control
 * sizes and motion. Rules and rationale are in MASTER.md.
 *
 * The site serves wwwroot/css/tokens.css, which is tokens.css followed by this
 * file. After editing either, rebuild it:
 *   cat design-system/remote-monitoring/tokens.css design-system/remote-monitoring/tokens.app.css > wwwroot/css/tokens.css
 *
 * Contrast figures in comments are WCAG ratios, computed, not estimated.
 */

:root {
  color-scheme: light;

  /* --- Compumedics brand (AH790 Corporate ID & Brand Style Guide 2025) ---
   * Dark Blue PMS 541 #003C71 and Light Blue PMS 299 #00A3E0 are the primary brand colours.
   * Light Blue is 2.87:1 on white, so it is used for graphics only, never for text. */
  --brand-dark-blue: #003C71;
  --brand-light-blue: #00A3E0;

  /* --- Derived from the palette --- */
  --color-primary-strong: #003C71;      /* = brand Dark Blue. Buttons, links, active tab. White on it 11.14:1; on card 11.14:1 */
  --color-on-primary-strong: #FFFFFF;
  --color-primary-hover: #00649E;       /* hover for primary buttons and links: a deeper Light Blue. White on it 6.33:1 */
  --color-primary-soft: #E0F2FB;        /* Light Blue tint. Selected row, active tab tint. Foreground on it 12.5:1 */
  --color-border-strong: #7488A0;       /* input and control outlines. 3.64:1 on card, 3.35:1 on background */
  --color-divider: #D5DEE8;             /* table rows and card headers; a blue-grey hairline (decorative) */
  --color-sidebar: #003C71;             /* = brand Dark Blue. White on it 11.14:1; the logo is reversed out in white here */
  --color-on-sidebar: #FFFFFF;
  --color-on-sidebar-muted: #A9DDF5;    /* Light Blue tint. 7.61:1 on sidebar */

  /* --- Status (text colour / soft background pairs) --- */
  --color-good: #15803D;      --color-good-soft: #DCFCE7;     /* 4.57:1 */
  --color-warn: #92400E;      --color-warn-soft: #FEF3C7;     /* 6.37:1 */
  --color-bad: #B91C1C;       --color-bad-soft: #FEE2E2;      /* 5.30:1 */
  --color-info: #00578A;      --color-info-soft: #E0F2FB;     /* 6.69:1 */
  --color-neutral: #475569;   --color-neutral-soft: #E8EDF3;  /* 6.44:1 */

  /* --- Typography. Nothing in the interface is set below 13px. --- */
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --text-sm: 13px;     /* smallest size: hints, table headers, pills */
  --text-base: 15px;   /* body, controls, table cells */
  --text-md: 17px;     /* card titles */
  --text-lg: 20px;     /* section headings, login title */
  --text-xl: 26px;     /* page title */
  --text-2xl: 34px;    /* fleet counts, enrolment code */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* --- Shape --- */
  --radius-sm: 6px;    /* buttons, inputs */
  --radius-md: 8px;    /* banners, code box */
  --radius-lg: 12px;   /* cards, dialogs */
  --radius-full: 999px;

  /* --- Elevation (cards are flat with a border; shadows are for overlays) --- */
  --shadow-md: 0 4px 12px rgba(0, 60, 113, 0.10);
  --shadow-lg: 0 16px 40px rgba(0, 60, 113, 0.16);

  /* --- Control sizes --- */
  --control-h: 36px;         /* pointer devices */
  --control-h-touch: 44px;   /* applied under (pointer: coarse) and for full-width form actions */
  --row-h: 48px;             /* table rows */
  --sidebar-w: 244px;
  --focus-ring: 0 0 0 2px var(--color-card), 0 0 0 4px var(--color-primary-strong);

  /* --- Motion --- */
  --duration-fast: 120ms;    /* hover, press */
  --duration-base: 180ms;    /* mobile menu, dialogs */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0ms; --duration-base: 0ms; }
}
