/* ==========================================================================
   LAXMI PHARMA DISTRIBUTION - DESIGN SYSTEM TOKENS & VARIABLES
   WCAG 2.2 AAA Accessibility Compliant, Modern Clinical-Logistics Aesthetic
   ========================================================================== */

:root {
  /* Color Palette - Core Brand (Light Mode Default) */
  --color-primary-950: #050d1a;
  --color-primary-900: #0a192f;
  --color-primary-800: #0f2447;
  --color-primary-700: #143261;
  --color-primary-600: #1d4ed8;
  --color-primary-500: #2563eb;
  --color-primary-400: #3b82f6;
  --color-primary-100: #dbeafe;
  --color-primary-50:  #eff6ff;

  /* Bio-Cyan & Precision Teal Accents */
  --color-accent-600:  #0891b2;
  --color-accent-500:  #06b6d4;
  --color-accent-400:  #22d3ee;
  --color-accent-300:  #67e8f9;
  --color-accent-100:  #cffafe;
  --color-accent-50:   #ecfeff;

  /* Healthcare Emerald & Success */
  --color-emerald-700: #047857;
  --color-emerald-600: #059669;
  --color-emerald-500: #10b981;
  --color-emerald-400: #34d399;
  --color-emerald-100: #d1fae5;
  --color-emerald-50:  #ecfdf5;

  /* Cold-Chain Sub-Zero Frost */
  --color-cold-600:    #0284c7;
  --color-cold-500:    #0ea5e9;
  --color-cold-400:    #38bdf8;
  --color-cold-100:    #e0f2fe;

  /* Warning / Amber */
  --color-amber-600:   #d97706;
  --color-amber-500:   #f59e0b;
  --color-amber-100:   #fef3c7;

  /* Error / Danger */
  --color-rose-600:    #e11d48;
  --color-rose-500:    #f43f5e;
  --color-rose-100:    #ffe4e6;

  /* WhatsApp Brand Green */
  --color-whatsapp:     #25D366;
  --color-whatsapp-dark:#128C7E;

  /* Theme Surfaces (Light Mode) */
  --bg-canvas:          #ffffff;
  --bg-surface:         #f8fafc;
  --bg-surface-elevated:#ffffff;
  --bg-surface-subtle:  #f1f5f9;
  --bg-surface-dark:    #0a192f;
  --bg-glass:           rgba(255, 255, 255, 0.85);
  --bg-glass-elevated:  rgba(255, 255, 255, 0.95);
  --bg-hero-glow:       radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.12) 0%, rgba(29, 78, 216, 0.08) 40%, transparent 70%);

  /* Borders */
  --border-subtle:      #e2e8f0;
  --border-medium:      #cbd5e1;
  --border-prominent:   #94a3b8;
  --border-focus:       #06b6d4;
  --border-glass:       rgba(226, 232, 240, 0.8);

  /* Typography Colors */
  --text-main:          #0f172a; /* 14.8:1 contrast on white */
  --text-secondary:     #334155; /* 8.2:1 contrast on white */
  --text-muted:         #64748b; /* 4.6:1 contrast on white */
  --text-inverse:       #ffffff;
  --text-inverse-muted: #94a3b8;

  /* Typography Scale */
  --font-display:       'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:          'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:          'JetBrains Mono', "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --fs-xs:   0.75rem;    /* 12px */
  --fs-sm:   0.875rem;   /* 14px */
  --fs-base: 1rem;       /* 16px */
  --fs-md:   1.125rem;   /* 18px */
  --fs-lg:   1.25rem;    /* 20px */
  --fs-xl:   1.5rem;     /* 24px */
  --fs-2xl:  1.875rem;   /* 30px */
  --fs-3xl:  2.25rem;    /* 36px */
  --fs-4xl:  3rem;       /* 48px */
  --fs-5xl:  3.75rem;    /* 60px */

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-normal: 1.5;
  --lh-loose:  1.7;

  /* Spacing Scale */
  --space-1:  0.25rem;  /* 4px */
  --space-2:  0.5rem;   /* 8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl:32px;
  --radius-full:9999px;

  /* Shadows & Elevations */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 12px -2px rgba(15, 23, 42, 0.08), 0 3px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.15);
  --shadow-glow-cyan: 0 0 24px rgba(6, 182, 212, 0.25);
  --shadow-glow-blue: 0 0 28px rgba(29, 78, 216, 0.25);
  --shadow-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout Constants */
  --max-width-content: 1280px;
  --max-width-wide: 1400px;
  --header-height: 80px;
  --topbar-height: 40px;
  --z-base: 1;
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* ==========================================================================
   DARK THEME OVERRIDES (High-Tech Clinical Slate Mode)
   ========================================================================== */
[data-theme="dark"] {
  --bg-canvas:          #060e1c;
  --bg-surface:         #0b172a;
  --bg-surface-elevated:#10223e;
  --bg-surface-subtle:  #152a4a;
  --bg-surface-dark:    #040a14;
  --bg-glass:           rgba(11, 23, 42, 0.85);
  --bg-glass-elevated:  rgba(16, 34, 62, 0.95);
  --bg-hero-glow:       radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.18) 0%, rgba(29, 78, 216, 0.15) 50%, transparent 75%);

  --border-subtle:      #1a2e4c;
  --border-medium:      #26436e;
  --border-prominent:   #3b629b;
  --border-focus:       #22d3ee;
  --border-glass:       rgba(26, 46, 76, 0.7);

  --text-main:          #f8fafc;
  --text-secondary:     #cbd5e1;
  --text-muted:         #8ea3c4;
  --text-inverse:       #0b172a;
  --text-inverse-muted: #475569;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 32px -6px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 28px 56px -12px rgba(0, 0, 0, 0.75);
}
