/* ============================================================
   RandevuCRM — design tokens ("Charcoal & Rose")
   THE one place for fonts and colours. Every page links this file first; css/shared.css, admin/admin-shared.css,
   css/legal.css and the inline styles of the public pages only ever use these variables.
   (The printed thermal receipt and Z-report are deliberately black-and-white and do not use them.)
   ============================================================ */

:root {
  /* ── Font: ONE family for all text, headings included (loaded by the <link> in every page's <head>) ── */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* ── Surfaces ── */
  --page-bg: #FFFFFF;          /* main background */
  --white: #FFFFFF;            /* cards, modals, inputs */
  --bg: #FAFAFA;               /* subtle areas: table headers, hover rows, read-only boxes */
  --track: #F4F4F5;            /* track of segmented controls */
  --grid-line: #F1F1F3;        /* calendar grid, row dividers */
  --border: #E4E4E7;           /* card / input borders */
  --border-light: #F1F1F3;

  /* ── Text ── */
  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-light: #71717A;       /* "muted" */
  --text-on-primary: #FFFFFF;

  /* ── Brand: rose ── */
  --primary: #B4415F;
  --primary-hover: #963450;
  --primary-light: #FBE7EC;    /* soft rose: tints, hover, selected rows */
  --primary-mid: #EBB4C3;
  --primary-dark: #963450;     /* text on --primary-light */
  --primary-tile: #D9627F;     /* logo tile */
  --focus-ring: rgba(180, 65, 95, 0.16);

  /* ── Charcoal sidebar / mobile top bar ── */
  --charcoal: #1C1C21;
  --sidebar-text: #C4C4CC;
  --sidebar-muted: #8E8E99;
  --sidebar-hover: #26262C;
  --sidebar-active: #2E2E36;
  --sidebar-line: rgba(255, 255, 255, 0.08);

  /* ── Segmented controls (Day / Week / Month, tabs, periods) ── */
  --seg-track: #F4F4F5;
  --seg-active-bg: #1C1C21;
  --seg-active-text: #FFFFFF;

  /* ── Status & accent hues: each has a solid colour, a soft background and a dark text colour (all text pairs >= 4.5:1) ── */
  --sage: #2A7F5C;             /* paid / confirmed / completed */
  --sage-light: #E3F3EA;
  --sage-dark: #1D6044;
  --gold: #B7791F;             /* pending / unpaid / warnings */
  --gold-light: #FBF0DA;
  --gold-dark: #7F5200;
  --red: #B83232;              /* cancelled / no-show / overdue / errors */
  --red-light: #FDECEC;
  --purple: #5B6B8C;           /* arrived / info (slate) */
  --purple-light: #E8EAF0;
  --purple-dark: #2B3245;

  /* ── Toggle switch ── */
  --toggle-off: #D4D4D8;
  --toggle-on: var(--primary);

  /* ── Appointment blocks: soft background + dark text of the same hue, dashed waiting time ── */
  --appt-radius: 10px;
  --wait-border: #D4D4D8;
  --wait-stripe-a: #FFFFFF;
  --wait-stripe-b: #F4F4F5;

  /* ── Legacy names (used all over the app and its tests): they point at the tokens above ── */
  --terracotta: var(--primary);
  --terracotta-light: var(--primary-light);
  --terracotta-mid: var(--primary-mid);
  --terracotta-dark: var(--primary-dark);

  /* ── Shape & depth ── */
  --radius-sm: 8px;
  --radius-btn: 10px;
  --radius: 12px;
  --radius-card: 14px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04);
  --shadow: none;                              /* cards are flat: a 1px border, no shadow */
  --shadow-md: 0 6px 20px rgba(24, 24, 27, 0.10);
  --shadow-lg: 0 12px 40px rgba(24, 24, 27, 0.16);

  --sidebar-width: 262px;
  --topbar-height: 68px;
  --bottom-nav-height: 68px;
  --transition: all 0.18s ease;
  --transition-slow: all 0.32s ease;
}
