/* ═══════════════════════════════════════════════════════════════
   Farnsla Design Tokens — Shared across all Shopify dashboard pages
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ── Brand ── */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --primary-ring: rgba(79, 70, 229, 0.22);

  /* ── Semantic ── */
  --success: #059669;
  --success-light: #ECFDF5;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --danger: #DC2626;
  --danger-light: #FEF2F2;

  /* ── Neutral scale ── */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* ── Typography ── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs:  0.75rem;   /* 12px */
  --text-sm:  0.875rem;  /* 14px */
  --text-base: 0.9375rem; /* 15px */
  --text-lg:  1.125rem;  /* 18px */
  --text-xl:  1.5rem;    /* 24px */
  --text-2xl: 1.875rem;  /* 30px */

  /* ── 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;

  /* ── Radii (only 3) ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  /* ── Legacy aliases (so existing var() references keep working) ── */
  --primary-color: var(--primary);
  --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  --font-size-heading: var(--text-xl);
  --font-size-subheading: var(--text-lg);
  --font-size-text: var(--text-base);
  --font-size-button: var(--text-base);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --border-color: var(--gray-200);
  --bg-primary: var(--gray-50);
  --bg-card: #ffffff;
  --border-radius: var(--radius-md);
}

/* ── Global resets ── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
