/* ===========================================================
   QUIZ.CSS - AWS Developer Course Schedule

   Estilos específicos para o sistema de quiz
   @author Tomas Alric - Cloud Basics
   @version 2.0
   =========================================================== */

.quiz-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #020617, #020617);
  padding: 32px 16px;
  color: var(--text-main);
}

.quiz-card {
  max-width: 860px;
  margin: 40px auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

/* ===========================================================
   QUIZ TOP BAR
   =========================================================== */

.quiz-topbar {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.quiz-progress-text {
  font-size: 14px;
  color: var(--text-muted);
}

.quiz-progress-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.quiz-exit {
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-size: 14px;
}

/* ===========================================================
   QUIZ QUESTION
   =========================================================== */

.quiz-question {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  margin: 24px 0;
}

/* ===========================================================
   QUIZ OPTIONS
   =========================================================== */

.quiz-options {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quiz-options li {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}

.quiz-options li:hover {
  background: rgba(13, 148, 136, 0.08);
  border-color: var(--primary);
}

.quiz-options li::before {
  content: "○";
  font-size: 18px;
  color: var(--text-muted);
}

.quiz-options li.correct {
  background: rgba(22, 163, 74, 0.15);
  border-color: #16a34a;
}

.quiz-options li.correct::before {
  content: "✔";
  color: #16a34a;
}

.quiz-options li.wrong {
  background: rgba(220, 38, 38, 0.15);
  border-color: #dc2626;
}

.quiz-options li.wrong::before {
  content: "✖";
  color: #dc2626;
}

.quiz-options li.disabled {
  pointer-events: none;
  opacity: 0.7;
}

/* ===========================================================
   QUIZ FEEDBACK & NEXT BUTTON
   =========================================================== */

.quiz-feedback {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.quiz-next {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.quiz-next:hover {
  background: var(--primary-dark);
}

/* ===========================================================
   QUIZ RESULT
   =========================================================== */

.quiz-result {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 32px;
  color: var(--text-main);
}

.quiz-result-icon {
  width: 110px;
  height: 110px;
}

.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.quiz-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  object-fit: contain;
  opacity: 0.85;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.quiz-btn:hover .quiz-icon {
  transform: scale(1.05);
  opacity: 1;
}

/* ===========================================================
   QUIZ/LAB ACTIONS (CRONOGRAMA)
   =========================================================== */

.action-cell {
  width: 48px;
  text-align: center;
  vertical-align: middle;
}
