﻿/* ==========================================================================
   WAREHOUSE & LOGISTICS THEME TOKENS
   ========================================================================== */

:root {
  --font-sans-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans-ar: 'Cairo', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --sidebar-width: 250px;
  --header-height: 65px;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-sidebar: 100;
  --z-header: 90;
  --z-modal-backdrop: 500;
  --z-modal: 600;
  --z-toast: 1000;
}

/* Dark Theme */
[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: dark;

  --bg-app: #080c14;
  --bg-sidebar: #0d1422;
  --bg-header: rgba(13, 20, 34, 0.85);
  --bg-surface: #121c2f;
  --bg-surface-elevated: #1a2740;
  --bg-surface-hover: #223454;
  --bg-input: #0a101b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-active: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #080c14;

  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-surface: rgba(56, 189, 248, 0.12);

  --secondary: #fb923c;
  --secondary-surface: rgba(251, 146, 60, 0.12);

  /* Movement Badges */
  --type-inbound: #34d399;
  --type-inbound-bg: rgba(52, 211, 153, 0.15);
  --type-outbound: #f87171;
  --type-outbound-bg: rgba(248, 113, 113, 0.15);
  --type-transfer: #818cf8;
  --type-transfer-bg: rgba(129, 140, 248, 0.15);
  --type-adjustment: #fbbf24;
  --type-adjustment-bg: rgba(251, 191, 36, 0.15);

  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
}

/* Light Theme */
[data-theme="light"] {
  color-scheme: light;

  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-input: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-active: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-surface: rgba(2, 132, 199, 0.08);

  --secondary: #ea580c;
  --secondary-surface: rgba(234, 88, 12, 0.08);

  /* Movement Badges */
  --type-inbound: #059669;
  --type-inbound-bg: rgba(5, 150, 105, 0.12);
  --type-outbound: #dc2626;
  --type-outbound-bg: rgba(220, 38, 38, 0.12);
  --type-transfer: #4f46e5;
  --type-transfer-bg: rgba(79, 70, 229, 0.12);
  --type-adjustment: #d97706;
  --type-adjustment-bg: rgba(217, 119, 6, 0.12);

  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
}
