/* ==========================================================================
   THEME.CSS — Design Tokens, Typography & Color Palettes
   Standardized based on mtips5s_30_VPS3_UX_UI_Design Curriculum
   ========================================================================== */

:root {
  /* Color Palette - Dark Obsidian (Default) */
  --bg-app: #080a10;
  --bg-sidebar: #0d111b;
  --bg-surface: #111726;
  --bg-surface-elevated: #182033;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(28, 38, 60, 0.95);
  --bg-glass: rgba(18, 24, 38, 0.72);
  --bg-input: #141b2b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #24a1de;
  --border-accent: rgba(36, 161, 222, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #090e17;

  /* Brand Accents (Telegram Blue & UX Palette) */
  --tg-blue: #24a1de;
  --tg-blue-hover: #1b8ec5;
  --tg-blue-active: #1579a8;
  --tg-cyan: #38bdf8;
  --tg-blue-glow: rgba(36, 161, 222, 0.28);

  --accent-primary: #24a1de;
  --accent-primary-hover: #1b8ec5;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;       /* Green for success & images */
  --accent-amber: #f59e0b;         /* Amber for warnings */
  --accent-rose: #f43f5e;          /* Rose for errors/danger */
  --accent-purple: #8b5cf6;        /* Purple for documents */

  /* Gradient Tokens */
  --grad-primary: linear-gradient(135deg, #0284c7 0%, #24a1de 50%, #38bdf8 100%);
  --grad-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(36, 161, 222, 0.18) 0%, transparent 70%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-rose: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);

  /* Shadows & Elevation */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 24px rgba(36, 161, 222, 0.25);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);

  /* Radius (Standard System) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Typography Scale */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Monaco, Consolas, monospace;

  --font-size-xs: 10px;
  --font-size-sm: 12px;
  --font-size-base: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;

  /* Spacing Scale (8pt Grid System) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* Transitions & Animation Easing */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-app: #f4f6fa;
  --bg-sidebar: #ebf0f7;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #f1f5f9;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-focus: #0284c7;
  --border-accent: rgba(2, 132, 199, 0.3);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-inverse: #ffffff;

  --tg-blue: #0284c7;
  --tg-blue-hover: #0369a1;
  --tg-blue-active: #075985;
  --tg-cyan: #0284c7;
  --tg-blue-glow: rgba(2, 132, 199, 0.2);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.06);
}
