/**
 * CSS Custom Properties (Variables)
 * AMR Label Maker V2
 */

:root {
  /* ===== Label Dimensions ===== */
  --label-w: 50mm;
  --label-h: 25mm;
  --qr-size: 15mm;
  --label-pad: 2mm;
  --label-border: 0.2mm;
  --label-radius: 2mm;

  /* ===== Colors - Light Theme ===== */
  --color-primary: #0ea5e9;
  --color-primary-hover: #0284c7;
  --color-primary-light: #e0f2fe;
  
  --color-secondary: #475569;
  --color-secondary-hover: #334155;
  
  --color-success: #10b981;
  --color-success-hover: #059669;
  
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  
  /* Background Colors */
  --bg-app: #0f172a;
  --bg-panel: #ffffff;
  --bg-input: #f8fafc;
  --bg-input-focus: #ffffff;
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-primary: #ffffff;
  
  /* Border Colors */
  --border-color: #e2e8f0;
  --border-color-focus: #94a3b8;
  
  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(2, 6, 23, 0.2);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.25);

  /* ===== Typography ===== */
  --font-main: "Sarabun", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;

  /* ===== Spacing ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* ===== Border Radius ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ===== Transitions ===== */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* ===== Layout ===== */
  --sidebar-width: 360px;
  --action-bar-height: 80px;
  --preview-scale: 2.5;

  /* ===== Z-Index ===== */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal: 40;
  --z-tooltip: 50;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --color-primary: #38bdf8;
  --color-primary-hover: #0ea5e9;
  --color-primary-light: rgba(56, 189, 248, 0.15);

  --bg-app: #0b1120;
  --bg-panel: #1e293b;
  --bg-input: #334155;
  --bg-input-focus: #3b4d66;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-color: #475569;
  --border-color-focus: #64748b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
}
