/* ✅ Very positive: Safe teams (1–18) */
.row-stays {
  border-left: 8px solid #28a745; /* stronger green border */
  background-color: rgba(40, 167, 69, 0.1) !important; /* very light green background */
  color: #155724; /* darker green text */
  font-weight: 700;
  padding-left: 12px; /* add padding so text doesn’t stick to border */
}

/* ⚠️ Slightly positive: Wildcard for one-day races or no guaranteed races (21+) */
.row-one-day {
  border-left: 8px solid #fd7e14; /* Bootstrap orange */
  background-color: rgba(253, 126, 20, 0.15) !important; /* light orange tint */
  color: #b35200; /* darker orange text */
  font-style: italic;
  font-weight: 600;
  padding-left: 12px;
}

/* ❌ Negative: Non-WorldTour (relegation happened) */
.row-non-worldtour {
  border-left: 8px solid #dc3545; /* stronger red border */
  background-color: rgba(220, 53, 69, 0.1) !important; /* very light red background */
  color: #721c24; /* dark red text */
  font-style: italic;
  font-weight: 700;
  padding-left: 12px;
}

/* ✅ Wildcard for all World Tour races (19–20) - still subtle neutral */
.row-wildcard {
  border-left: 8px solid #ffc107; /* same as one-day */
  background-color: rgba(255, 193, 7, 0.1) !important;
  color: #856404;
  font-style: italic;
  font-weight: 600;
  padding-left: 12px;
}

.color-legend {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.color-legend div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border-left-width: 8px;
  border-style: solid;
  background-color: transparent;
}

/* Match the subtle colors from your rows */
.legend-box.stays {
  border-color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

.legend-box.wildcard {
  border-color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.legend-box.one-day {
  border-color: #fd7e14;
  background-color: rgba(253, 126, 20, 0.15);
}

.legend-box.non-worldtour {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}