/* Jornada do aluno (2026-11-23): progresso na trilha, prova com menos distração e correção didática.
   Carregado depois de style.css, student-study.css e student-home.css. */

/* Progresso dos desafios na trilha */
.quiz-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 14px; margin: 6px 0 14px; }
.quiz-progress-label { font-weight: 700; color: #16304f; }
.quiz-progress-count { justify-self: end; font-size: 14px; color: #4b5d73; }
.quiz-progress-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #e3eaf3; overflow: hidden; }
.quiz-progress-fill { display: block; height: 100%; border-radius: inherit; background: #1d7a4e; transition: width .3s ease; }
html[data-theme="dark"] .quiz-progress-label { color: #e4edf9; }
html[data-theme="dark"] .quiz-progress-count { color: #b7c7de; }
html[data-theme="dark"] .quiz-progress-bar { background: #24364f; }
html[data-theme="dark"] .quiz-progress-fill { background: #5cc497; }

/* Prova: "Eliminar" deixa de parecer botão de perigo; continua visível e com 44 px de altura */
.eliminate-choice { min-height: 44px; border: 1px solid #c9d4e2; background: transparent; color: #4b5d73; font-weight: 600; }
.eliminate-choice:hover { background: #f1f5fa; color: #16304f; border-color: #9fb3cb; }
.choice-option-row.eliminated .eliminate-choice { border-color: #16304f; color: #16304f; }
html[data-theme="dark"] .eliminate-choice { border-color: #3a4d68; color: #b7c7de; background: transparent; }
html[data-theme="dark"] .eliminate-choice:hover { background: #1c2c42; color: #e4edf9; }
.choice-option-row.eliminated .choice { opacity: .55; text-decoration: line-through; }
.exam-shortcuts { margin: 10px 0 0; font-size: 13px; color: #4b5d73; }
html[data-theme="dark"] .exam-shortcuts { color: #b7c7de; }
.question-prompt { font-size: 1.08rem; line-height: 1.65; max-width: 75ch; }
@media (hover: none) { .exam-shortcuts { display: none; } }

/* Prova no celular: cabeçalho compacto para a questão aparecer logo */
@media (max-width: 680px) {
  .exam-head { gap: 10px; margin-bottom: 14px; }
  .exam-head h1 { font-size: 1.3rem; }
  .exam-head #studentEmailLabel { display: none; }
  .exam-timers { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .exam-timers .timer { order: -1; }
  .exam-layout { gap: 14px; }
}
/* Em tela estreita a questão vem antes do painel de progresso (o aluno lê primeiro o que precisa responder). */
@media (max-width: 980px) { .exam-layout > .question-card { order: -1; } }

/* Correção: resumo visual antes do gabarito */
.result-summary { margin: 8px 0 22px; padding: 20px 22px; border-radius: 14px; border: 1px solid #d6e0ec; background: #f7fafd; text-align: left; }
.result-summary.is-good { border-color: #9fd6b8; background: #f0faf4; }
.result-summary.is-mid { border-color: #ecd28f; background: #fffaeb; }
.result-summary.is-low { border-color: #f0b8b8; background: #fff5f5; }
.result-band { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; color: #16304f; }
.result-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.result-stat { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid #e1e8f1; }
.result-stat strong { font-size: 1.7rem; line-height: 1; }
.result-stat span { color: #4b5d73; }
.result-stat.is-correct strong { color: #15803d; }
.result-stat.is-wrong strong { color: #b42318; }
.result-stat.is-blank strong { color: #6b7a8c; }
.result-bar { display: flex; height: 10px; margin: 14px 0 4px; border-radius: 99px; overflow: hidden; background: #e3eaf3; }
.result-bar .is-correct { background: #1d9a5b; }
.result-bar .is-wrong { background: #d0473d; }
.result-bar .is-blank { background: #a3b0bf; }
.result-study { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e1e8f1; }
.result-study h3 { margin: 0 0 8px; font-size: 1rem; }
.result-study ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
html[data-theme="dark"] .result-summary { background: #142033; border-color: #2f4561; }
html[data-theme="dark"] .result-summary.is-good { background: #12291f; border-color: #2f6b4c; }
html[data-theme="dark"] .result-summary.is-mid { background: #2a2412; border-color: #6b5a24; }
html[data-theme="dark"] .result-summary.is-low { background: #2c1717; border-color: #6b3030; }
html[data-theme="dark"] .result-band { color: #e4edf9; }
html[data-theme="dark"] .result-stat { background: #17263b; border-color: #2f4561; }
html[data-theme="dark"] .result-stat span { color: #b7c7de; }
html[data-theme="dark"] .result-stat.is-correct strong { color: #6fd39b; }
html[data-theme="dark"] .result-stat.is-wrong strong { color: #ff8f86; }
html[data-theme="dark"] .result-study { border-color: #2f4561; }
.review-next-wrong[hidden] { display: none; }
@media (max-width: 520px) { .result-stats { grid-template-columns: 1fr; } }

/* Botão flutuante "Voltar ao painel" não cobre o gabarito */
#completed { padding-bottom: 88px; }
@media (min-width: 900px) { #studentBackFab { left: auto; right: 24px; } }

@media (prefers-reduced-motion: reduce) { .quiz-progress-fill { transition: none; } }
