/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  color: #2c3e50;
  padding: 10px 0;
  border-bottom: 2px solid #3498db;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.athlete-selector {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.dropdown-group label {
  font-weight: bold;
  color: #2c3e50;
  min-width: 40px;
}

.dropdown-group select {
  padding: 8px 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  min-width: 150px;
}

.dropdown-group select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.dropdown-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.class-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.class-filter > label {
  font-weight: bold;
  color: #2c3e50;
  min-width: 30px;
}

.class-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  font-weight: bold;
  color: #2c3e50;
  user-select: none;
  font-size: 0.9rem;
}

.checkbox-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #3498db;
}

.nav-button {
  padding: 8px 15px;
  font-size: 1rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-button:hover {
  background-color: #2980b9;
}

.nav-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.athlete-info {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.athlete-info h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.athlete-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.view-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.view-button {
  padding: 8px 15px;
  font-size: 1rem;
  background-color: #ecf0f1;
  color: #2c3e50;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.view-button.active {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
}

.view-button:hover:not(.active) {
  background-color: #dfe4ea;
}

.chart-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  height: 500px;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #ecf0f1;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #7f8c8d;
}

#status-message {
  font-weight: bold;
}

#file-path {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .controls {
    flex-direction: column;
    gap: 15px;
  }

  .athlete-selector {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .dropdown-group {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-group select {
    min-width: 200px;
    flex: 1;
  }

  .nav-button {
    width: 100%;
  }

  .class-filter {
    width: 100%;
    justify-content: center;
  }

  .class-checkboxes {
    justify-content: center;
    gap: 6px;
  }

  .checkbox-item {
    min-width: 40px;
    font-size: 0.8rem;
  }
}
