/* ================================================================
   tokens.css — MoriManual shared design tokens
   Source of truth for the Verge-inspired dark/light system.
   Receipt-builder maintains its own copy in /clinical/receipt-builder/css/app.css.
   Keep both in sync when editing tokens.
   ================================================================ */

:root {
  /* Surfaces */
  --canvas: #131313;
  --surface: #1e1e1e;
  --surface-raised: #2d2d2d;
  --surface-overlay: rgba(255, 255, 255, 0.04);

  /* Brand accents */
  --mint: #3cffd0;
  --mint-dim: #309875;
  --mint-subtle: rgba(60, 255, 208, 0.08);
  --ultraviolet: #5200ff;
  --ultraviolet-dim: #3d00bf;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #949494;
  --text-muted: #e9e9e9;
  --text-inverted: #131313;

  /* Borders */
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.25);
  --border-mint: #309875;

  /* Feedback */
  --error: #ff4d6a;
  --success: #3cffd0;

  /* Links */
  --link-hover: #3860be;

  /* Typography */
  --font-display: 'Bebas Neue', Impact, Helvetica, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', Courier, monospace;

  /* Spacing base: 8px */
  --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;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
  --radius-pill: 24px;
  --radius-full: 50%;

  /* Transitions */
  --ease-fast: 150ms ease;
  --ease-normal: 180ms ease;
}

/* ── Light mode ──────────────────────────────────────────────── */
[data-theme="light"] {
  --canvas: #f5f5f3;
  --surface: #ffffff;
  --surface-raised: #f0efed;
  --surface-overlay: rgba(0, 0, 0, 0.03);

  --mint: #00A699;
  --mint-dim: #008f84;
  --mint-subtle: rgba(0, 166, 153, 0.08);
  --ultraviolet: #5200ff;
  --ultraviolet-dim: #3d00bf;

  --text-primary: #131313;
  --text-secondary: #6b6b6b;
  --text-muted: #3d3d3d;
  --text-inverted: #ffffff;

  --border: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.25);
  --border-mint: #00A699;

  --error: #d93251;
  --success: #00A699;

  --link-hover: #3860be;
}
