/*
 * ServisOS colour tokens, shared by the shop app (app.css) and the platform
 * panel (platform.css): dark by default, light via data-theme="light"
 * (set before first paint by theme-boot.js). Copied from ServisPlus
 * packages/ui/src/styles/tokens.css — keep the names in step with it.
 */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0b0f17;
  --surface: #151c28;
  --surface-hover: #1c2638;
  --surface-sunken: #0f1520;
  --border: #222f43;
  --foreground: #f1f5f9;
  --muted: #94a3b8;
  --subtle: #7d8ba1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-foreground: #ffffff;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --ring: #3b82f6;
  --success: #10b981;
  --success-foreground: #34d399;
  --warning: #f59e0b;
  --warning-foreground: #fbbf24;
  --pending: #f97316;
  --pending-foreground: #fb923c;
  --danger: #ef4444;
  --danger-foreground: #f87171;
  --accent-foreground: #c084fc;
  --plate-bg: #e2e8f0;
  --plate-fg: #0f172a;
  --shadow-primary: 0 10px 24px -8px rgba(37, 99, 235, 0.45);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --nav-height: 64px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --surface-sunken: #f1f5f9;
  --border: #e2e8f0;
  --foreground: #0f172a;
  --muted: #5f6f85;
  --subtle: #5f6f85;
  --primary-soft: rgba(37, 99, 235, 0.08);
  --ring: #1d4ed8;
  --success-foreground: #047857;
  --warning-foreground: #ae4c09;
  --pending-foreground: #b93c0b;
  --danger-foreground: #b91c1c;
  --accent-foreground: #7e22ce;
  --plate-bg: #0f172a;
  --plate-fg: #f8fafc;
  --shadow-primary: 0 10px 24px -10px rgba(37, 99, 235, 0.5);
}
