/* ===== ИНТЕРАКТИВНЫЙ ГРАФИК - МИНИМАЛИЗМ ПО ЗАКАЗЧИКУ! ===== 📊💎 */

.interactive-chart-container {
  max-width: 100%;
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 1px solid #dee2e6;
}

/* ЗАГОЛОВОК ГРАФИКА */
.chart-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.chart-header h3 {
  margin: 0 0 10px 0;
  color: #495057;
  font-size: 24px;
  font-weight: 700;
}

.chart-subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  font-style: italic;
}

/* ЧЕКБОКСЫ ПАРАМЕТРОВ - МИНИМАЛИСТИЧНО! */
.chart-controls {
  margin-bottom: 25px;
  padding: 20px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.chart-controls h4 {
  margin: 0 0 15px 0;
  color: #495057;
  font-size: 16px;
  font-weight: 600;
}

.checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.parameter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.parameter-checkbox:hover {
  background: rgba(102, 126, 234, 0.05);
  border-color: rgba(102, 126, 234, 0.2);
}

.parameter-checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.parameter-checkbox input:checked + .checkbox-custom {
  background: currentColor;
  border-color: currentColor;
}

.parameter-checkbox input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  flex: 1;
}

.color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* КОНТЕНТ ГРАФИКА */
.chart-content {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 25px;
  align-items: start;
}

.chart-svg-container {
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
  overflow-x: auto;
}

.chart-svg {
  max-width: 100%;
  height: auto;
}

/* ЛЕГЕНДА - АСКЕТИЧНО! */
.chart-legend {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
  height: fit-content;
}

.chart-legend h4 {
  margin: 0 0 15px 0;
  color: #495057;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.legend-teams {
  margin-bottom: 20px;
}

.legend-parameters {
  /* Стили для параметров */
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #495057;
}

.legend-line {
  display: block;
  width: 25px;
  height: 1px;
  flex-shrink: 0;
}

.legend-color {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* TOOLTIP */
.chart-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
  .interactive-chart-container {
    padding: 15px;
  }
  
  .checkboxes-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .chart-legend {
    order: -1; /* Легенда сверху на мобильных */
  }
  
  .parameter-checkbox {
    padding: 12px;
  }
  
  .checkbox-label {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .chart-header h3 {
    font-size: 20px;
  }
  
  .chart-subtitle {
    font-size: 12px;
  }
  
  .chart-svg-container {
    padding: 10px;
  }
  
  .chart-legend {
    padding: 15px;
  }
}

/* АНИМАЦИИ - ДЕЛИКАТНЫЕ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.interactive-chart-container {
  animation: fadeIn 0.6s ease-out;
}

.parameter-checkbox {
  animation: fadeIn 0.4s ease-out;
  animation-fill-mode: both;
}

.parameter-checkbox:nth-child(1) { animation-delay: 0.1s; }
.parameter-checkbox:nth-child(2) { animation-delay: 0.2s; }
.parameter-checkbox:nth-child(3) { animation-delay: 0.3s; }
.parameter-checkbox:nth-child(4) { animation-delay: 0.4s; }
.parameter-checkbox:nth-child(5) { animation-delay: 0.5s; }

/* ЦВЕТОВАЯ СХЕМА ДЛЯ ЧЕКБОКСОВ */
.parameter-checkbox[data-param="goals_for"] { color: #2196F3; }
.parameter-checkbox[data-param="goals_against"] { color: #F44336; }
.parameter-checkbox[data-param="ball_possession"] { color: #4CAF50; }
.parameter-checkbox[data-param="total_shots"] { color: #FF9800; }
.parameter-checkbox[data-param="shots_on_goal"] { color: #9C27B0; }
.parameter-checkbox[data-param="corner_kicks"] { color: #607D8B; }
.parameter-checkbox[data-param="yellow_cards"] { color: #FFEB3B; }
.parameter-checkbox[data-param="fouls"] { color: #795548; }
.parameter-checkbox[data-param="offsides"] { color: #E91E63; }
.parameter-checkbox[data-param="shots_off_goal"] { color: #3F51B5; } 