/* Questionnaire-specific styles */
.gap-2 {
  gap: 0.5rem;
}

.progress {
  background-color: #e9ecef;
}

html.dark-mode .progress {
  background-color: #3a3a3a;
}

.answer-btn {
  min-width: 120px;
  margin: 0.25rem;
}

.answer-btn.active {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.question-text h5 {
  font-size: 1.25rem;
}

html.dark-mode .question-text h5 {
  color: #e0e0e0;
}

.card {
  transition: all 0.2s ease-in-out;
}

html.dark-mode .card {
  background-color: #2a3d4a;
  border-color: #4a4a4a;
}

html.dark-mode .card-body {
  color: #e0e0e0;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

html.dark-mode .card:hover {
  box-shadow: 0 4px 8px rgba(255,255,255,0.1);
}

.explanations ul {
  margin-bottom: 0;
}

.skip-notice {
  color: inherit;
  opacity: 0.7;
}

html.dark-mode .text-muted {
  color: #a0a0a0 !important;
}

/* Class standings chart - COMMENTED OUT FOR NOW */
/*
.class-standings {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
}

html.dark-mode .class-standings {
  background: rgba(255,255,255,0.05);
}

.class-standings-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  text-align: center;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.chart-container {
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  min-height: 250px;
}

html.dark-mode .chart-container {
  background: rgba(255,255,255,0.03);
}

.chart-container h6 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
  text-align: center;
}

.chart-wrapper {
  position: relative;
  height: 220px;
}
*/

.chart-wrapper.tall {
  height: 280px;
}

/* Live scoring visualization */
.live-scores {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(0,0,0,0.02);
  border-radius: 8px;
}

html.dark-mode .live-scores {
  background: rgba(255,255,255,0.05);
}

.live-scores-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.score-bars-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 400px;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem;
}

html.dark-mode .score-bars-container {
  border-color: rgba(255,255,255,0.1);
}

.score-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-bar-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-class-name {
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0.7;
  min-width: fit-content;
}

.score-bars-container::-webkit-scrollbar {
  width: 6px;
}

.score-bars-container::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
}

.score-bars-container::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

html.dark-mode .score-bars-container::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

html.dark-mode .score-bars-container::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
}

.score-bar {
  height: 4px;
  border-radius: 2px;
  transition: all 0.5s ease;
  position: relative;
  min-width: 2px;
}

.score-bar:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  margin-left: 8px;
  z-index: 10;
}

html.dark-mode .score-bar:hover::after {
  background: rgba(255,255,255,0.9);
  color: #000;
}



@media (max-width: 768px) {
  .answer-btn {
    min-width: 100px;
    margin-bottom: 0.5rem;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-buttons > div {
    text-align: center;
  }
}
