/* ====================================
   CSS ПЕРЕМЕННЫЕ ДЛЯ ТЕМ
   MLM CRM v2.0
   ==================================== */

:root {
  /* === СВЕТЛАЯ ТЕМА (по умолчанию) === */
  
  /* Фоны */
  --bg-app: #f5f5f7;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-hover: #f0f0f0;
  --bg-active: #e8e8e8;
  
  /* Текст */
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #a1a1a6;
  --text-inverse: #ffffff;
  
  /* Границы */
  --border: rgba(0, 0, 0, 0.1);
  --border-light: rgba(0, 0, 0, 0.05);
  --border-focus: rgba(0, 0, 0, 0.2);
  
  /* Цвета акцентов */
  --accent: #007aff;
  --accent-hover: #0056b3;
  --accent-light: rgba(0, 122, 255, 0.1);
  
  /* Статусы */
  --danger: #ff3b30;
  --danger-hover: #d32f2f;
  --success: #34c759;
  --success-hover: #2da44e;
  --warning: #ff9500;
  --info: #5ac8fa;
  
  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
  
  /* Радиусы */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Шрифты */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-base: 15px;
  --font-size-lg: 17px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  
  /* Отступы */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  
  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
  --z-notification: 500;
  
  /* Переходы */
  --transition-fast: 0.15s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* === ТЁМНАЯ ТЕМА === */
[data-theme="dark"] {
  /* Фоны */
  --bg-app: #0d1117;
  --bg-card: #161b22;
  --bg-input: #0d1117;
  --bg-hover: #1c2128;
  --bg-active: #21262d;
  
  /* Текст */
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --text-inverse: #0d1117;
  
  /* Границы */
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(255, 255, 255, 0.3);
  
  /* Цвета акцентов */
  --accent: #2f81f7;
  --accent-hover: #58a6ff;
  --accent-light: rgba(47, 129, 247, 0.15);
  
  /* Статусы */
  --danger: #f85149;
  --danger-hover: #ff6b6b;
  --success: #3fb950;
  --success-hover: #4ac26b;
  --warning: #d29922;
  --info: #38bdf8;
  
  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.7);
}

/* === ЦВЕТА ДЛЯ СТАТУСОВ КЛИЕНТОВ === */
.status-кл { --status-color: #34c759; }
.status-пк { --status-color: #ff9500; }
.status-нп { --status-color: #5ac8fa; }
.status-св { --status-color: #8e8e93; }

/* === ЦВЕТА ДЛЯ СИСТЕМ ОБСЛУЖИВАНИЯ === */
.system-дк { --system-color: #007aff; }
.system-мс { --system-color: #ff3b30; }
.system-гп { --system-color: #34c759; }

/* === ЦВЕТА ДЛЯ ПРИОРИТЕТОВ === */
.priority-high { --priority-color: #ff3b30; }
.priority-medium { --priority-color: #ff9500; }
.priority-low { --priority-color: #34c759; }

/* === ЦВЕТА ДЛЯ ТЕГОВ === */
.tag-vip { --tag-color: #ffd700; }
.tag-new { --tag-color: #34c759; }
.tag-hot { --tag-color: #ff3b30; }
.tag-cold { --tag-color: #5ac8fa; }
