* { box-sizing: border-box; }
    body {
      font-family: 'Roboto', sans-serif;
      background-color: #f3f4f6;
      color: #1f2937;
      margin: 0;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    
.oculto {
  display: none !important;
}
    .tela-inicial {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 800px;
      text-align: center;
      padding: 16px;
    }
    .titulo-principal {
      font-size: 20px;
      font-weight: bold;
      margin-bottom: 20px;
      color: #2563eb;
    }
    .input-nome {
      width: 256px;
      padding: 12px;
      margin-bottom: 24px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      outline: none;
    }
    .input-nome:focus {
      border-color: #3b82f6;
      box-shadow: 0 0 0 2px #93c5fd;
    }
    button {
      padding: 12px 10px;
      font-size: 15px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    .botao-iniciar {
      background-color: #16a34a;
      color: white;
    }
    .botao-iniciar:hover {
      background-color: #15803d;
    }
    .titulo-avaliacao {
      background-color: #2563eb;
      color: white;
      text-align: center;
      font-size: 20px;
      font-weight: 600;
      padding: 15px;
    }
    .conteudo-principal {
      display: flex;
      flex: 1;
      overflow: hidden;
      flex-direction: column;
    }
    @media (min-width: 768px) {
      .conteudo-principal {
        flex-direction: row;
      }
    }
    .painel-lateral {
      width: 100%;
      max-width: 220px;
      background: white;
      border-right: 1px solid #d1d5db;
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .titulo-painel {
      font-size: 14px;
      font-weight: bold;
      margin-bottom: 16px;
      color: #2563eb;
    }
    .lista-perguntas {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 8px;
      list-style: none;
      padding: 0;
    }
    @media (min-width: 768px) {
      .lista-perguntas {
        grid-template-columns: repeat(3, 1fr);
      }
    }
    .lista-perguntas li {
      padding: 8px;
      text-align: center;
      background-color: #f3f4f6;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    

    
    .lista-perguntas li.respondida {
  background-color: #4caf50;  /* verde */
  color: white !important;
  font-weight: bold;
  border-radius: 4px;
  padding: 8px;
  text-align: center;
}

.lista-perguntas li.errada {
  background-color: #e53935;  /* vermelho */
  color: white !important;
  font-weight: bold;
  border-radius: 4px;
  padding: 8px;
  text-align: center;
}
    
    .lista-perguntas li:hover {
      background-color: #e5e7eb;
    }
    .respondida {
      background-color: #58c0ed !important;
      color: #095373;
      font-weight: bold;
    }
    
    .errada {
      background-color: #e53935; /* vermelho */
      color: white;
      font-weight: bold;
      border-radius: 4px;
    }
    
    
    
    .botoes-painel {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 20px;
    }
    .botao-finalizar {
      background-color: #16a34a;
      color: white;
    }
    .botao-finalizar:hover {
      background-color: #15803d;
    }
    .botao-baixar {
      background-color: #2563eb;
      color: white;
    }
    .botao-baixar:hover {
      background-color: #1d4ed8;
    }
    .container-questoes {
      flex-grow: 1;
      padding: 40px;
      background: #e9eaee;
    }
    .formulario-questoes {
      margin-bottom: 32px;
    }
    .questao {
      background: white;
      padding: 32px;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .questao h3 {
      font-size: 14px;
      font-weight: bold;
      margin-bottom: 16px;
      color: #2563eb;
    }
    .questao label {
      display: block;
      margin-bottom: 10px;
      cursor: pointer;
      color: #1f2937;
      font-size: 14px;
    }
    .questao input[type="radio"] {
      margin-right: 12px;
      cursor: pointer;
      transform: scale(0.9);
    }
    .bg-green-100 {
      background-color: #dcfce7;
      border-left: 4px solid #15803d;
      padding-left: 12px;
      border-radius: 6px;
    }
    .bg-red-100 {
      background-color: #fee2e2;
      border-left: 4px solid #dc2626;
      padding-left: 12px;
      border-radius: 6px;
    }
    .navegacao-botoes {
      text-align: center;
      margin-top: 16px;
    }
    .botao-navegacao {
      margin: 0 8px;
      background-color: #2563eb;
      color: white;
    }
    .botao-navegacao:hover {
      background-color: #1d4ed8;
    }
    .resultado-final {
      margin-top: 48px;
      text-align: center;
      font-size: 14px;
      font-weight: bold;
      color: #16a34a;
      white-space: pre-line;
    }
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .modal-conteudo {
      position: relative;
      background-color: none;
      padding: 10px;
      max-width: 90%;
      max-height: 90%;
      overflow: hidden;
    }
    .fechar {
      position: absolute;
      top: 10px;
      right: 10px;
      color: white;
      font-size: 20px;
      font-weight: bold;
      cursor: pointer;
    }

    /* 🌐 Responsivo mobile extra */
    @media (max-width: 600px) {
      .painel-lateral {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #d1d5db;
        flex-direction: column;
        align-items: stretch;
      }
      .container-questoes {
        padding: 16px;
      }
      .questao {
        padding: 20px;
      }
      .botao-navegacao {
        display: block;
        width: 100%;
        margin: 8px 0;
      }
}