/*
 * Design tokens ported verbatim from the original
 * `frontend/src/theme/tokens.ts` (DBIM v3 palette). Values are copied as
 * literals rather than re-derived, so this file and that one must be kept
 * in sync by hand until a shared token package exists.
 */
:root {
  --color-primary-main: #162f6a;
  --color-primary-dark: #162f6a;
  --color-primary-light: #d2dfff;

  --color-info-main: #0d6efd;
  --color-success-main: #198754;
  --color-success-light: #e6f4ec;
  --color-warning-main: #ffc107;
  --color-warning-light: #fff6dd;
  --color-error-main: #dc3545;
  --color-error-light: #fbe4e7;

  --color-bg-default: #ffffff;
  --color-bg-paper: #ffffff;
  --color-text-primary: #150202;
  --color-text-secondary: #606060;
  --color-divider: #c6c6c6;
  --color-divider-strong: #8e8e8e;
  --color-focus: #dc3545;
  --color-neutral-bg: #ebeaea;
  --color-surface-raised: #ebeaea;
  --color-on-primary: #ffffff;
  --color-overlay: rgb(0 0 0 / 72%);

  --shadow-soft: rgb(8 58 102 / 15%);
  --shadow-card: rgb(0 0 0 / 3%);
  --shadow-dialog: rgb(0 0 0 / 30%);
  --shadow-raised: rgb(8 58 102 / 22%);
  --shadow-floating: rgb(8 58 102 / 24%);

  /* Aligned to pgas-ta-portal-frontend/pgas-portal-frontend's exact
     success.dark/warning.dark/error.dark/warning.light hex values (client
     direction, 2026-09-30: colour coding must be identical across repos,
     not just independently WCAG-passing) -- was #0f5132/#7a271a/#725000/
     #fff7df, each already >= 4.5:1 on its own but a different literal
     value from TF/PF's. */
  --status-warning: #664d03;
  --status-warning-light: #fff6dd;
  --status-danger: #b02a37;
  --status-success: #146c43;

  --radius: 3px;
  --touch-target-min: 44px;
  --font-family-en: "Noto Sans", sans-serif;
  --font-family-hi: "Noto Sans Devanagari", "Noto Sans", sans-serif;
}

/* Mirrors `highContrastColorTokens` — toggled via `[data-contrast="high"]` on <html>. */
:root[data-contrast="high"] {
  --color-primary-main: #ffff00;
  --color-primary-dark: #ffff00;
  --color-primary-light: #332b00;
  --color-info-main: #00ffff;
  --color-success-main: #00ff66;
  --color-success-light: #000000;
  --color-warning-main: #ffbf00;
  --color-warning-light: #000000;
  --color-error-main: #ff8080;
  --color-error-light: #000000;
  --status-success: #00ff66;
  --status-danger: #ff8080;
  --color-bg-default: #000000;
  --color-bg-paper: #000000;
  --color-text-primary: #ffffff;
  --color-text-secondary: #ffffff;
  --color-divider: #ffffff;
  --color-divider-strong: #ffffff;
  --color-focus: #ffbf00;
  --color-neutral-bg: #000000;
  --color-surface-raised: #111111;
}
