/*
  Global design tokens for NEW / "newer-system" components.

  Scope: this file defines CSS custom properties only — no selectors, no visual rules — so
  linking it has zero effect on any existing page. It does NOT touch or replace the legacy
  SAP-style system (app.css, customInput.css, most Components/Pages/SAPUI/**), which keeps
  its hardcoded literal values for now. See .claude/docs/UI_STYLE_GUIDE.md for the full
  rationale and migration status.

  Values here consolidate the token set already established in
  BlazorWebApp/wwwroot/css/ticket_list_page.css (the most complete existing token-based
  system in the codebase) with a couple of gaps filled in (warning color, spacing/typography
  scale) where no single existing file had a complete set. Anything filled in rather than
  sourced directly from an existing file is called out below.

  Naming: all tokens use the --ia- (Infoasia) prefix, distinct from any individual page's own
  local --clr-*/--ia-* block (e.g. ticket_list_page.css, appCreator.css), so a page's local
  tokens never silently collide with these global ones. New components should prefer these
  global tokens; only fall back to a page-local token if that page has a real reason to
  diverge (e.g. a dark-slate dashboard theme).
*/

:root {
    /* ── Color: brand & primary ─────────────────────────────────────────
       Source: ticket_list_page.css --clr-primary family. */
    --ia-color-primary: #00327d;
    --ia-color-primary-container: #0047ab;
    --ia-color-primary-fixed: #dae2ff;
    --ia-color-inverse-primary: #b1c5ff;

    /* ── Color: secondary ─────────────────────────────────────────────── */
    --ia-color-secondary: #505f76;
    --ia-color-secondary-container: #d0e1fb;
    --ia-color-on-secondary-container: #54647a;

    /* ── Color: surfaces ──────────────────────────────────────────────── */
    --ia-color-surface: #f7f9fb;
    --ia-color-surface-low: #f2f4f6;
    --ia-color-surface-container: #eceef0;
    --ia-color-surface-high: #e6e8ea;
    --ia-color-surface-highest: #e0e3e5;
    --ia-color-surface-white: #ffffff;

    /* ── Color: text / outline ────────────────────────────────────────── */
    --ia-color-on-surface: #191c1e;
    --ia-color-on-surface-variant: #434653;
    --ia-color-outline: #737784;
    --ia-color-outline-variant: #c3c6d5;

    /* ── Color: semantic status ───────────────────────────────────────── */
    --ia-color-error: #ba1a1a;
    --ia-color-error-container: #ffdad6;
    --ia-color-on-error-container: #93000a;

    --ia-color-success: #16a34a;
    --ia-color-success-container: #dcfce7;
    --ia-color-on-success-container: #166534;

    /*  Warning has no existing token-based precedent in ticket_list_page.css; amber value
        derived from the amber tones already used across newer dashboard files
        (wo-dashboard.css, itemBomRouting.css use #d97706/#fe932c). Container/on-container
        pairing is a standard light-amber pairing, not sourced from an existing file — treat
        as a reasonable default, adjust if the product team has a specific brand amber. */
    --ia-color-warning: #d97706;
    --ia-color-warning-container: #fef3c7;
    --ia-color-on-warning-container: #78350f;

    /* ── Radius scale ─────────────────────────────────────────────────
       xs/sm/lg map directly to ticket_list_page.css's --radius-sm/--radius-md/--radius-full.
       md (8px) is added to cover the second-most-common radius family found across the whole
       codebase audit (see UI_STYLE_GUIDE.md → Border radius). pill/circle cover the shapes
       documented in component-rule/badges-and-status.md and component-rule/buttons.md. */
    --ia-radius-xs: 2px;
    --ia-radius-sm: 4px;
    --ia-radius-md: 8px;
    --ia-radius-lg: 12px;
    --ia-radius-pill: 999px;
    --ia-radius-circle: 50%;

    /* ── Spacing scale ────────────────────────────────────────────────
       Standard 4px-base scale, chosen to match the most common gap/padding values already
       observed across the newer-system files (6px/8px/12px/16px/20px/24px). New components
       should prefer these steps over ad-hoc px values. */
    --ia-space-1: 4px;
    --ia-space-2: 8px;
    --ia-space-3: 12px;
    --ia-space-4: 16px;
    --ia-space-5: 20px;
    --ia-space-6: 24px;
    --ia-space-8: 32px;

    /* ── Typography ───────────────────────────────────────────────────
       Font families match ticket_list_page.css --font-body/--font-mono, with a fuller
       fallback stack added for robustness. */
    --ia-font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --ia-font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;

    /*  Size scale: base (14px) and line-height (20px) match ticket_list_page.css body text;
        the rest of the scale is derived from font-sizes already seen across newer dashboard
        files (11px table headers, 13px secondary text, 18-22px titles). */
    --ia-font-size-xs: 11px;
    --ia-font-size-sm: 13px;
    --ia-font-size-base: 14px;
    --ia-font-size-md: 16px;
    --ia-font-size-lg: 18px;
    --ia-font-size-xl: 20px;
    --ia-font-size-xxl: 22px;

    --ia-line-height-base: 20px;

    --ia-font-weight-regular: 400;
    --ia-font-weight-medium: 500;
    --ia-font-weight-semibold: 600;
    --ia-font-weight-bold: 700;
}
