/* ============================================
   Design System Variables (Design Tokens)
   URL Shortener Pro - Neo-Futuristic Theme
   ============================================ */

:root {
  /* ========== Color Palette ========== */

  /* Brand Colors - Electric & Neon */
  --primary-indigo: #6366f1;
  --primary-purple: #8b5cf6;
  --primary-pink: #d946ef;
  --primary-cyan: #06b6d4;
  --primary-teal: #14b8a6;
  --primary-emerald: #10b981;
  --primary-amber: #f59e0b;
  --primary-rose: #f43f5e;
  --primary-violet: #7c3aed;

  /* Enhanced Gradients */
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --gradient-ocean: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
  --gradient-sunset: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --gradient-forest: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  --gradient-cosmic: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
  --gradient-fire: linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);

  /* Glow Effects */
  --primary-glow: 0 0 20px rgba(99, 102, 241, 0.5);
  --cyan-glow: 0 0 20px rgba(6, 182, 212, 0.5);
  --emerald-glow: 0 0 20px rgba(16, 185, 129, 0.5);
  --amber-glow: 0 0 20px rgba(245, 158, 11, 0.5);
  --rose-glow: 0 0 20px rgba(244, 63, 94, 0.5);

  /* Background Colors - Deep Void */
  --bg-dark: #0B0E14;
  /* obsidian-950 */
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-elevated: rgba(30, 41, 59, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(11, 14, 20, 0.85);

  /* Text Colors */
  --text-primary: #ffffff;
  /* Pure White */
  --text-secondary: #e2e8f0;
  /* Slate-200 */
  --text-muted: #cbd5e1;
  /* Slate-300 */
  --text-disabled: #94a3b8;
  /* Slate-400 */

  /* Semantic Colors */
  --success-light: #34d399;
  --success-dark: #059669;
  --success-hover: #10b981;
  --success-gradient: linear-gradient(135deg, #059669 0%, #34d399 100%);
  --success-glow: 0 0 20px rgba(16, 185, 129, 0.4);

  --warning-light: #fbbf24;
  --warning-dark: #d97706;
  --warning-hover: #f59e0b;
  --warning-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  --warning-glow: 0 0 20px rgba(245, 158, 11, 0.4);

  --info-light: #38bdf8;
  --info-dark: #0284c7;
  --info-hover: #0ea5e9;
  --info-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  --info-glow: 0 0 20px rgba(14, 165, 233, 0.4);

  --danger-light: #f87171;
  --danger-dark: #dc2626;
  --danger-hover: #ef4444;
  --danger-gradient: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
  --danger-glow: 0 0 20px rgba(239, 68, 68, 0.4);

  /* ========== Typography ========== */

  /* Font Families */
  --font-primary: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-loose: 1.8;

  /* ========== Spacing & Layout ========== */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --nav-height: 80px;

  /* ========== Border Radius ========== */

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* ========== Effects ========== */

  /* Glassmorphism */
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-highlight: 1px solid rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --glass-blur: blur(20px);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.3);

  /* Animation Timing */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-spring: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-theme: 0.35s ease;

  /* Animation Durations */
  --duration-100: 100ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;

  /* Z-Index */
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1050;

  /* Footer */
  --footer-bg: rgba(11, 14, 20, 0.85);
  --footer-border: linear-gradient(90deg, var(--primary-indigo), var(--primary-purple), var(--primary-pink), var(--primary-cyan));

  /* Input / Form */
  --input-bg: rgba(17, 24, 39, 0.5);
  --input-focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 16px rgba(99, 102, 241, 0.1);
  --input-border: rgba(255, 255, 255, 0.08);

  /* Table */
  --zebra-row: rgba(255, 255, 255, 0.02);
  --zebra-row-hover: rgba(255, 255, 255, 0.05);

  /* Scrollbar */
  --scrollbar-track: var(--bg-dark);
  --scrollbar-thumb: rgba(148, 163, 184, 0.3);
  --scrollbar-thumb-hover: rgba(148, 163, 184, 0.5);
}

[data-theme="light"] {
  /* ========== Color Palette (Light Mode) ========== */
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-elevated: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.97);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-disabled: #cbd5e1;

  --glass-border: 1px solid rgba(0, 0, 0, 0.06);
  --glass-highlight: 1px solid rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);

  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.12);

  /* Footer - Light */
  --footer-bg: rgba(241, 245, 249, 0.95);

  /* Input - Light */
  --input-bg: rgba(248, 250, 252, 0.8);
  --input-focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.15), 0 0 12px rgba(99, 102, 241, 0.08);
  --input-border: rgba(0, 0, 0, 0.1);

  /* Table - Light */
  --zebra-row: rgba(0, 0, 0, 0.015);
  --zebra-row-hover: rgba(99, 102, 241, 0.04);

  /* Scrollbar - Light */
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: rgba(100, 116, 139, 0.25);
  --scrollbar-thumb-hover: rgba(100, 116, 139, 0.4);
}