/* Quiz tab layout on scan export page */
.quiz-tabs {
  margin-top: 1rem;
}

.quiz-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.quiz-tab-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
  margin-bottom: -1px;
}

.quiz-tab-btn:hover {
  opacity: 0.85;
}

.quiz-tab-btn.active {
  border-bottom-color: currentColor;
  font-weight: 600;
}

.quiz-tab-panel {
  display: none;
}

.quiz-tab-panel.active {
  display: block;
}

/* Locked state: tabs disabled once user has started a quiz (until that quiz is submitted) */
.quiz-tabs-locked .quiz-tab-list {
  pointer-events: none;
  user-select: none;
}

.quiz-tabs-locked .quiz-tab-btn {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
}
