.quiz-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.quiz-container {
  width: 100%;
  max-width: 680px;
}

.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-header h1 {
  font-family: "Sora", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.quiz-subtitulo {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.5;
  font-weight: 500;
}

.quiz-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.03),
    0 8px 10px -6px rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
  padding: 2.5rem;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.badge-tipo {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-mult {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-vf {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.quiz-contador {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
}

/* Barra de Progresso */
.progress-container {
  width: 100%;
  height: 6px;
  background-color: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-bar {
  height: 100%;
  background-color: #e8571a;
  border-radius: 9999px;
  transition: width 0.4s ease-out;
}

/* Caixa de Cenário/Pergunta */
.scenario-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  min-height: 100px;
  display: flex;
  align-items: center;
}

.scenario-text {
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
  color: #1f2937;
  line-height: 1.6;
  font-weight: 500;
}

/* Alternativas */
.quiz-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  margin-bottom: 2rem;
}

.btn-quiz {
  width: 100%;
  text-align: left;
  background-color: #ffffff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.975rem;
  line-height: 1.5;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-quiz:hover:not(:disabled) {
  border-color: #e8571a;
  background-color: #fdfaf9;
  transform: translateX(4px);
  color: #e8571a;
}

.btn-quiz:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-quiz strong {
  margin-right: 0.25rem;
}

/* Verdadeiro ou Falso específico */
.btn-vf {
  text-align: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.25rem;
}

.btn-vf:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* Feedback */
.feedback-box {
  background-color: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 1.5rem;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-title {
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feedback-title.success {
  color: #15803d;
}

.feedback-title.danger {
  color: #b91c1c;
}

.feedback-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-proxima {
  background-color: #111827;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
  float: right;
  outline: none;
}

.btn-proxima:hover {
  background-color: #1f2937;
}

/* Finais */
.end-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.end-card h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.85rem;
  color: #111827;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.75rem;
  border: 5px solid;
}

.score-circle.success {
  background-color: #f0faf4;
  color: #15803d;
  border-color: #86efac;
}

.score-circle.warning {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.score-circle.danger {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.score-number {
  font-family: "Sora", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.score-total {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.resultado-feedback {
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.resultado-feedback h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.status-success {
  color: #15803d;
}
.status-warning {
  color: #b45309;
}
.status-danger {
  color: #b91c1c;
}

.conselho-texto {
  font-size: 0.975rem;
  color: #4b5563;
  line-height: 1.6;
}

.end-actions {
  display: flex;
  gap: 1.25rem;
  width: 100%;
}

.btn-reiniciar,
.btn-voltar-painel {
  flex: 1;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.btn-reiniciar {
  background-color: #e8571a;
  color: #ffffff;
  border: none;
}

.btn-reiniciar:hover {
  background-color: #d84a12;
}

.btn-quiz.correta-highlight {
  background-color: #f0faf4 !important;
  color: #15803d !important;
  border-color: #15803d !important;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
  font-weight: 600;
}

.btn-quiz.errada-highlight {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
  font-weight: 600;
}

.btn-quiz.desativada-highlight {
  opacity: 0.45;
  background-color: #ffffff !important;
  color: #9ca3af !important;
  border-color: #e5e7eb !important;
}

@media (max-width: 640px) {
  .quiz-card {
    padding: 1.75rem;
  }

  .quiz-actions {
    gap: 0.75rem;
  }

  .end-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .quiz-header h1 {
    font-size: 1.75rem;
  }
}
