/* ===========================================
   JAVY 5 - Design Tokens
   Glasmorphism Design System (Chappy AI V2 Style)
   =========================================== */

:root {
  /* ---- Background Colors ---- */
  --bg-dark: #05050a;
  --bg-primary: #05050a;
  --bg-secondary: #0a0a14;
  --bg-card: rgba(12, 12, 20, 0.8);
  --bg-elevated: rgba(12, 12, 25, 0.92);
  --bg-hover: rgba(255, 255, 255, 0.03);

  /* ---- Accent Colors ---- */
  --accent-purple: #8b5cf6;
  --accent-purple-hover: #7c3aed;
  --accent-purple-muted: rgba(139, 92, 246, 0.15);
  --accent-purple-light: rgba(139, 92, 246, 0.1);
  --accent-cyan: #06b6d4;
  --accent-cyan-hover: #0891b2;
  --accent-cyan-muted: rgba(6, 182, 212, 0.15);
  --accent-pink: #ec4899;
  --accent-pink-hover: #db2777;
  --accent-pink-muted: rgba(236, 72, 153, 0.15);

  /* ---- Glow Colors ---- */
  --glow-purple: rgba(139, 92, 246, 0.3);
  --glow-cyan: rgba(6, 182, 212, 0.3);
  --glow-pink: rgba(236, 72, 153, 0.3);

  /* ---- Gradients ---- */
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --gradient-primary-wide: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6, #ec4899);
  --gradient-accent: linear-gradient(135deg, #06b6d4, #ec4899);
  --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(6, 182, 212, 0.05));

  /* ---- Glass ---- */
  --glass-bg: rgba(18, 18, 35, 0.6);
  --glass-bg-hover: rgba(18, 18, 35, 0.75);
  --glass-bg-active: rgba(18, 18, 35, 0.85);
  --glass-bg-light: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-border-active: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(20px);
  --glass-blur-heavy: blur(24px);
  --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);

  /* ---- Text Colors (solid hex like Chappy AI V2) ---- */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-accent: var(--accent-purple);
  --text-link: var(--accent-cyan);

  /* ---- Status Colors ---- */
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-error: #ef4444;
  --color-error-bg: rgba(239, 68, 68, 0.1);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-info: #3b82f6;
  --color-info-bg: rgba(59, 130, 246, 0.1);

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

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

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
  --shadow-glow-pink: 0 0 20px rgba(236, 72, 153, 0.3);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Font Sizes (Chappy AI V2: xs=11, sm=12, md=13, lg=14, xl=16) ---- */
  --font-xs: 11px;
  --font-sm: 12px;
  --font-base: 13px;
  --font-md: 14px;
  --font-lg: 16px;
  --font-xl: 20px;
  --font-2xl: 24px;
  --font-3xl: 28px;

  /* ---- Font Family ---- */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* ---- Z-Index Layers ---- */
  --z-base: 1;
  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 300;
  --z-chat: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* ---- Layout ---- */
  --header-height: 56px;
  --sidebar-width: 280px;
  --chat-width: 380px;
  --chat-min-width: 320px;
  --chat-min-height: 300px;
}
