/* ============================================
   ФЕДЕРАЦИЯ БОКСА ПЕРМСКОГО КРАЯ
   Professional Sports Dashboard Design
   Corporate Blue Theme
   ============================================ */

/* Fonts - Inter для кириллицы */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Цветовая палитра - чистый корпоративный стиль */
  --bg-main: #F7FBFF;
  --bg-sidebar: #0D1F44;
  --bg-card: #FFFFFF;
  --bg-hover: #F0F4F8;
  
  /* Акценты */
  --primary-blue: #4A90E2;
  --primary-dark: #0D1F44;
  --secondary-blue: #6BA3E8;
  --accent-gold: #FFB800;
  
  /* Текст */
  --text-primary: #435068;
  --text-secondary: #7A8BA3;
  --text-white: #FFFFFF;
  --text-dark: #0D1F44;
  
  /* Статусы */
  --status-success: #10B981;
  --status-warning: #F59E0B;
  --status-danger: #EF4444;
  --status-info: #4A90E2;
  --status-neutral: #94A3B8;
  
  /* Границы и тени */
  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --shadow-sm: 0px 2px 4px rgba(13, 31, 68, 0.08);
  --shadow-md: 0px 4px 12px rgba(13, 31, 68, 0.1);
  --shadow-lg: 0px 8px 24px rgba(13, 31, 68, 0.12);
  --shadow-xl: 0px 12px 40px rgba(13, 31, 68, 0.15);
  
  /* Шрифты */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Montserrat', 'Inter', sans-serif;
  
  /* Радиусы */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }

/* ============================================
   LAYOUT - SIDEBAR + MAIN CONTENT
   ============================================ */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR - 200px fixed width */
.sidebar {
  width: 200px;
  background: var(--bg-sidebar);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

/* Logo Section */
.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0px 4px 12px rgba(74, 144, 226, 0.4);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.logo-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Navigation Menu */
.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}

.nav-item.active {
  background: rgba(74, 144, 226, 0.15);
  color: var(--text-white);
  font-weight: 600;
}

.nav-item.active::before {
  opacity: 1;
}

.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* User Profile in Sidebar */
.sidebar-profile {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  width: fit-content;
  line-height: 1;
}

.profile-role.admin {
  background: rgba(255, 184, 0, 0.2);
  color: #FFD666;
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.profile-role.employee {
  background: rgba(74, 144, 226, 0.2);
  color: #87CEEB;
  border: 1px solid rgba(74, 144, 226, 0.3);
}

/* Logout Button */
.sidebar-logout {
  padding: 12px 20px;
  margin: 0 12px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: #FCA5A5;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #FEE2E2;
}

/* MAIN CONTENT AREA */
.main-content {
  margin-left: 200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.content-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 32px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Content Body */
.content-body {
  flex: 1;
  padding: 32px;
}

/* ============================================
   КАРТОЧКИ
   ============================================ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.card-body {
  padding: 0;
}

.card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ============================================
   СТАТИСТИЧЕСКИЕ КАРТОЧКИ
   ============================================ */

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-blue);
}

.stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.stat-card.total {
  border-left-color: var(--status-info);
}

.stat-card.progress {
  border-left-color: var(--status-warning);
}

.stat-card.completed {
  border-left-color: var(--status-success);
}

.stat-card.overdue {
  border-left-color: var(--status-danger);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0px 4px 12px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0px 4px 20px rgba(239, 68, 68, 0.4);
  }
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-white);
  margin-bottom: 12px;
}

