/*
 * Design tokens — สกัดจาก _reference/orgcare360_design_system_preview_v4_motion_progress_standalone.html
 * (บรรทัด 9-86 สำหรับสี/spacing/radius/shadow, บรรทัด 906-922 สำหรับ chart color token)
 * ต้องโหลดไฟล์นี้ก่อน CSS อื่นทุกไฟล์เสมอ — ทุก component อ้างอิงตัวแปรจากที่นี่
 * ห้าม hardcode สีหรือระยะห่างเป็นค่าตรงๆ ในไฟล์อื่น ให้อ้างชื่อตัวแปรเสมอ
 */

/*
 * Enterprise Design Tokens — World-Class Professional SaaS Standard
 * Inspired by Stripe, Vercel, TailwindUI & Linear Design Systems
 */

:root {
  --font-sans: 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --brand-950: #090d16;
  --brand-900: #0f172a;
  --brand-800: #1e293b;
  --primary: #059669;
  --primary-hover: #047857;
  --primary-soft: #ecfdf5;
  --primary-border: #a7f3d0;
  --accent: #10b981;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --info: #059669;
  --info-soft: #ecfdf5;
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --surface-muted: #e2e8f0;
  --surface-raised: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --focus: #60a5fa;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --space: 20px;
  --sidebar-width: 280px;
  --chart-1: #3b82f6;
  --chart-2: #0d9488;
  --chart-3: #f59e0b;
  --chart-4: #8b5cf6;
  --chart-5: #ec4899;
  --chart-6: #64748b;
  --chart-grid: #e2e8f0;
  --chart-axis: #64748b;
  --motion-speed: 1;
  color-scheme: light;
}

html[data-theme="dark"] {
  --brand-950: #030712;
  --brand-900: #0b0f19;
  --brand-800: #111827;
  --primary: #60a5fa;
  --primary-hover: #93c5fd;
  --primary-soft: #172554;
  --primary-border: #1e40af;
  --accent: #2dd4bf;
  --success: #34d399;
  --success-soft: #064e3b;
  --warning: #fbbf24;
  --warning-soft: #451a03;
  --danger: #f87171;
  --danger-soft: #450a0a;
  --info: #38bdf8;
  --info-soft: #075985;
  --canvas: #0b0f19;
  --surface: #111827;
  --surface-subtle: #1f2937;
  --surface-muted: #374151;
  --surface-raised: #1f2937;
  --text: #f9fafb;
  --text-soft: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --border-strong: #374151;
  --focus: #60a5fa;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px 0 rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px 0 rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 50px 0 rgba(0, 0, 0, 0.6);
  --chart-1: #60a5fa;
  --chart-2: #2dd4bf;
  --chart-3: #fbbf24;
  --chart-4: #a78bfa;
  --chart-5: #f472b6;
  --chart-6: #9ca3af;
  color-scheme: dark;
}

html[data-density="compact"] {
  --space: 14px;
  --radius-md: 8px;
  --radius-lg: 12px;
}
