/* ═══════════════════════════════════════════════════════════════
   NailSalon POS — Design Tokens
   Source of truth: src/04.Apps/NailSalon.App.Tablet/Resources/Styles/Colors.xaml
   Dark theme · plum-tinted neutrals · pastel accents
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ───────── Backgrounds ───────── */
  --bg-primary:   #0f0d12;   /* page / shell */
  --bg-panel:     #110e18;   /* secondary panel */
  --bg-basket:    #0d0b14;   /* deepest column (basket / drawer) */

  /* ───────── Surfaces (raised) ───────── */
  --surface-card: #1c1824;   /* card / chip */
  --surface-item: #161220;   /* row item / input / pin button */
  --surface-active: #2a1f3a; /* selected nav, hover lift */

  /* ───────── Borders ───────── */
  --border-subtle: #1e1a28;  /* dividers, faint outline (0.5px) */
  --border-card:   #2a2240;  /* card outline, focus ring (1px) */

  /* ───────── Accents (pastel — never hardcode) ───────── */
  --accent-purple: #c9a0e8;  /* primary — lash / brand */
  --accent-teal:   #80d4c8;  /* success / spa / categories */
  --accent-rose:   #e8a0b4;  /* destructive / nail / customer-app */
  --accent-amber:  #e8c080;  /* warning / discount / other */

  /* Accent tinted backgrounds (12% mix on bg-primary) */
  --tint-purple: #2a1f3a;
  --tint-teal:   #1a2a28;
  --tint-rose:   #2a1a20;
  --tint-amber:  #2a2218;

  /* ───────── Text ───────── */
  --text-heading:   #f0e8fc;
  --text-body:      #d4cce0;
  --text-secondary: #9b8fad;
  --text-muted:     #5a4f6a;

  /* ───────── Semantic aliases ───────── */
  --fg1: var(--text-heading);
  --fg2: var(--text-body);
  --fg3: var(--text-secondary);
  --fg4: var(--text-muted);

  --success: var(--accent-teal);
  --warning: var(--accent-amber);
  --danger:  var(--accent-rose);
  --info:    var(--accent-purple);

  /* On-accent text (used when bg is an accent) */
  --on-accent: var(--bg-primary);

  /* ───────── Radii ───────── */
  --r-xs: 5px;   /* qty stepper */
  --r-sm: 8px;   /* button, input, chip */
  --r-md: 10px;  /* nav item, large button */
  --r-lg: 12px;  /* card, tab pill */
  --r-xl: 16px;  /* customer tab, large pill */
  --r-pill: 999px;

  /* ───────── Spacing — 4px base ───────── */
  --s-0: 0;
  --s-1: 4px;
  --s-2: 6px;
  --s-3: 8px;
  --s-4: 10px;
  --s-5: 12px;
  --s-6: 14px;
  --s-7: 16px;
  --s-8: 20px;
  --s-9: 24px;
  --s-10: 32px;

  /* ───────── Elevation ─────────
     Dark UI — shadows are subtle; we lift mostly with borders & color */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.55);
  --shadow-accent: 0 6px 18px rgba(201,160,232,.18); /* purple glow */

  /* ───────── Typography ─────────
     UI: Inter (system fallback). Mono: JetBrains Mono.
     The MAUI app uses platform system fonts (San Francisco on iOS); Inter is
     the closest open match for web prototypes. */
  --font-sans: 'Inter', -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Mono', monospace;

  /* The tablet POS is very dense — sizes mirror the XAML FontSize values.
     Customer / staff phone apps run ~3pt larger across the board. */
  --fs-9:  9px;   /* eyebrow micro-label */
  --fs-10: 10px;  /* row meta */
  --fs-11: 11px;  /* body (tablet) */
  --fs-13: 13px;  /* body (phone) / total label */
  --fs-15: 15px;  /* swipe action glyph */
  --fs-16: 16px;  /* card title (phone) */
  --fs-20: 20px;  /* price (phone) / nav glyph */
  --fs-22: 22px;  /* basket total */
  --fs-28: 28px;
  --fs-36: 36px;

  --lh-tight: 1.15;
  --lh-snug:  1.3;
  --lh-body:  1.45;

  --tracking-eyebrow: 0.12em; /* CharacterSpacing="1.2" → 9–10px label */
  --tracking-caps:    0.15em; /* CharacterSpacing="1.5" → strong eyebrows */

  /* Currency / numeric */
  --num-feature-settings: 'tnum' 1, 'ss01' 1;
}

/* ─────────────────────────────────────────────────────────────
   Element styles — semantic baseline
   ───────────────────────────────────────────────────────────── */

html, body {
  background: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-28);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-3);
}

h2, .h2 {
  font-size: var(--fs-22);
  font-weight: 700;
  color: var(--text-heading);
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-2);
}

h3, .h3 {
  font-size: var(--fs-16);
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 var(--s-2);
}

.eyebrow {
  font-size: var(--fs-9);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

p { color: var(--text-body); }

small, .caption {
  font-size: var(--fs-10);
  color: var(--text-secondary);
}

.muted { color: var(--text-muted); }

code, kbd, .mono, .price, .currency {
  font-family: var(--font-mono);
  font-feature-settings: var(--num-feature-settings);
}

.price {
  color: var(--accent-purple);
  font-weight: 700;
  font-feature-settings: 'tnum' 1;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
}
a:hover { color: var(--text-heading); }
