/* web/css/tokens.css — Modern Light Theme Design System for S.P. Auto Dealers */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ─── Color Palette (Light Theme) ─────────────────────────────────────── */
  --bg-app:        #f8fafc;
  --bg-sidebar:    #ffffff;
  --bg-header:     #ffffff;
  --bg-card:       #ffffff;
  --bg-card-sub:   #f8fafc;
  --bg-input:      #ffffff;
  --bg-input-bar:  #ffffff;
  --bg-glass:      rgba(255, 255, 255, 0.95);

  /* Primary Blue Accents */
  --primary-50:    #eff6ff;
  --primary-100:   #dbeafe;
  --primary-200:   #bfdbfe;
  --primary-500:   #3b82f6;
  --primary-600:   #2563eb;
  --primary-700:   #1d4ed8;
  --primary-800:   #1e40af;
  --primary-900:   #1e3a8a;

  /* Red Brand Color */
  --brand-red:     #e11d48;
  --brand-red-dark:#be123c;
  --brand-red-bg:  #ffe4e6;

  /* Neutrals & Slate */
  --slate-50:      #f8fafc;
  --slate-100:     #f1f5f9;
  --slate-200:     #e2e8f0;
  --slate-300:     #cbd5e1;
  --slate-400:     #94a3b8;
  --slate-500:     #64748b;
  --slate-600:     #475569;
  --slate-700:     #334155;
  --slate-800:     #1e293b;
  --slate-900:     #0f172a;

  /* Text Colors */
  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-light:     #94a3b8;
  --text-blue:      #2563eb;

  /* Status Colors */
  --status-pending:   #f59e0b;
  --status-pending-bg:#fef3c7;
  --status-pending-tx:#b45309;

  --status-confirmed:   #3b82f6;
  --status-confirmed-bg:#dbeafe;
  --status-confirmed-tx:#1d4ed8;

  --status-packed:   #8b5cf6;
  --status-packed-bg:#ede9fe;
  --status-packed-tx:#6d28d9;

  --status-shipped:   #06b6d4;
  --status-shipped-bg:#cffafe;
  --status-shipped-tx:#0e7490;

  --status-delivered:   #10b981;
  --status-delivered-bg:#d1fae5;
  --status-delivered-tx:#047857;

  --status-cancelled:   #ef4444;
  --status-cancelled-bg:#fee2e2;
  --status-cancelled-tx:#b91c1c;

  /* Party Badge Green */
  --party-bg:     #ecfdf5;
  --party-border: #a7f3d0;
  --party-text:   #065f46;
  --party-sub:    #047857;

  /* Borders & Shadows */
  --border-light:   #e2e8f0;
  --border-focus:   #3b82f6;
  --border-subtle:  #f1f5f9;

  --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg:  0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-pill: 0 4px 20px rgba(0, 0, 0, 0.06);

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-pill: 9999px;

  /* Spacing */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Dimensions */
  --sidebar-w: 260px;
  --header-h:  64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Page/Window can never scroll */
}

body {
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea, select {
  font-family: inherit;
}
