/**
 * Design System - CSS Variables
 * Author: datvd
 * Created: 2026-01-23
 * Description: Định nghĩa các design tokens cho toàn bộ ứng dụng
 */

:root {
  /* ==================== Colors ==================== */

  /* Primary Colors */
  --primary: #FF6B35;
  --primary-light: #FF8A5C;
  --primary-dark: #E55A2B;
  --primary-rgb: 255, 107, 53;

  /* Background Colors */
  --bg-dark: #0D0D0D;
  --bg-darker: #000000;
  --bg-card: #1A1A1A;
  --bg-surface: #242424;
  --bg-elevated: #2D2D2D;
  --bg-hover: #333333;

  /* Text Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-tertiary: #6B6B6B;
  --text-muted: #4A4A4A;

  /* Status Colors */
  --success: #4CAF50;
  --success-light: #81C784;
  --success-dark: #388E3C;

  --warning: #FFC107;
  --warning-light: #FFD54F;
  --warning-dark: #FFA000;

  --error: #F44336;
  --error-light: #E57373;
  --error-dark: #D32F2F;

  --info: #2196F3;
  --info-light: #64B5F6;
  --info-dark: #1976D2;

  /* Muscle Group Colors */
  --muscle-chest: #E91E63;
  --muscle-back: #9C27B0;
  --muscle-shoulders: #3F51B5;
  --muscle-biceps: #00BCD4;
  --muscle-triceps: #009688;
  --muscle-legs: #8BC34A;
  --muscle-core: #FF9800;

  /* Difficulty Colors */
  --difficulty-beginner: #4CAF50;
  --difficulty-intermediate: #FFC107;
  --difficulty-advanced: #F44336;

  /* ==================== Typography ==================== */

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  /* Font Sizes - Mobile First */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ==================== Spacing ==================== */

  --space-0: 0;
  --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 */

  /* ==================== Borders ==================== */

  --border-width: 1px;
  --border-color: #333333;
  --border-color-light: #444444;

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.25rem;
  /* 4px */
  --radius-md: 0.5rem;
  /* 8px */
  --radius-lg: 0.75rem;
  /* 12px */
  --radius-xl: 1rem;
  /* 16px */
  --radius-2xl: 1.5rem;
  /* 24px */
  --radius-full: 9999px;

  /* ==================== Shadows ==================== */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(var(--primary-rgb), 0.3);

  /* ==================== Transitions ==================== */

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ==================== Z-Index ==================== */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* ==================== Layout ==================== */

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  --header-height: 64px;
  --nav-height: 70px;
  --sidebar-width: 280px;

  /* ==================== Breakpoints (for reference) ==================== */
  /* 
   * Mobile: 0 - 767px
   * Tablet: 768px - 991px
   * Laptop: 992px - 1199px
   * Desktop: 1200px+
   */
}

/* ==================== Dark/Light Mode Support ==================== */

[data-theme="light"] {
  --bg-dark: #F5F5F5;
  --bg-darker: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-surface: #FAFAFA;
  --bg-elevated: #FFFFFF;
  --bg-hover: #EEEEEE;

  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --text-muted: #CCCCCC;

  --border-color: #E0E0E0;
  --border-color-light: #EEEEEE;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}