/* ==========================================================================
   ApexPOS - Simple, Refined Modern Design Tokens
   ========================================================================== */

:root {
  /* Neutral Dark Theme Canvas & Surfaces */
  --bg-canvas: #09090b;
  --bg-surface: #111114;
  --bg-elevated: #17171b;
  --bg-card: #141417;
  --bg-hover: #1f1f25;
  --bg-active: #26262e;

  /* Subtle Clean Borders */
  --border-subtle: #23232a;
  --border-muted: #1c1c22;
  --border-focus: #363642;
  --border-accent: #e4e4e7;

  /* Clean Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #09090b;

  /* Refined, Calm Accents (Used minimally and purposefully) */
  --accent-primary: #ffffff;
  --accent-subtle: #27272a;
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.08);
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.08);
  --accent-crimson: #ef4444;
  --accent-crimson-glow: rgba(239, 68, 68, 0.08);
  --accent-sky: #38bdf8;
  --accent-sky-glow: rgba(56, 189, 248, 0.08);

  /* Typography Specs */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px 0 rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.7);

  /* Touch Sizing & Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --touch-target-min: 44px;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 72px;
  --cart-width: 420px;

  /* Transitions */
  --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  /* Curated Taste-Skill Clean Light Mode */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-active: #e2e8f0;

  /* Subtle Hairline Borders */
  --border-subtle: #e2e8f0;
  --border-muted: #edf2f7;
  --border-focus: #cbd5e1;
  --border-accent: #0f172a;

  /* Clean Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Refined Semantic Accents */
  --accent-primary: #0f172a;
  --accent-subtle: #f1f5f9;
  --accent-amber: #d97706;
  --accent-amber-glow: rgba(217, 119, 6, 0.08);
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.08);
  --accent-crimson: #dc2626;
  --accent-crimson-glow: rgba(220, 38, 38, 0.08);
  --accent-sky: #0284c7;
  --accent-sky-glow: rgba(2, 132, 199, 0.08);

  /* Clean Light Mode Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  user-select: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--border-focus);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
