/* ============================================
   ELEVA AMAPÁ — raciocinio-simulado-categoria.css
   Estilos exclusivos da página de simulado por categoria de
   Raciocínio Lógico. Reaproveita dashboard.css (sidebar/header/
   fade-in/loading-spinner) e global-assuntos.css (badges de nível,
   box-dica) — aqui ficam só as classes específicas do fluxo de quiz.
   ============================================ */

/* ---------------------------------------------------------------------
   BADGES DE NÍVEL (mesmo padrão do global-assuntos.css, reaproveitado
   aqui pra não depender de importar o arquivo inteiro só por isso)
--------------------------------------------------------------------- */
.assunto-badge-nivel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}
.badge-essencial {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-importante {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.badge-muito-importante {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.assunto-breadcrumb {
  font-size: 0.8rem;
  color: #71717a;
}
.assunto-breadcrumb a {
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s ease;
}
.assunto-breadcrumb a:hover {
  color: #f59e0b;
}

/* ---------------------------------------------------------------------
   TELA DE INTRODUÇÃO
--------------------------------------------------------------------- */
.stat-card {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1rem 0.5rem;
  text-align: center;
}
.stat-numero {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #71717a;
  margin-top: 0.3rem;
}

.box-dica-simulado {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 0.75rem;
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: #d4d4d8;
  text-align: center;
}

/* ---------------------------------------------------------------------
   BOTÕES
--------------------------------------------------------------------- */
.btn-primario {
  background: #f59e0b;
  color: #09090b;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.btn-primario:hover:not(:disabled) {
  background: #fbbf24;
  transform: translateY(-1px);
}
.btn-primario:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secundario {
  background: #27272a;
  color: #e4e4e7;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease;
}
.btn-secundario:hover {
  background: #3f3f46;
}

.btn-texto-discreto {
  background: none;
  border: none;
  color: #71717a;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-texto-discreto:hover {
  color: #a1a1aa;
}

/* ---------------------------------------------------------------------
   TELA DE QUIZ
--------------------------------------------------------------------- */
.progress-track {
  width: 100%;
  height: 0.4rem;
  background: #18181b;
  border-radius: 9999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.quiz-card {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.1rem;
  padding: 1.5rem 1.5rem;
}

.quiz-enunciado {
  font-size: 1rem;
  font-weight: 600;
  color: #f4f4f5;
  line-height: 1.55;
  margin-bottom: 1.3rem;
}

.quiz-opcoes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-opcao {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  background: #0c0c0e;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  color: #d4d4d8;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-opcao:hover {
  border-color: rgba(245, 158, 11, 0.4);
}
.quiz-opcao.selecionada {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}
.quiz-opcao-letra {
  flex-shrink: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #a1a1aa;
}
.quiz-opcao.selecionada .quiz-opcao-letra {
  background: #f59e0b;
  color: #09090b;
}

/* ---------------------------------------------------------------------
   TIMER (no header)
--------------------------------------------------------------------- */
#timer-badge {
  display: none;
}
#timer-badge.ativo {
  display: flex;
}

/* ---------------------------------------------------------------------
   TELA DE RESULTADO
--------------------------------------------------------------------- */
.resultado-circulo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 9999px;
  background: #18181b;
  border: 4px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

/* ---------------------------------------------------------------------
   RECOMENDAÇÃO DE REVISÃO (tela de resultado)
--------------------------------------------------------------------- */
.recomendacao-card {
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(63, 63, 70, 0.6);
  border-radius: 1rem;
  padding: 1.5rem;
}

.recomendacao-lista {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recomendacao-item {
  display: block;
  background: rgba(39, 39, 42, 0.6);
  border: 1px solid rgba(63, 63, 70, 0.6);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e4e4e7;
}

/* ---------------------------------------------------------------------
   HISTÓRICO DE TENTATIVAS
--------------------------------------------------------------------- */
.historico-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.8rem 1.1rem;
  font-size: 0.85rem;
}
.historico-data {
  color: #a1a1aa;
}
.historico-percentual {
  font-weight: 800;
  color: #fbbf24;
}

/* ---------------------------------------------------------------------
   MODAL (mesmo padrão do resto do app)
--------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1.25rem;
}
.modal-box {
  background: #18181b;
  border: 1px solid rgba(63,63,70,0.6);
}