/* --- Setup Year Button Group Styles --- */
.setup-year-group {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  justify-content: center;
}

.setup-year-btn {
  background: #fff;
  color: #e10600;
  border: 2px solid #e10600;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 4px rgba(225, 6, 0, 0.08);
  outline: none;
}

.setup-year-btn.selected {
  background: #e10600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(225, 6, 0, 0.18);
  border: 2px solid #e10600;
}

.setup-year-btn:hover:not(.selected) {
  background: #ffeaea;
  color: #e10600;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f0f0f0;
  padding: 12px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 16px;
  color: #e10600;
}

.search-container {
  position: relative;
  margin-bottom: 16px;
}

#trackSearch {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  z-index: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-content.show {
  display: block;
}

.dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
}

.dropdown-item:hover:not(.keyboard-navigation) {
  background-color: rgb(92, 181, 248);
}

.dropdown-item.selected {
  background-color: rgb(92, 181, 248);
  color: #333;
}

.setup-details {
  background-color: #fff;
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

.track-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e10600;
}

.track-header h2 {
  font-size: 22px;
  margin-bottom: 4px;
  color: #e10600;
}

.alt-names {
  font-style: italic;
  color: #666;
  margin-bottom: 4px;
  font-size: 13px;
}

.track-notes {
  background-color: #fffde7;
  padding: 6px;
  border-radius: 4px;
  margin-top: 6px;
  font-style: italic;
  color: #555;
  font-size: 13px;
}

#strategyNotes {
  padding: 6px;
  border-radius: 4px;
  font-size: 13px;
}

.race-info {
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.laps-badge {
  padding: 3px 10px;
  border-radius: 20px;
  border: 2px solid #333;
  font-weight: bold;
  font-size: 13px;
}

.compounds-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 13px;
  border: 2px solid #333;
}

.compounds-badge.hard {
  background-color: gainsboro;
  color: black;
}

.compounds-badge.medium {
  background-color: hsl(45, 100%, 50%);
  color: black;
}

.compounds-badge.soft {
  background-color: #e10600;
  color: white;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-bottom: 2px solid #e10600;
}

@media (max-width: 480px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

.setup-section {
  background-color: #fff;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.setup-section h3 {
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

.setup-item {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.setup-label {
  font-weight: bold;
  flex: 1;
  min-width: 110px;
  font-size: 13px;
}

.setup-value {
  flex: 1;
  font-size: 14px;
}
#aeroFront.setup-value {
  display: flex;
  flex-direction: row;
}

#aeroRear.setup-value {
  display: flex;
  flex-direction: row;
}

#diffOffThrottle.setup-value {
  display: flex;
  flex-direction: row;
}

.setup-race-value {
  flex-basis: 100%;
  color: #1565c0;
  font-size: 12px;
  margin-left: 110px;
}

.strategy-section {
  margin-top: 12px;
  border-bottom: 2px solid #e10600;
}

.strategy-section h3 {
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
}

.strategy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

#strategyNotesTitle {
  margin-top: 20px;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.strategy-item {
  background-color: #fff;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 100px;
  text-align: center;
}

.compound {
  font-weight: bold;
  margin-bottom: 2px;
  color: #e10600;
  font-size: 14px;
}

.pitstop {
  font-size: 12px;
}

.inline-race-value {
  color: #1565c0;
  font-size: 12px;
  margin-left: 6px;
}

.dropdown-alt-names {
  font-style: italic;
  color: #666;
  font-size: 13px;
}

.clear-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

.track-flag {
  display: inline-block;
  margin-right: 8px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.track-flag-large {
  margin-top: 0;
  padding-top: 0;
  font-size: 48px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  margin-right: 20px;
}

#trackNameContainer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding-right: 30px;
  /* Make room for the arrow */
}

.dropdown-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding-left: 12px;
  padding-right: 12px;
}

/* Optional: style the arrow when dropdown is open */
.dropdown-arrow.active {
  transform: translateY(-50%) rotate(180deg);
}

#engineBraking {
  display: inline;
}
