/* Reset simples */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== PALETA DE CORES ========== */
:root {
  /* Azul principal (Network+ identity) */
  --primary-blue: #1a6fa8;
  --primary-blue-dark: #0d5a8a;
  --primary-blue-light: #e8f4f8;

  /* Roxo como acento (energy/creativity) */
  --accent-purple: #667eea;
  --accent-purple-dark: #764ba2;
  --accent-purple-light: rgba(102, 126, 234, 0.1);

  /* Gradiente híbrido */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-dark) 100%);
  --gradient-hybrid: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 50%, var(--accent-purple-dark) 100%);

  /* Tons neutros */
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #888;
  --bg-light: #f6f7f8;
  --bg-white: #fff;
  --border-light: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
}

/* ========== TOP NAVIGATION BAR ========== */
.top-nav {
  background: var(--gradient-hybrid);
  box-shadow: 0 2px 8px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
}

.top-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-nav .nav-icon {
  font-size: 24px;
  filter: brightness(0) invert(1);
}

.top-nav .nav-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.top-nav .nav-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-nav .version-badge {
  background: var(--accent-purple-light);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-nav .mode-badge {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-nav .nav-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
}

.top-nav .nav-back-btn:hover {
  background: var(--accent-purple-light);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.top-nav .back-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.top-nav .nav-back-btn:hover .back-icon {
  transform: translateX(-2px);
}

/* ========== DASHBOARD CONTAINER ========== */
.container-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Header geral da página */
h1 {
  width: 95%;
  max-width: 1400px;
  margin: 32px auto 8px;
  font-size: 22px;
  font-weight: 600;
}

/* Container principal do quiz */
#quiz {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto 40px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

/* Cabeçalho interno */
#cabecalho-quiz {
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

#cabecalho-quiz h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

#cabecalho-quiz p {
  font-size: 13px;
  color: #666;
}

/* Indicadores de progresso */
#indicadores-progresso {
  display: flex;
  gap: 8px;
  row-gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.indicador-questao {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.indicador-questao:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Desativa hover para indicadores não clicáveis (modo normal) */
.indicador-questao.nao-clicavel:hover {
  opacity: 0.7;
  transform: none;
}

.indicador-questao.atual {
  opacity: 1;
  height: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Layout de duas colunas */
#conteudo-quiz {
  display: flex;
  gap: 32px;
  margin-top: 16px;
}

/* Colunas (pergunta e resposta) */
#coluna-pergunta,
#coluna-resposta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

/* Coluna da pergunta */
#texto-pergunta {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  min-height: 6em;
  padding: 8px 0;
}

/* Coluna das respostas */
#lista-opcoes {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

/* Títulos “PERGUNTA” / “RESPOSTA” */
.titulo-secao {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* Botões das alternativas */
.option-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3.5em;
  padding: 0.9em 1em;
  margin-bottom: 10px;
  border: 2px solid #c0d2e0;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  transition: all 0.2s ease;
}

/* Círculo de seleção à esquerda */
.option-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #1a6fa8;
  margin-right: 10px;
  background-color: #fff;
  flex-shrink: 0; /* importante: impede que encolha */
  flex-grow: 0;   /* importante: impede que cresça */
}

.option-button:hover {
  background-color: #f2f7fb;
  border-color: #1a6fa8;
}

/* estados visuais de dúvida e certeza */
.option-button.estado-duvida .option-circle {
  background: linear-gradient(to right, #1a6fa8 50%, #fff 50%);
  border-color: #1a6fa8;
}

.option-button.estado-certeza .option-circle {
  background-color: #1a6fa8;
  border-color: #1a6fa8;
}

/* Checkbox para múltipla escolha */
.option-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid #1a6fa8;
  border-radius: 4px;
  margin-right: 10px;
  background-color: #fff;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-checkbox.selecionado {
  background-color: #1a6fa8;
}