.stat-card.total .stat-icon {
  background: linear-gradient(135deg, #4A90E2, #6BA3E8);
}

.stat-card.progress .stat-icon {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.stat-card.completed .stat-icon {
  background: linear-gradient(135deg, #10B981, #34D399);
}

.stat-card.overdue .stat-icon {
  background: linear-gradient(135deg, #EF4444, #F87171);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.stat-change.positive {
  color: var(--status-success);
  background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
  color: var(--status-danger);
  background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--text-white);
  box-shadow: 0px 2px 8px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  background: #3A7FD1;
  box-shadow: 0px 4px 12px rgba(74, 144, 226, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: #E2E8F0;
  border-color: var(--primary-blue);
}

.btn-danger {
  background: var(--status-danger);
  color: var(--text-white);
}

.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

.btn-success {
  background: var(--status-success);
  color: var(--text-white);
}

.btn-success:hover {
  background: #059669;
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--text-white);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

/* ============================================
   ФОРМЫ
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
}

.input-icon {
  position: relative;
}

.input-icon input {
  padding-left: 40px;
}

.input-icon .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* ============================================
   BADGES / ЗНАЧКИ
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-primary {
  background: rgba(74, 144, 226, 0.15);
  color: var(--primary-blue);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-danger);
}

.badge-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: var(--status-neutral);
}

/* Приоритеты задач */
.badge-priority {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-priority.critical {
  background: var(--status-danger);
  color: var(--text-white);
}

.badge-priority.important {
  background: var(--status-warning);
  color: var(--text-white);
}

.badge-priority.normal {
  background: var(--status-neutral);
  color: var(--text-white);
}

.badge.overdue {
  background: var(--status-danger);
  color: var(--text-white);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ============================================
   ТАБЛИЦЫ
   ============================================ */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg-hover);
  border-bottom: 2px solid var(--border-medium);
}

th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: var(--bg-hover);
}

/* ============================================
   ПРОГРЕСС-БАРЫ
   ============================================ */

.progress-container {
  margin-bottom: 12px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.progress-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-blue);
}

.progress-bar-wrapper {
  width: 100%;
  height: 10px;
  background: var(--bg-hover);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 20px;
  transition: width 0.6s ease;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 20px 20px 0 0;
}

.progress-bar.success {
  background: linear-gradient(90deg, var(--status-success), #34D399);
}

.progress-bar.warning {
  background: linear-gradient(90deg, var(--status-warning), #FBBF24);
}

.progress-bar.danger {
  background: linear-gradient(90deg, var(--status-danger), #F87171);
}

/* Circular Progress */
.circular-progress {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    var(--primary-blue) 0deg,
    var(--primary-blue) calc(var(--progress, 0) * 3.6deg),
    var(--bg-hover) calc(var(--progress, 0) * 3.6deg)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circular-progress::before {
  content: '';
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  position: absolute;
}

.circular-progress-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  z-index: 1;
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 68, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 68, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--status-danger);
}

.modal-body {
  padding: 28px;
}

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ============================================
   ПОЛЗУНОК (RANGE SLIDER)
   ============================================ */

/* Базовый стиль для input[type="range"] */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

/* Трек (линия) для Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 6px;
}

/* Трек (линия) для Firefox */
input[type="range"]::-moz-range-track {
  height: 12px;
  border-radius: 6px;
  background: transparent;
}

/* Ползунок (thumb) для Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #dc2626;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: -6px;
}

/* Ползунок (thumb) для Firefox */
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #dc2626;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover эффект для ползунка */
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Active состояние */
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}

input[type="range"]:active::-moz-range-thumb {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}

/* ============================================
   УВЕДОМЛЕНИЯ
   ============================================ */

.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  min-width: 320px;
  max-width: 420px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--primary-blue);
  z-index: 2000;
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notification.success {
  border-left-color: var(--status-success);
}

.notification.error {
  border-left-color: var(--status-danger);
}

.notification.warning {
  border-left-color: var(--status-warning);
}

.notification-icon {
  font-size: 20px;
  margin-top: 2px;
}

.notification.success .notification-icon {
  color: var(--status-success);
}

.notification.error .notification-icon {
  color: var(--status-danger);
}

.notification.warning .notification-icon {
  color: var(--status-warning);
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.notification-message {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   АВАТАРЫ
   ============================================ */

.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.avatar-md {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.avatar-xl {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

/* ============================================
   EMPLOYEE CARDS
   ============================================ */

.employee-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.employee-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.employee-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employee-info {
  flex: 1;
  min-width: 0;
}

.employee-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.employee-role {
  font-size: 13px;
  color: var(--text-secondary);
}

.employee-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.employee-stat {
  text-align: center;
}

.employee-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.employee-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   TASK CARDS
   ============================================ */

.task-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-left: 4px solid var(--status-neutral);
  cursor: pointer;
}

.task-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.task-card.priority-critical {
  border-left-color: var(--status-danger);
}

.task-card.priority-important {
  border-left-color: var(--status-warning);
}

.task-card.priority-normal {
  border-left-color: var(--status-neutral);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.task-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.task-description {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ============================================
   FILTERS & SEARCH
   ============================================ */

.filters-bar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box input {
  padding-left: 40px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.filter-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .sidebar {
    width: 180px;
  }
  
  .main-content {
    margin-left: 180px;
  }
  
  .content-header {
    padding: 16px 20px;
  }
  
  .content-body {
    padding: 20px 16px;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    width: 100%;
  }
  
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .notification {
    left: 16px;
    right: 16px;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 60px;
  }
  
  .main-content {
    margin-left: 60px;
  }
  
  .logo-text,
  .logo-subtitle,
  .nav-text,
  .profile-info,
  .sidebar-logout span {
    display: none;
  }
  
  .sidebar-logo {
    padding: 16px 8px;
  }
  
  .nav-item {
    padding: 12px 8px;
    justify-content: center;
  }
  
  .sidebar-profile {
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
  }
  
  .sidebar-logout {
    margin: 0 8px 12px;
    padding: 8px;
  }
}

/* ============================================
   PERSONAL STATS - Task Lists and Activities
   ============================================ */

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-list-item {
  padding: 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.task-list-item:hover {
  background: #E8EDF3;
  transform: translateX(2px);
}

.task-list-item.overdue {
  border-left-color: var(--status-danger);
  background: rgba(239, 68, 68, 0.05);
}

.task-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.task-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
  line-height: 1.4;
}

.task-list-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.task-list-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.task-list-meta i {
  margin-right: 4px;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.activity-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-success);
}

.activity-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--status-warning);
}

.activity-icon.info {
  background: rgba(74, 144, 226, 0.15);
  color: var(--status-info);
}

.activity-icon.neutral {
  background: rgba(148, 163, 184, 0.15);
  color: var(--status-neutral);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.activity-time {
  color: var(--text-secondary);
}

/* Empty State Small */
.empty-state-small {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-state-small i {
  font-size: 32px;
  opacity: 0.5;
}

.empty-state-small span {
  font-size: 14px;
}

/* Utility Classes */
.text-danger {
  color: var(--status-danger);
}

.text-warning {
  color: var(--status-warning);
}

.text-success {
  color: var(--status-success);
}
