/* Coaching System Styles */

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

.breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Race List */
.race-list {
  list-style: none;
  padding: 0;
}

.race-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  padding: 1rem;
  transition: background-color 0.2s;
}

.race-item:hover {
  background-color: #f5f5f5;
}

.race-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.race-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.race-item .location {
  color: #666;
  font-size: 0.9rem;
}

/* Vehicle Selector */
.vehicle-selector {
  margin: 2rem 0;
}

.vehicle-selector select {
  padding: 0.5rem;
  font-size: 1rem;
  margin-left: 0.5rem;
}

/* Insights */
.insights {
  margin-top: 2rem;
}

.severity-group {
  margin-bottom: 2rem;
}

.severity-high {
  color: #c00;
}

.severity-medium {
  color: #f80;
}

.severity-low {
  color: #080;
}

.insight-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
}

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.insight-header h5 {
  margin: 0;
  font-size: 1.1rem;
}

.delta {
  font-family: monospace;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
}

.delta-positive {
  background-color: #fee;
  color: #c00;
}

.delta-negative {
  background-color: #efe;
  color: #080;
}

.delta-neutral {
  background-color: #f5f5f5;
  color: #666;
}

.insight-description {
  color: #333;
  margin: 0.5rem 0;
}

.insight-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.insight-actions {
  margin-top: 1rem;
}

.view-details-btn {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.view-details-btn:hover {
  text-decoration: underline;
}

.insight-detail {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.metadata-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.metadata-row .key {
  color: #666;
}

.metadata-row .value {
  font-family: monospace;
}

.no-insights, .no-data {
  padding: 2rem;
  background-color: #ffd;
  border: 1px solid #dd9;
  border-radius: 4px;
  text-align: center;
}

pre {
  background-color: #333;
  color: #fff;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

code {
  font-family: 'Courier New', monospace;
}
