/* style.css: */

/* Estilo base */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f5ff;
  overflow-y: auto; /* Permite rolagem vertical */
  height: 100%; /* Garante que o body ocupe a altura completa */
  display: block; /* Remove o flex que restringe o layout */
}

h1 {
  text-align: center;
}

.container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 900px; /* Largura aumentada para a página de diagnóstico */
  width: 100%;
  margin: 20px auto; /* Centraliza horizontalmente */
  text-align: left; /* Alinha o conteúdo à esquerda */
}

.logo {
  display: block;
  margin: 0 auto 20px; /* Centraliza a logo e adiciona espaçamento abaixo */
  max-width: 150px; /* Define a largura máxima */
  height: auto; /* Mantém a proporção do SVG */
}

.title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.form-group input {
  width: 95%;
  padding: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  margin: 0;
}

input.error {
  border: 2px solid red;
}

.error {
  border: 1px solid red;
  background-color: #ffe6e6;
}

.botaovoltar {
  background: #ccc; /* Cinza */
  color: black;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.botaovoltar:hover{
  background: #999;
}

/* Botões da página Home */
.home .button {
  width: 97%;
  background-color: #5d00a3;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  margin: 0;
  
}

.home .button:hover {
  background-color: purple;
}

/* Botões das páginas DiagnosisPage1 e DiagnosisPage2 */
.diagnosis-page .button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.diagnosis-page .button {
  background: #5d00a3;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.diagnosis-page .button:hover {
  background: purple;
}

/* Estilos específicos para a página de diagnóstico */
.diagnosis-page {
  max-width: 900px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.diagnosis-page h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
}


.diagnosis-page .tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.diagnosis-page .tab {
  background: #f0f0f0;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.diagnosis-page .tab.active {
  background: #A073C6;
  color: white;
}

.diagnosis-page .questionnaire h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.diagnosis-page .question {
  margin-bottom: 20px;
}

.diagnosis-page .question h3 {
  background: #E6D7FF;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: normal !important;
}

.diagnosis-page ul {
  list-style: none;
  padding: 0;
}

.diagnosis-page ul li {
  margin: 10px 0;
}

.diagnosis-page input[type="radio"] {
  margin-right: 10px;
}

.diagnosis-page label {
  font-size: 14px;
  cursor: pointer;
}


 /* DadosPessoais: */
.container.dados-pessoais {
  max-width: 800px;
  margin: 0 auto;
  padding: 3px;
  font-family: Arial, sans-serif;
  
}

.option-group {
  margin-bottom: 20px;
}

.option-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

.options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-button {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

.option-button:hover {
  background-color: #dab1da;
}

.option-button.selected {
  background-color: #5d00a3;
  color: #fff;
  border-color: #5d00a3;
}

.button-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.button {
  background: #5d00a3;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.button:hover {
  background-color: purple;
}



/* Adiciona margens superiores específicas entre questões com classes separadas */

/* Configuração da tabela para responsividade e linhas horizontais */
.matrix-table {
    width: 100%;
    border-collapse: collapse; /* Remove espaços entre células */
    margin-top: 5px;
    margin-bottom: 10px;
    border: 2px solid #ccc; /* Adiciona borda externa na tabela */
}

/* Define apenas as linhas horizontais */
.matrix-table tr {
    border-bottom: 1px solid #ccc; /* Cria apenas linhas horizontais */
}

/* Remove qualquer borda lateral e define espaçamento interno */
.matrix-table th, 
.matrix-table td {
    padding: 12px;
    text-align: left; 
    border: none; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
}

/* Remove a borda da última linha */
.matrix-table tr:last-child {
    border-bottom: none;
}

/* Ajusta o tamanho das colunas */
.matrix-table td:first-child {
    width: 60%;
}

.matrix-table td:last-child {
    width: 40%;
    text-align: center;
}

/* Margem entre grupos de tabelas */
.matrix-group {
    margin-top: 20px;
}

/* Define espaçamento entre diferentes seções */
.matrix-group + .matrix-group {
    margin-top: 40px;
}

/* Ajuste dos labels para melhor espaçamento */
.matrix-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

/* Estilos gerais do modal */
/* Estilos gerais do modal */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  background-color: #6a1b9a; /* Cor de fundo roxa */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: white;
  width: 300px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.check-icon {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-icon {
  width: 100%; /* Ajusta a largura para se ajustar automaticamente */
  max-width: 50px; /* Define um tamanho máximo para a largura */
  height: auto; /* Mantém a proporção da imagem */
  display: block;
}

/* Botão OK */
.ok-button {
  background: white;
  color: #6a1b9a;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.ok-button:hover {
  background: #f0f0f0;
}

.other-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  
}

.other-input {
  display: none;
  padding: 3px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 3px;
  
}



/* Responsividade */

/* Responsividade para smartphones (até 480px) */
@media (max-width: 480px) {
  html, body {
    font-size: 14px; /* Ajuste para melhor leitura em telas pequenas */
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    
  }

  .container {
    padding: 10px;
    max-width: 95%; /* Preenche a largura da tela */
    margin: 10px auto; /* Reduz espaço externo */
    border-radius: 5px; /* Bordas menos pronunciadas */
  }

  .logo {
    max-width: 80px; /* Reduz tamanho da logo */
    margin-bottom: 10px;
  }

  .title {
    font-size: 16px; /* Tamanho de fonte menor */
    margin-bottom: 15px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .form-group label {
    font-size: 12px; /* Ajusta tamanho da fonte do rótulo */
    margin-bottom: 5px;
  }

  .form-group input {
    width: 90%; /* Garante que preencha a largura disponível */
    padding: 8px;
    font-size: 12px;
  }

  .button {
    font-size: 14px;
    padding: 10px;
    width: 100%; /* Botões ocupam toda a largura */
    margin-bottom: 10px;
    display: block;
    margin: auto;
  }

  .button-container {
    flex-direction: column; /* Alinha os botões verticalmente */
    gap: 10px; /* Espaço entre os botões */
    flex-direction: column-reverse;
    
  }
  .diagnosis-page .tabs {
    display: flex;
    flex-wrap: wrap; /* Permite quebra de linha quando necessário */
    gap: 5px; /* Adiciona um pequeno espaço entre as abas */
    justify-content: center; /* Centraliza as abas na tela */
}

.diagnosis-page .tab {
    padding: 8px 12px; /* Ajusta o tamanho interno para melhor aparência */
    font-size: 14px; /* Aumenta um pouco a legibilidade */
    flex: 1 1 auto; /* Faz as abas se ajustarem melhor ao conteúdo */
    text-align: center;
    border-radius: 5px; /* Deixa as bordas arredondadas */
    background-color: #E6D7FF; /* Mantém a cor lavanda */
    border: 1px solid #A073C6; /* Adiciona um contorno sutil */
    pointer-events: none; /* Impede qualquer clique nas abas */
    user-select: none; /* Impede que o usuário selecione o texto */
}

.diagnosis-page .tab:hover {
    background-color: #A073C6; /* Muda para lavanda escuro ao passar o mouse */
    color: white;
}
  

  .matrix-group table {
    width: 100%; /* Garante que a tabela não ultrapasse a tela */
    font-size: 12px; /* Tamanho da fonte reduzido */
    border-spacing: 5px; /* Reduz espaço entre células */
  }

  .matrix-group table th,
  .matrix-group table td {
    padding: 8px; /* Ajusta espaçamento interno */
    text-align: center;
  }

  .option-group {
    margin-bottom: 15px;
  }

  .option-button {
    padding: 8px;
    font-size: 12px;
    width: calc(50% - 10px); /* Garante 2 botões por linha */
    text-align: center;
  }

  .modal-content {
    width: 90%; /* Ocupa quase toda a largura da tela */
    padding: 15px;
    border-radius: 8px; /* Bordas mais suaves */
  }

  .modal-icon {
    max-width: 40px; /* Reduz tamanho do ícone no modal */
    margin-bottom: 10px;
  }
}


/* Tablets (601px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 15px;
    max-width: 95%;
  }

  .logo {
    max-width: 120px;
  }

  .title {
    font-size: 18px;
  }

  .form-group input {
    font-size: 14px;
  }

  .button {
    font-size: 17px;
    padding: 14px 28px;
    min-width: 180px;

  }

  .modal-content {
    width: 80%;
    padding: 20px;
  }

  .matrix-group table {
    font-size: 14px;
    border-spacing: 10px;
  }

  .option-button {
    padding: 10px;
    font-size: 13px;
  }

  .tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tab {
    padding: 10px;
    font-size: 14px;
  }
}

/* Desktops grandes (acima de 1025px) */
@media (min-width: 1025px) {
  body {
    font-size: 18px;
  }

  .container {
    max-width: 900px;
  }

  .title {
    font-size: 20px;
  }

  .tabs {
    justify-content: space-between;
  }

  .tab {
    padding: 10px 15px;
    font-size: 16px;
  }

  .modal-content {
    max-width: 400px;
  }

  .matrix-group table {
    font-size: 16px;
    border-spacing: 15px;
  }

  .option-button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .button{
    font-size: 18px;
    padding: 16px 32px;
    min-width: 200px;
  }
}


