/* Enhanced Action Panel Styling */

/* Main container styling */
.clt_Race_action-panel-container {
    background-color: #f5f7fa;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header styling */
.clt_Race_action-panel-header {
    background-color: #2c5f8d;
    color: white;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Search box styling */
.clt_Race_action-panel-search {
    background-color: white;
    padding: 12px 16px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    margin: 16px 0;
}

.clt_Race_action-panel-search input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

/* Section headers (Add Athlete, Add Entry, etc.) */
.clt_Race_action-panel-section-header {
    background-color: #4a90e2;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    margin: 12px 0 8px 0;
    display: flex;
    align-items: center;
}

.clt_Race_action-panel-section-header::before {
    content: "➕";
    margin-right: 8px;
    font-size: 14px;
}

/* Individual option items with white background */
.clt_Race_action-panel-item {
    background-color: white;
    padding: 14px 16px;
    margin: 6px 0;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clt_Race_action-panel-item:hover {
    background-color: #f8f9fa;
    border-color: #4a90e2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Left side content (main info) */
.clt_Race_action-panel-item-main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.clt_Race_action-panel-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #24292e;
    margin-bottom: 4px;
}

.clt_Race_action-panel-item-details {
    font-size: 13px;
    color: #586069;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.clt_Race_action-panel-item-detail {
    display: flex;
    align-items: center;
}

.clt_Race_action-panel-item-detail::before {
    content: "•";
    margin-right: 6px;
    color: #4a90e2;
}

/* Right side badges/tags */
.clt_Race_action-panel-item-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.clt_Race_action-panel-badge {
    background-color: #e8f4f8;
    color: #2c5f8d;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.clt_Race_action-panel-badge.clt_Race_novice {
    background-color: #fff3cd;
    color: #856404;
}

.clt_Race_action-panel-badge.clt_Race_under-15 {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Settings icon */
.clt_Race_action-panel-settings-icon {
    color: #959da5;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.clt_Race_action-panel-settings-icon:hover {
    color: #4a90e2;
}

/* Nested/indented items */
.clt_Race_action-panel-item.clt_Race_nested {
    margin-left: 24px;
    background-color: #fafbfc;
}

.clt_Race_action-panel-item.clt_Race_nested:hover {
    background-color: white;
}

/* Race/Event specific styling */
.clt_Race_race-info-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clt_Race_race-title {
    font-size: 15px;
    font-weight: 600;
    color: #24292e;
}

.clt_Race_race-details {
    font-size: 13px;
    color: #586069;
}

.clt_Race_race-status {
    font-size: 12px;
    color: #dc3545;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .clt_Race_action-panel-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .clt_Race_action-panel-item-badges {
        margin-top: 8px;
        width: 100%;
        justify-content: flex-start;
    }
}
  

    /* Race Card Base */
    .clt_Spectator_race-card {
      position: relative;
      padding: 10px;
      padding-top: 35px; /* Make room for badge */
      margin: 5px 0;
      border-radius: 8px;
      border: 2px solid #ddd;
      background: white;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* Must Watch - Red/Important */
    .clt_Spectator_race-card.must-watch {
      border-color: #dc3545;
      background: #fff5f5;
    }

    .clt_Spectator_race-card.must-watch::before {
      content: "⭐ MUST WATCH";
      position: absolute;
      top: 8px;
      left: 15px;
      background: #dc3545;
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: bold;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    /* Would Like to Watch - Blue/Secondary */
    .clt_Spectator_race-card.would-like {
      border-color: #007bff;
      background: #f0f8ff;
    }

    .clt_Spectator_race-card.would-like::before {
      content: "👁️ WATCH";
      position: absolute;
      top: 8px;
      left: 15px;
      background: #007bff;
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: bold;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    /* Race Finished - Grayed out with badge instead of overlay */
    .clt_Spectator_race-card.finished {
      background: #f5f5f5;
      border-color: #28a745;
      border-left-width: 5px;
    }

    .clt_Spectator_race-card.finished::after {
      content: "✓ FINISHED";
      position: absolute;
      top: 8px;
      right: 15px;
      background: #28a745;
      color: white;
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: bold;
      letter-spacing: 0.5px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    /* Combination: Finished + Must Watch/Would Like */
    .clt_Spectator_race-card.finished.must-watch::before {
      background: #999;
      text-decoration: line-through;
    }

    .clt_Spectator_race-card.finished.would-like::before {
      background: #999;
      text-decoration: line-through;
    }

    /* Race Details */
    .clt_Spectator_race-title {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 8px;
      color: #333;
    }

    .clt_Spectator_race-event-code {
      font-size: 14px;
      color: #666;
      margin-bottom: 10px;
    }

    .clt_Spectator_race-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }

    .clt_Spectator_race-heat {
      font-size: 14px;
      color: #333;
      font-weight: 500;
    }

    .clt_Spectator_race-time {
      font-size: 14px;
      color: #666;
      font-style: italic;
    }

    .clt_Spectator_race-time.finished {
      color: #999;
      text-decoration: line-through;
    }

    .clt_Spectator_race-result {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid #ddd;
      font-size: 14px;
      color: #28a745;
      font-weight: bold;
    }

    /* Coach Section Styling */
.clt_Coach_coach-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #e0e0e0;
}

/* Timing Row */
.clt_Coach_timing-row {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.clt_Coach_timing-item {
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px;
  flex: 1;
  border-left: 3px solid #007bff;
}

.clt_Coach_timing-label {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.clt_Coach_timing-value {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* Boat Info */
.clt_Coach_boat-info {
  background: #fff3cd;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border-left: 3px solid #ffc107;
  font-size: 14px;
}

/* Crew List */
.clt_Coach_crew-list {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  border-left: 3px solid #28a745;
}

.clt_Coach_crew-header {
  font-size: 12px;
  font-weight: bold;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.clt_Coach_crew-member {
  padding: 6px 8px;
  margin-bottom: 4px;
  background: white;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
}

.clt_Coach_crew-member:last-child {
  margin-bottom: 0;
}

.clt_Coach_crew-member.cox {
  background: #d1ecf1;
  border-left: 3px solid #17a2b8;
  font-weight: 600;
}

.clt_Spectator_athletes-list {
  margin-top: 15px;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
}

.clt_Spectator_athlete-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.clt_Spectator_athlete-row:last-child {
  border-bottom: none;
}

.clt_Spectator_athlete-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  flex: 1;
}

.clt_Spectator_athlete-interest {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
  text-align: right;
}

.clt_Spectator_athlete-interest.must-watch {
  background: #dc3545;
  color: white;
}

.clt_Spectator_athlete-interest.would-like {
  background: #007bff;
  color: white;
}

.clt_Spectator_race-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.clt_Spectator_race-time {
  font-size: 16px;
  color: #666;
  font-style: italic;
  font-weight: bold;
  margin-left: auto; /* Push time to the right */
}

/* Athletes List */
.clt_Spectator_athletes-list {
  margin-top: 15px;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
}

.clt_Spectator_athlete-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 15px;
}

.clt_Spectator_athlete-row:last-child {
  border-bottom: none;
}

.clt_Spectator_athlete-name {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  flex: 1;
  text-align: left; /* Explicitly left-align */
}

.clt_Spectator_athlete-interest {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 12px;
  font-weight: bold;
  white-space: nowrap; /* Prevent wrapping */
  flex-shrink: 0; /* Prevent badge from shrinking */
}

.clt_Spectator_athlete-interest.must-watch {
  background: #dc3545;
  color: white;
}

.clt_Spectator_athlete-interest.would-like {
  background: #007bff;
  color: white;
}

.clt_Spectator_athlete-interest.interested {
  background: #007bff;
  color: white;
}