/**
 * EffRx Sales Planner - Design Tokens
 * Version: 2.0 - Modern Glassmorphism
 * Brand Color: #1d3d91
 */

:root {
  /* ========================================
     BRAND COLORS
     ======================================== */
  --color-brand: #1d3d91;
  --color-brand-light: #2952b8;
  --color-brand-dark: #152d6b;
  --color-brand-rgb: 29, 61, 145;

  /* Brand Gradient */
  --gradient-brand: linear-gradient(135deg, #1d3d91 0%, #2952b8 50%, #3b67d4 100%);
  --gradient-brand-subtle: linear-gradient(135deg, rgba(29,61,145,0.08) 0%, rgba(59,103,212,0.04) 100%);

  /* ========================================
     ACCENT COLORS
     ======================================== */
  --color-accent: #6366f1;        /* Indigo - for highlights */
  --color-accent-light: #818cf8;
  --color-accent-rgb: 99, 102, 241;

  /* ========================================
     SEMANTIC COLORS
     ======================================== */
  --color-success: #10b981;       /* Modern emerald */
  --color-success-light: #34d399;
  --color-success-bg: rgba(16, 185, 129, 0.1);

  --color-warning: #f59e0b;       /* Warm amber */
  --color-warning-light: #fbbf24;
  --color-warning-bg: rgba(245, 158, 11, 0.1);

  --color-danger: #ef4444;        /* Modern red */
  --color-danger-light: #f87171;
  --color-danger-bg: rgba(239, 68, 68, 0.1);

  --color-info: #3b82f6;          /* Bright blue */
  --color-info-light: #60a5fa;
  --color-info-bg: rgba(59, 130, 246, 0.1);

  /* ========================================
     NEUTRAL COLORS
     ======================================== */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;       /* Subtle background */
  --color-gray-100: #f1f5f9;      /* Card backgrounds */
  --color-gray-200: #e2e8f0;      /* Borders, dividers */
  --color-gray-300: #cbd5e1;      /* Disabled states */
  --color-gray-400: #94a3b8;      /* Placeholder text */
  --color-gray-500: #64748b;      /* Secondary text */
  --color-gray-600: #475569;      /* Body text */
  --color-gray-700: #334155;      /* Headings */
  --color-gray-800: #1e293b;      /* Dark text */
  --color-gray-900: #0f172a;      /* Darkest text */

  /* ========================================
     STATUS COLORS (Orders/Stock)
     ======================================== */
  --color-status-blocked: #ef4444;
  --color-status-blocked-bg: rgba(239, 68, 68, 0.12);

  --color-status-backlog: #f59e0b;
  --color-status-backlog-bg: rgba(245, 158, 11, 0.12);

  --color-status-open: #eab308;
  --color-status-open-bg: rgba(234, 179, 8, 0.12);

  --color-status-wip: #06b6d4;
  --color-status-wip-bg: rgba(6, 182, 212, 0.12);

  --color-status-transit: #10b981;
  --color-status-transit-bg: rgba(16, 185, 129, 0.12);

  /* ========================================
     BACKGROUND
     ======================================== */
  --bg-body: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 50%, #f0fdf4 100%);
  --bg-page: #f8fafc;
  --bg-elevated: #ffffff;

  /* ========================================
     TYPOGRAPHY
     ======================================== */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  /* Font Sizes - Fluid scale */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.8125rem;    /* 13px */
  --font-size-base: 0.875rem;   /* 14px */
  --font-size-md: 1rem;         /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* ========================================
     SPACING
     ======================================== */
  --spacing-0: 0;
  --spacing-1: 0.25rem;     /* 4px */
  --spacing-2: 0.5rem;      /* 8px */
  --spacing-3: 0.75rem;     /* 12px */
  --spacing-4: 1rem;        /* 16px */
  --spacing-5: 1.25rem;     /* 20px */
  --spacing-6: 1.5rem;      /* 24px */
  --spacing-8: 2rem;        /* 32px */
  --spacing-10: 2.5rem;     /* 40px */
  --spacing-12: 3rem;       /* 48px */
  --spacing-16: 4rem;       /* 64px */

  /* ========================================
     BORDERS
     ======================================== */
  --border-width: 1px;
  --border-color: rgba(29, 61, 145, 0.08);
  --border-color-strong: rgba(29, 61, 145, 0.15);

  /* Border Radius - More rounded for modern feel */
  --radius-sm: 0.375rem;    /* 6px */
  --radius-md: 0.5rem;      /* 8px */
  --radius-lg: 0.75rem;     /* 12px */
  --radius-xl: 1rem;        /* 16px */
  --radius-2xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;

  /* ========================================
     SHADOWS - Soft & Colored
     ======================================== */
  --shadow-xs: 0 1px 2px rgba(29, 61, 145, 0.04);
  --shadow-sm: 0 2px 4px rgba(29, 61, 145, 0.06), 0 1px 2px rgba(29, 61, 145, 0.04);
  --shadow-md: 0 4px 8px rgba(29, 61, 145, 0.08), 0 2px 4px rgba(29, 61, 145, 0.04);
  --shadow-lg: 0 8px 16px rgba(29, 61, 145, 0.1), 0 4px 8px rgba(29, 61, 145, 0.06);
  --shadow-xl: 0 16px 32px rgba(29, 61, 145, 0.12), 0 8px 16px rgba(29, 61, 145, 0.08);

  /* Glow shadows for interactive elements */
  --shadow-glow-brand: 0 0 20px rgba(29, 61, 145, 0.25);
  --shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.25);
  --shadow-glow-danger: 0 0 20px rgba(239, 68, 68, 0.25);

  /* Focus Ring */
  --shadow-focus: 0 0 0 3px rgba(29, 61, 145, 0.2);
  --shadow-focus-danger: 0 0 0 3px rgba(239, 68, 68, 0.2);

  /* ========================================
     GLASSMORPHISM
     ======================================== */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 12px;
  --glass-blur-strong: 20px;

  /* ========================================
     TRANSITIONS
     ======================================== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ========================================
     Z-INDEX
     ======================================== */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* ========================================
     COMPONENT TOKENS
     ======================================== */

  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-bg: var(--gradient-brand);
  --sidebar-item-hover: rgba(255, 255, 255, 0.1);
  --sidebar-item-active: rgba(255, 255, 255, 0.2);

  /* Top Bar */
  --topbar-height: 4rem;
  --topbar-bg: var(--glass-bg-strong);
  --topbar-blur: var(--glass-blur);

  /* Cards */
  --card-bg: var(--glass-bg-strong);
  --card-border: var(--border-color);
  --card-radius: var(--radius-xl);
  --card-shadow: var(--shadow-md);
  --card-padding: var(--spacing-6);

  /* Tables */
  --table-header-bg: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-light) 100%);
  --table-header-color: #ffffff;
  --table-row-hover: rgba(29, 61, 145, 0.04);
  --table-stripe-bg: rgba(29, 61, 145, 0.02);
  --table-radius: var(--radius-lg);

  /* Buttons */
  --btn-radius: var(--radius-md);
  --btn-font-weight: var(--font-weight-semibold);
  --btn-shadow: var(--shadow-sm);
  --btn-shadow-hover: var(--shadow-md);

  /* Inputs */
  --input-bg: var(--color-white);
  --input-border: var(--color-gray-300);
  --input-radius: var(--radius-md);
  --input-focus-border: var(--color-brand);
  --input-focus-shadow: var(--shadow-focus);

  /* Badges */
  --badge-radius: var(--radius-full);
  --badge-font-weight: var(--font-weight-semibold);

  /* Modal */
  --modal-backdrop: rgba(15, 23, 42, 0.6);
  --modal-bg: var(--glass-bg-strong);
  --modal-radius: var(--radius-2xl);
  --modal-shadow: var(--shadow-xl);

  /* Calendar */
  --calendar-selected-bg: var(--color-brand);
  --calendar-hover-bg: rgba(29, 61, 145, 0.08);
  --calendar-today-ring: var(--color-brand);
}

/* ========================================
   GOOGLE FONTS - Inter
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
