body {
  font-family: Verdana, sans-serif;
  background: linear-gradient(to top, rgb(155, 13, 13), rgb(178, 0, 0));
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.container {
  max-width: 650px;
  width: 90%;
  background: #fff;
  padding: 30px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-top: 0;
  margin-bottom: 50px;
}

.logo {
  max-width: 300px;
  height: auto;
  margin-top: 50px;
  margin-bottom: 0px;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  .logo {
    display: block;
  }

  .resposta-container {
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }

  .resposta-texto,
  .caixa-conteudo {
    hyphens: auto; /* Hifenização automática */
    width: 100%;
    max-width: 100%;
    word-break: break-word;
  }
}

/* abas */
.tab {
  display: flex;
  overflow: hidden;
  width: 90%;
  max-width: 650px;
  margin-top: 0px;
  margin-bottom: -1px;
  background-color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  padding-left: 0;
  padding-right: 0;
}

.tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 20px;
  transition: 0.3s;
  font-size: 16px;
  border-bottom: 1px solid #ccc;
  flex-grow: 1;
  text-align: center;
}

.tab button:first-child {
  border-top-left-radius: 8px;
}

.tab button:last-child {
  border-top-right-radius: 8px;
}

.tab button:hover {
  background-color: rgb(150, 0, 0);
  color: white;
}

.tab button.active {
  background-color: rgb(178, 0, 0);
  color: white;
  border-bottom-color: rgb(178, 0, 0);
}

/* conteúdo das abas */
.tabcontent {
  display: none;
}
.tabcontent.active {
  display: block;
}

/* Caixas de conteúdo */
.content-box {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

/* formulário */
label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  font-size: 14px;
  background-color: #fff;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input[type="submit"], 
button#btnBuscar,
button#mostrarFormularioTicket {
  margin-top: 25px;
  width: 100%;
  background-color: rgb(178, 0, 0);
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

input[type="submit"]:hover, 
button#btnBuscar:hover,
button#mostrarFormularioTicket:hover {
  background-color: rgb(150, 0, 0);
}

/* resposta e histórico */
.resposta-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.resposta-texto,
.caixa-conteudo {
  width: 100%;
}




.separator {
  border-top: 1px solid #eee;
  margin: 20px 0;
}

/* Estilos para a seção de FAQ */
.faq-section {
  margin-bottom: 20px;
}

.faq-categorias {
  margin-top: 15px;
}

.faq-categoria {
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 10px 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.faq-categoria:hover {
  background-color: #e9e9e9;
}

.faq-categoria h4 {
  margin: 0;
  color: #b20000;
  padding-right: 20px;
}

.faq-categoria h4::after {
  content: "▸";
  position: absolute;
  right: 15px;
  top: 10px;
  transition: transform 0.3s;
}

.faq-categoria.active h4::after {
  transform: rotate(90deg);
}

.faq-perguntas {
  padding: 10px 0 0 10px;
  display: none;
}

.faq-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.pergunta {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.resposta {
  color: #555;
  line-height: 1.5;
}

/* Estilo para o CTA do ticket */
.ticket-cta {
  text-align: center;
  margin: 25px 0;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Container do formulário */
.form-container {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  margin: 0;
}

.form-container.visible {
  max-height: 1500px;
  opacity: 1;
  margin: 25px 0;
}

.form-box {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.close-form {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 5px;
}

.close-form:hover {
  color: #b20000;
}

/* Estilo para a mensagem pós-envio */
.ticket-success-message {
  text-align: center;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #b20000;
}

.ticket-success-message p {
  margin-bottom: 15px;
  color: #333;
}

.link-buscar-resposta {
  color: #b20000;
  font-weight: bold;
  text-decoration: none;
}

.link-buscar-resposta:hover {
  text-decoration: underline;
}

#novoTicket {
  background-color: #b20000;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

#novoTicket:hover {
  background-color: #8a0000;
}

/* Estilo para grupos de formulário */
.form-group {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}

/* Prazos de documentos */
.document-deadlines {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px;
}

.document-deadlines p {
  margin: 8px 0;
}

/*historico*/
/* Ajustes para o container do histórico */
.caixa-conteudo {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border: none;
    border-radius: 0px;
    word-break: break-word; /* Quebra palavras longas */
    overflow-x: hidden; /* Impede vazamento horizontal */
    box-sizing: border-box; /* Considera padding no cálculo da largura */
}

/* Estilo para cada item do histórico */
.historico-item {
  background-color: #ffffff;   /* Fundo branco */
  padding: 15px 20px;
  margin-bottom: 20px;         /* Espaço entre os blocos */
  border-radius: 8px;          /* Bordas arredondadas */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombra leve */
  border-left: 5px solid #b20000; /* Borda lateral vermelha */
}

/* Estilo para cada item do histórico */
.historico-item {
  background-color: #ffffff;   /* Fundo branco */
  padding: 15px 20px;
  margin-bottom: 20px;         /* Espaço entre os blocos */
  border-radius: 8px;          /* Bordas arredondadas */
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombra leve */ 
  border: 1px solid #eee; /* Adiciona uma borda sutil no lugar da borda lateral */
  position: relative;    /* NECESSÁRIO para posicionar a bolinha */
  border-left: 5px solid #b20000; /* Borda lateral vermelha */
}

.historico-item p {
  margin: 0 0 10px 0;
}

.historico-item p:last-child {
  margin-bottom: 0;
}

/* Se quiser tirar o <hr> */
#historicoResultado hr {
  display: none;
}



/* Remove a margem do último parágrafo */
#historicoResultado p:last-child {
    margin-bottom: 0;
}



/*ícone de dúvida*/

#ajudaIcon {
  cursor: pointer;
  background: #ccc;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.3s;
  margin-left: auto; /* Garante que ele fique do lado direito */
}

