/* SmallWoo Design Tokens */
/* WooCommerce ↔ Smallinvoice Gateway design system */

:root {
  /* Primary indigo palette (modern SaaS feel) */
  --color-primary: #6366f1;
  --color-primary-light: #e0e7ff;
  --color-primary-dark: #4f46e5;
  --color-primary-hover: #7c7ff7;

  /* Accent warm orange (the "Woo" in WooCommerce) */
  --color-accent: #f59e0b;
  --color-accent-light: #fef3c7;
  --color-accent-dark: #d97706;

  /* Status colors */
  --color-success: #22c55e;
  --color-success-light: #bbf7d0;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fecaca;
  --color-info: #3b82f6;
  --color-info-light: #bfdbfe;

  /* Backgrounds */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f8fafc;
  --bg-hover: #f1f5f9;
  --bg-header: #e0e7ff;

  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;
  --text-link: #6366f1;

  /* Borders */
  --border-light: rgba(0, 0, 0, 0.06);
  --border-medium: #cbd5e1;
  --border-card: #e2e8f0;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

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

/*
 * Dark mode - only activated manually via body.dark-mode class
 * Light mode is always the default, regardless of system preference
 */
body.dark-mode {
  --color-primary: #818cf8;
  --color-primary-light: #312e81;
  --color-primary-dark: #a5b4fc;
  --color-primary-hover: #a5b4fc;

  --color-accent: #fbbf24;
  --color-accent-light: #78350f;
  --color-accent-dark: #fcd34d;

  --bg-page: #0f172a;
  --bg-card: #1e293b;
  --bg-muted: #1e293b;
  --bg-hover: #334155;
  --bg-header: #312e81;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-link: #818cf8;

  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: #334155;
  --border-card: #334155;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.3);

  --color-success: #4ade80;
  --color-success-light: #166534;
  --color-danger: #f87171;
  --color-danger-light: #991b1b;
  --color-warning: #fbbf24;
  --color-warning-light: #78350f;
  --color-info: #60a5fa;
  --color-info-light: #1e40af;
}