.option-checkbox.selecionado::after {
  content: "✓";
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

/* Estilos para modo revisão */
.option-button.correta {
  border-color: #95c952 !important;
  background-color: #f0f9e8 !important;
}

.option-button.incorreta {
  border-color: #e74c3c !important;
  background-color: #fef5f5 !important;
}

.option-button.correta .option-circle,
.option-button.correta .option-checkbox {
  border-color: #95c952 !important;
  background-color: #95c952 !important;
}

.option-button.incorreta .option-circle,
.option-button.incorreta .option-checkbox {
  border-color: #e74c3c !important;
  background-color: #e74c3c !important;
}

.option-button:disabled {
  cursor: default !important;
  opacity: 0.9;
}

.option-button:disabled:hover {
  background-color: inherit;
}

/* Bloco de feedback / explicação */
#bloco-feedback {
  margin-top: 24px;
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
  order: 6;
}

#feedback-resultado {
  font-weight: 600;
  margin-bottom: 8px;
}

#feedback-justificativa {
  font-size: 14px;
  line-height: 1.5;
}

#feedback-sinalizador {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

/* Rodapé com botão enviar/próxima */
#rodape-quiz {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  order: 5;
}

#botao-proxima {
  padding: 10px 40px;
  border-radius: 24px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 4px rgba(26, 111, 168, 0.2);
}

/* Formato de seta quando resposta está visível */
#botao-proxima.mostrar-seta {
  border-radius: 24px 0 0 24px;
  padding-right: 50px;
}

#botao-proxima.mostrar-seta::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 22px 0 22px 20px;
  border-color: transparent transparent transparent #1a6fa8;
}

#botao-proxima:disabled {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#botao-proxima:disabled.mostrar-seta::after {
  border-left-color: #d7e4ee;
}

#botao-proxima:not(:disabled):hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(26, 111, 168, 0.3);
}

#botao-proxima:not(:disabled):hover.mostrar-seta::after {
  border-left-color: #7095b1;
}

/* Botões de confiança */
#bloco-confianca {
  margin-top: 20px;
  padding: 16px;
  background-color: #f0f4f8;
  border-radius: 8px;
  order: 4;
}

#bloco-confianca p {
  margin-bottom: 12px;
  font-weight: bold;
  color: #333;
}

#botoes-confianca {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.botao-confianca {
  flex: 1;
  min-width: 150px;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#botao-nao-sei {
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
  color: #fff;
}

#botao-nao-sei:hover:not(:disabled) {
  background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(127, 140, 141, 0.3);
}

#botao-nao-sei:disabled {
  background: linear-gradient(135deg, #d5dbdb 0%, #aab7b8 100%);
  color: #7f8c8d;
  cursor: not-allowed;
  opacity: 0.7;
}

#botao-nao-certeza {
  background: var(--gradient-primary);
  color: #fff;
}

#botao-nao-certeza:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(52, 152, 219, 0.3);
}

#botao-nao-certeza:disabled {
  background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
  color: #95a5a6;
  cursor: not-allowed;
  opacity: 0.5;
}

#botao-certeza {
  background: linear-gradient(135deg, #0d4a6b 0%, #4a1a7a 50%, #2d1a5c 100%);
  color: #fff;
}

#botao-certeza:hover:not(:disabled) {
  background: linear-gradient(135deg, #0a3a56 0%, #3a1462 50%, #24124a 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(13, 74, 107, 0.3);
}

#botao-certeza:disabled {
  background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
  color: #95a5a6;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Responsivo */
@media (max-width: 768px) {
  #conteudo-quiz {
    flex-direction: column;
  }

  #quiz {
    padding: 16px;
  }

  /* Top Nav Mobile */
  .top-nav {
    padding: 8px 16px;
  }

  .top-nav .nav-brand .nav-title {
    display: none;
  }

  .top-nav .nav-info {
    gap: 12px;
  }

  .top-nav .version-badge {
    display: none;
  }

  .top-nav .nav-back-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ========== ESTILOS DO DASHBOARD ========== */

