/*
 * PlusERP Design System Foundation — Phase 1
 * Semantic tokens only. Existing workspace aliases remain in styles.css until
 * the controlled Phase 2 adoption. No selector in this file targets live UI.
 */
:root {
  color-scheme: light;

  /* Brand and neutral surfaces */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-active: #1e40af;
  --color-primary-soft: #eff6ff;
  --color-focus-ring: rgba(37, 99, 235, 0.28);
  --color-bg-app: #f2f4f8;
  --color-bg-surface: #ffffff;
  --color-bg-elevated: #ffffff;
  --color-bg-subtle: #f7f9fc;
  --color-bg-disabled: #eef2f6;
  --color-border: #dbe2ea;
  --color-border-strong: #cbd5e1;
  --color-divider: #e8edf3;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-disabled: #94a3b8;
  --color-on-primary: #ffffff;

  /* Semantic states */
  --color-success: #15803d;
  --color-success-hover: #166534;
  --color-success-soft: #f0fdf4;
  --color-warning: #b45309;
  --color-warning-hover: #92400e;
  --color-warning-soft: #fffbeb;
  --color-danger: #b91c1c;
  --color-danger-hover: #991b1b;
  --color-danger-soft: #fef2f2;
  --color-info: #2563eb;
  --color-info-soft: #eff6ff;
  --color-purple: #7c3aed;
  --color-purple-soft: #f5f3ff;
  --color-orange: #ea580c;
  --color-orange-soft: #fff7ed;
  --color-teal: #0f766e;
  --color-teal-soft: #f0fdfa;
  --color-cyan: #0e7490;
  --color-cyan-soft: #ecfeff;
  --color-rose: #e11d48;
  --color-rose-soft: #fff1f2;

  /* Typography */
  --font-family-sans: Inter, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-size-page-title: 30px;
  --font-size-section-title: 20px;
  --font-size-card-title: 16px;
  --font-size-body: 14px;
  --font-size-label: 13px;
  --font-size-table: 13px;
  --font-size-secondary: 12px;
  --font-size-caption: 11px;
  --font-size-kpi-label: 13px;
  --font-size-kpi-value: 24px;
  --font-size-button: 14px;
  --font-size-badge: 11px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-body: 1.5;

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

  /* Shape, borders and elevation */
  --radius-sm: 6px;
  --radius-control: 8px;
  --radius-card: 10px;
  --radius-modal: 12px;
  --radius-pill: 999px;
  --border-width: 1px;
  --border-standard: var(--border-width) solid var(--color-border);
  --border-strong: var(--border-width) solid var(--color-border-strong);
  --shadow-none: none;
  --shadow-subtle: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-modal: 0 20px 50px rgba(15, 23, 42, 0.18);
  --shadow-dropdown: 0 12px 30px rgba(15, 23, 42, 0.14);

  /* Controls, icons and data density */
  --control-height-compact: 36px;
  --control-height: 42px;
  --control-height-large: 48px;
  --icon-size-compact: 14px;
  --icon-size-standard: 16px;
  --icon-size-button: 18px;
  --icon-size-card: 20px;
  --icon-size-kpi: 24px;
  --icon-size-feature: 32px;
  --icon-box-compact: 28px;
  --icon-box-action: 36px;
  --icon-box-kpi: 44px;
  --icon-box-category: 48px;
  --table-header-height: 44px;
  --table-row-height: 48px;
  --table-row-height-compact: 40px;
  --workspace-max-width: 1920px;
  --workspace-padding-inline: 24px;
  --workspace-padding-block: 20px;

  /* Motion and responsive reference values */
  --duration-fast: 120ms;
  --duration-standard: 180ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --breakpoint-mobile: 480px;
  --breakpoint-small-tablet: 640px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1440px;
}