#ajudaIcon:hover {
  background: #999;
}



.titulo-documentos {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*Botão de mostrar prazos*/
.botao-prazos {
  background-color: #555555;
  color: white;
  border: none;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-left: auto; /* Garante que ele fique do lado direito */
}

.botao-prazos:hover {
  background-color: rgb(178, 0, 0);
}

#ajudaTexto {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background-color: #f9f9f9;
  padding: 0 12px;
  margin-top: 0;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.4s ease;
}

#ajudaTexto.visible {
  max-height: 300px;
  opacity: 1;
  padding: 12px;
  margin-top: 10px;
}


/*transição pra quando seleciona aluno ou exluno no ticket*/
.form-container-grupo {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  margin: 0;
}

.form-container-grupo.visible {
  max-height: 500px; /* ajuste conforme o conteúdo */
  opacity: 1;
  margin: 15px 0;
  margin-top: 5px;
}

/*Botão de ajuda da aba buscar*/
#ajudaTextoBuscar {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  background-color: #f9f9f9;
  padding: 0 12px;
  margin-top: 0;
  border-left: 4px solid #007bff;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
}
#ajudaTextoBuscar.visible {
  max-height: 500px; /* ajuste conforme necessário */
  opacity: 1;
  padding: 12px;
  margin-top: 10px;
}

input[type="file"] {
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
}

.file-upload-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  font-family: sans-serif;
  margin-top: 10px;
}

.file-upload-input {
  display: none; /* esconde o input original */
}

.file-upload-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgb(200, 10, 10);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.1s;
}

.file-upload-btn:hover {
  background-color: rgb(178, 0, 0);
  transform: translateY(-1px);
}

.file-upload-btn svg {
  fill: white;
}

.file-upload-filename {
  margin-left: 12px;
  font-size: 0.95em;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.upload-wrapper {
  display: none;
  margin-top: 10px;
}

#uploadBO {
  margin-top: 15px;
}

/*caixa de pesquisa*/

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap; /* permite quebrar a linha */
         /* dá espaço entre título e barra no desktop */
}

.faq-header h2 {
  font-size: 1.8rem;
  color: #333;
  margin: 0;
}

.faq-search {
  flex: 1;
}

.faq-search input {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-bottom: 2px solid #000; 
  font-size: 1rem;
  background: transparent;
  border-radius: 0; 
  max-width: 300px;
}

.faq-search input:focus {
  outline: none;
  border-bottom: 2px solid #007BFF; 
}

#faqSearch {
  flex: 1;
  margin-left: 20px;
  border: none;
  border-bottom: 2px solid #000;
  outline: none;
  padding: 5px;
  font-size: 16px;
  min-width: 200px; /* evita ficar minúsculo */
}



/* 📱 Responsivo para telas menores */
@media (max-width: 768px) {
  .faq-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #faqSearch {
    margin-left: 0;
    margin-top: 10px; /* espaço do título */
    width: 100%;      /* ocupa a linha inteira */
  }
}

/*highligh to texto*/
.highlight {
  background-color: yellow;
}


/* === Indicador de Status (Bolinha) === */
.historico-item .status-indicator {
    position: absolute;
    top: 10px;        /* Distância do topo */
    right: 10px;      /* Distância da direita */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff; /* Borda branca para destacar do fundo do container */
    box-shadow: 0 0 3px rgba(0,0,0,0.3); /* Sombra para dar profundidade */
}

/* Respondido = VERDE */
.historico-item.respondido .status-indicator {
    background-color: #4CAF50; /* Verde */
}

/* Ainda não respondido = AMARELO */
.historico-item.nao-respondido .status-indicator {
    background-color: #FFC107; /* Amarelo/Laranja */
}

/* Cancelado/Rejeitado = VERMELHO */
.historico-item.cancelado .status-indicator {
    background-color: #F44336; /* Vermelho */
}