.container-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.header-dashboard {
  text-align: center;
  margin-bottom: 48px;
  padding-top: 16px;
}

.header-dashboard h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  background: var(--gradient-hybrid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progresso-geral {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.progresso-geral h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.circulo-progresso {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progresso-texto {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progresso-texto span {
  font-size: 36px;
  font-weight: 700;
  color: #1a6fa8;
}

.progresso-texto small {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.lista-simulados {
  background-color: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lista-simulados h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

#container-modulos {
  display: block;
}

.card-modulo {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-modulo:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(26, 111, 168, 0.15);
  border-color: #1a6fa8;
}

.card-modulo h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a6fa8;
  margin-bottom: 8px;
}

.card-modulo p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.card-info {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: #888;
}

/* Breadcrumb removido - agora usa top-nav */

/* Botões de ação dos módulos */
.modulo-acoes {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-modo-normal,
.btn-modo-treino,
.btn-modo-fixacao {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modo-normal {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-purple) 70%, var(--primary-blue-dark) 100%);
  color: white;
}

.btn-modo-normal:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--accent-purple-dark) 70%, var(--primary-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(26, 111, 168, 0.3);
}

.btn-modo-treino {
  background: linear-gradient(135deg, #27ae60 0%, #229954 50%, #1e8449 100%);
  color: white;
}

.btn-modo-treino:hover {
  background: linear-gradient(135deg, #229954 0%, #1e8449 50%, #186a3b 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-modo-fixacao {
  background: linear-gradient(135deg, #0d4a6b 0%, #4a1a7a 50%, #2d1a5c 100%);
  color: white;
}

.btn-modo-fixacao:hover {
  background: linear-gradient(135deg, #0a3a56 0%, #3a1462 50%, #24124a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsivo Dashboard */
@media (max-width: 768px) {
  .container-dashboard {
    padding: 20px 16px;
  }

  .header-dashboard h1 {
    font-size: 22px;
  }

  .lista-simulados {
    padding: 20px;
  }

  #container-modulos {
    grid-template-columns: 1fr;
  }
}

/* ========== ESTILOS DA PÁGINA DE SELEÇÃO ========== */

.container-selecao {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header-selecao {
  text-align: center;
  margin-bottom: 48px;
  color: white;
}

.header-selecao h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-selecao p {
  font-size: 18px;
  opacity: 0.95;
}

.opcoes-versao {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  padding: 20px 0 30px 0; /* Espaço para o hover não cortar */
  overflow-y: visible; /* Permitir que o card saia do container verticalmente */
}

.card-versao {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.card-versao:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.icone-versao {
  font-size: 64px;
  margin-bottom: 20px;
}

.card-versao h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a6fa8;
  margin-bottom: 16px;
}

.card-versao p {
  font-size: 16px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

.card-versao p strong {
  color: #333;
}

.card-versao .subtitulo {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

.btn-selecionar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-selecionar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.info-selecao {
  margin-top: 48px;
  text-align: center;
  color: white;
  font-size: 14px;
  opacity: 0.9;
}

/* Responsivo Seleção */
@media (max-width: 1200px) {
  .opcoes-versao {
    flex-wrap: wrap;
  }
  
  .card-versao {
    flex: 1 1 calc(50% - 10px);
    min-width: 240px;
  }
}

@media (max-width: 768px) {
  .header-selecao h1 {
    font-size: 28px;
  }

  .opcoes-versao {
    gap: 20px;
    flex-wrap: wrap;
  }

  .card-versao {
    flex: 1 1 100%;
    max-width: 340px;
  }
}

/* ========== NOVO LAYOUT - LISTA HORIZONTAL ========== */

.modulo-section {
  margin-bottom: 32px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow-light);
  overflow: hidden;
  border: 1px solid var(--accent-purple-light);
}

.modulo-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  padding: 20px 24px;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  transition: background-color 0.2s ease;
}

.modulo-header:hover {
  background-color: #f8f9fa;
}

.modulo-titulo-principal {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 0;
  flex: 1;
  transition: color 0.2s ease;
}

.modulo-header:hover .modulo-titulo-principal {
  color: var(--primary-blue-dark);
}

.modulo-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: var(--primary-blue);
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.modulo-toggle:hover {
  background-color: var(--primary-blue-light);
  transform: scale(1.05);
}

.modulo-toggle:active {
  transform: scale(0.95);
}

.licoes-lista {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.licoes-lista.modulo-colapsado {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-10px);
}

.licao-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
  gap: 24px;
}

.licao-item:hover {
  background-color: #e8f4f8;
}

.licao-separador {
  height: 1px;
  background-color: #ddd;
}

.licao-info-principal {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.licao-titulo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.licao-icone {
  font-size: 20px;
}

.licao-titulo {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.badge-concluido {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  margin-left: 8px;
}

.licao-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.stat-icon {
  font-size: 16px;
}

.licao-acoes {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.licao-acoes .btn-modo-normal,
.licao-acoes .btn-modo-fixacao {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.licao-acoes .btn-modo-normal {
  background-color: #4CAF50;
  color: white;
}

.licao-acoes .btn-modo-normal:hover {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.licao-acoes .btn-modo-treino {
  background-color: #27ae60;
  color: white;
}

.licao-acoes .btn-modo-treino:hover {
  background-color: #229954;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.licao-acoes .btn-modo-fixacao {
  background-color: #1a6fa8;
  color: white;
}

.licao-acoes .btn-modo-fixacao:hover {
  background-color: #155a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(26, 111, 168, 0.3);
}

/* Responsivo - Layout Lista */
@media (max-width: 768px) {
  .licao-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .licao-acoes {
    width: 100%;
  }

  .licao-acoes .btn-modo-normal,
  .licao-acoes .btn-modo-treino,
  .licao-acoes .btn-modo-fixacao {
    flex: 1;
    font-size: 13px;
    padding: 10px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .modulo-titulo-principal {
    font-size: 20px;
  }
}

/* ========== RESUMO DO QUIZ ========== */
#bloco-resumo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none; /* Inicialmente oculto */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

#bloco-resumo[style*="display: flex"] {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#conteudo-resumo {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

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

#titulo-resumo {
  font-size: 36px;
  font-weight: 700;
  color: #1a6fa8;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#secao-estatisticas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.estatistica-item {
  background: linear-gradient(135deg, #f6f7f8 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease;
}

.estatistica-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.label-estatistica {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.valor-estatistica {
  font-size: 40px;
  font-weight: 700;
  color: #333;
}

.valor-estatistica.acertos {
  color: #28a745;
}

.valor-estatistica.erros {
  color: #dc3545;
}

.valor-estatistica.percentual {
  color: #1a6fa8;
}

#feedback-resumo {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
  margin: 25px 0;
  padding: 20px;
  background: #f0f8ff;
  border-radius: 10px;
  border-left: 4px solid #1a6fa8;
}

#botoes-resumo {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-resumo {
  flex: 1;
  min-width: 200px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-recomecar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-recomecar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-revisar {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
}

.btn-revisar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-dashboard {
  background: linear-gradient(135deg, #1a6fa8 0%, #0d5a8a 100%);
  color: white;
}

.btn-dashboard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 111, 168, 0.4);
}

@media (max-width: 768px) {
  #conteudo-resumo {
    padding: 30px 20px;
  }

  #titulo-resumo {
    font-size: 28px;
  }

  #secao-estatisticas {
    grid-template-columns: 1fr;
  }

  .valor-estatistica {
    font-size: 32px;
  }

  .btn-resumo {
    min-width: 100%;
  }
}
