/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #b6b19e;
  color: #757a70;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Header fixo com menu */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background-color: #757a70;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.0rem;
  font-weight: 600;
  color: #b6b19e;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.nav-links a {
  color: #b6b19e;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #b6b19e;
}

/* Seções padrão */
.section {
  padding: 100px 20px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  color: #b6b19e;
  align-items: center;
  box-sizing: border-box;
}

/* Seção INÍCIO */
#inicio {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#iniciopaciente {
  width: 100%;
  height: auto;
  text-align: center;
  color: #757a70;

}

.iniciopaciente-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.iniciopaciente-img {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
  text-align: center;
}

.iniciopaciente-img img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.iniciopaciente-texto {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  text-align: justify;
}

.iniciopaciente-texto h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 15px;
  color: #757a70;
}

.iniciopaciente-texto p {
  font-size: 16px;
  line-height: 1.6;
  color: #757a70;
  text-align: left;
}


.banner-img {
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Container geral */
#agenda .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Raleway', sans-serif;
  color: #757a70;
  background-color: #757a70;
  /* fundo escuro */
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Título */
#agenda h2 {
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #b6b19e;
  text-align: center;
}

/* Wrapper da tabela para overflow */
.table-wrapper {
  overflow-x: auto;
}

/* Estilização da tabela */
#agenda table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  /* garante rolagem horizontal se menor que isso */
}

/* Cabeçalho */
#agenda thead tr {
  background-color: #bbb6a8;
}

#agenda thead th {
  padding: 12px 15px;
  color: #8b8b8b;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  border-bottom: 2px solid #b6b19e;
}

/* Linhas da tabela */
#agenda tbody tr {
  border-bottom: 1px solid #b6b19e;
  transition: background-color 0.3s ease;
}

#agenda tbody tr:hover {
  background-color: #dbdad4;
}

/* Células da tabela */
#agenda tbody td {
  padding: 12px 15px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #b4b2a4;
}

/* Botões */
#agenda .botao {
  padding: 6px 12px;
  background-color: #b6b19e;
  border: none;
  border-radius: 4px;
  color: #7a7870;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#agenda .botao:hover {
  background-color: #ccc9bf;
}

/* Status com cores diferentes */
.status-cancelado {
  color: #ff6b6b;
  /* vermelho claro */
  font-weight: 700;
}

.status-confirmado {
  color: #4cd137;
  /* verde */
  font-weight: 700;
}

.status-atendido {
  color: #fbc531;
  /* amarelo */
  font-weight: 700;
}

/* Escopo exclusivo para a página de atendimento */
#atender {
  background-color: #757a70;
  color: #b6b19e;
  padding: 100px 20px 60px;
  min-height: 100vh;
  box-sizing: border-box;
  font-family: 'Raleway', sans-serif;
}

/* Container dentro do atender */
#atender .container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #60635e;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  color: #b6b19e;
}

/* Título principal */
#atender h2 {
  font-size: 2.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
}

/* Formulário */
#atender form.formulario {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Labels */
#atender label {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #b6b19e;
}

/* Campos texto e data */
#atender input[type="text"],
#atender input[type="date"],
#atender textarea {
  background-color: #757a70;
  border: 1.5px solid #b6b19e;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 1rem;
  color: #d9d7c5;
  transition: border-color 0.3s ease;
  font-family: 'Raleway', sans-serif;
  resize: vertical;
}

/* Input readonly */
#atender input[readonly] {
  background-color: #60635e;
  color: #cccbb1;
  cursor: default;
}

/* Foco nos campos */
#atender input[type="text"]:focus,
#atender input[type="date"]:focus,
#atender textarea:focus {
  border-color: #dbdad4;
  outline: none;
  background-color: #888978;
  color: #2f2e1e;
}

/* Campo obrigatório */
#atender .obrigatorio {
  color: #ff6b6b;
  font-weight: 700;
}

/* Botões do formulário */
#atender .botoes-form {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 10px;
}

#atender .botao {
  background-color: #b6b19e;
  color: #757a70;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#atender .botao:hover {
  background-color: #dbdad4;
}

/* Botão secundário */
#atender .botao-secundario {
  background-color: #60635e;
  color: #b6b19e;
}

#atender .botao-secundario:hover {
  background-color: #44464a;
  color: #dbdad4;
}

/* Seção registros de acompanhamento */
#atender .acompanhamento {
  margin-top: 40px;
}

/* Título da seção acompanhamento */
#atender .acompanhamento h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  color: #b6b19e;
}

/* Wrapper tabela */
#atender .table-wrapper {
  overflow-x: auto;
}

/* Tabela acompanhamento */
#atender table {
  width: 100%;
  border-collapse: collapse;
  background-color: #757a70;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* Cabeçalho */
#atender thead tr {
  background-color: #b6b19e;
  color: #60635e;
  font-weight: 700;
  font-size: 1rem;
}

#atender thead th {
  padding: 12px 15px;
  border-bottom: 2px solid #60635e;
  text-align: left;
}

/* Corpo da tabela */
#atender tbody tr {
  border-bottom: 1px solid #60635e;
  transition: background-color 0.25s ease;
}

#atender tbody tr:hover {
  background-color: #60635e;
  color: #dbdad4;
  cursor: default;
}

#atender tbody td {
  padding: 12px 15px;
  font-size: 0.95rem;
  color: #d9d7c5;
}


/* Outras seções */
#sobre,
#servicos,
#agendamento,
#contato,
#paciente,
#agenda,
#atender,
#alterarPaciente,
#financeiro {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#sobre {
  background-color: #757a70;
}

#servicos {
  background-color: #b6b19e;
}

#agendamento {
  background-color: #757a70;
}

#contato {
  background-color: #b6b19e;
  color: #757a70;
}

#paciente {
  background-color: #757a70;
  color: #b6b19e;
}

#atender {
  background-color: #757a70;
  color: #b6b19e;
}

#agenda {
  background-color: #757a70;
  color: #b6b19e;
}
#alterarPaciente {
  background-color: #757a70;
  color: #b6b19e;
}
#financeiro {
  background-color: #757a70;
  color: #b6b19e;
}

/* Seção AGENDAMENTO harmonizada */
.agendamento-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 80px 20px;
  background-color: #757a70;
}

.agendamento-img img {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.agendamento-conteudo {
  max-width: 500px;
  color: #b6b19e;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agendamento-conteudo h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #b6b19e;
}

.agendamento-conteudo p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #e8e5db;
}

.agendamento-conteudo .btn {
  margin: 8px 0;
}

#alterarPaciente {
  padding: 40px 20px;
  background-color: #757a70;
  color: #f1f1f1;
  font-family: 'Raleway', sans-serif;
}

#alterarPaciente .container {
  max-width: 700px;
  margin: 0 auto;
  background-color: #757a70;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

#alterarPaciente h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #b6b19e;
}

#alterarPaciente form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#alterarPaciente label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #b6b19e;
}

#alterarPaciente input[type="text"],
#alterarPaciente input[type="date"],
#alterarPaciente select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #b6b19e;
  background-color: #757a70;
  color: #b6b19e;
  font-size: 15px;
  box-sizing: border-box;
}

#alterarPaciente .obrigatorio {
  color: #ff5c5c;
  margin-left: 5px;
}

#alterarPaciente .botoes-form {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

#alterarPaciente .botao {
  flex: 1;
  padding: 12px;
  background-color: #b6b19e;
  color: #757a70;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#alterarPaciente .botao:hover {
  background-color: #888d83;
}

#alterarPaciente .botao-secundario {
  background-color: #b6b19e;
}

#alterarPaciente .botao-secundario:hover {
  background-color: #b6b19e;
}


/* Cards padrão */
.card {
  background-color: #63665f;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 90%;
  box-sizing: border-box;
  margin: auto;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-top: 0;
  color: #b6b19e;
  font-weight: 500;
}

.card ul {
  padding-left: 20px;
}

/* Botões */
.btn {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background-color: #60635e;
  color: #b6b19e;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #888786;
}

.rodape {
  background-color: #b6b19e;
  color: #757a70;
  padding: 20px 10px;
}

.rodape-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.rodape-coluna {
  flex: 1;
  min-width: 250px;
}

.rodape-contato h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.divisor-card {
  border: none;
  height: 1px;
  background-color: #b6b19e;
  /* ou #757a70 para mais contraste */
  margin: 10px 0;
  width: 100%;
}

.rodape-contato p,
.rodape-creditos p {
  margin: 8px 0;
  font-size: 1rem;
}

.rodape-contato a,
.rodape-creditos a {
  color: #757a70;
  text-decoration: none;
}

.rodape-contato a:hover,
.rodape-creditos a:hover {
  text-decoration: underline;
}

.rodape-creditos {
  text-align: right;
  margin-left: auto;
  /* <-- Isso força a coluna para a direita */
}

/* Carrossel */
.carrossel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.carrossel-slider {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.card-servico {
  flex: 0 0 240px;
  background-color: #fffaf3;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  align-items: center;
  text-align: center;
  padding: 15px;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.card-servico img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card-servico h3 {
  font-size: 1rem;
  color: #b6b19e;
  margin: 0;
}

.form-flex {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.form-texto {
  flex: 1;
  min-width: 280px;
  padding: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: #b6b19e;
  text-indent: 30px;
  /* Indenta a primeira linha do parágrafo */
  margin-bottom: 1em;
  /* Espaço entre os parágrafos */
  text-align: justify;
}

.form-area {
  flex: 1;
  min-width: 280px;
}

.form-area textarea {
  width: 100%;
  height: 220px;
  resize: vertical;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-family: 'Raleway', sans-serif;
  background-color: #f9f9f9;
}

.campo-token {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  display: block;
  margin: 10px auto;
  background-color: #f9f9f9;
}

input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-top: 10px;
}

.botao-enviar {
  background-color: #b6b19e;
  color: #fff;
  font-size: 16px;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 20px auto 0;
  display: block;
  font-family: 'Raleway', sans-serif;
}

.botao-enviar:hover {
  background-color: #b1a98c;
  transform: scale(1.03);
}

/* Submenu administrativo */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #60635e;
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 160px;
}

.nav-links .dropdown:hover .submenu {
  display: block;
}

.nav-links .dropdown .submenu li a {
  display: block;
  padding: 10px 15px;
  color: #b6b19e;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.nav-links .dropdown .submenu li a:hover {
  background-color: #888786;
}


@keyframes deslizar {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  #inicio {
    width: 100%;
    padding-top: 60px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  #agenda table {
    min-width: 600px;
  }

  #agenda thead th,
  #agenda tbody td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  #agenda h2 {
    font-size: 1.5rem;
  }

  #agenda .botao {
    padding: 5px 10px;
    font-size: 0.85rem;
  }

  .form-flex {
    flex-direction: column;
  }

  #atender .container {
    padding: 20px 15px;
  }

  #atender form.formulario {
    gap: 15px;
  }

  #atender .botoes-form {
    flex-direction: column;
    gap: 12px;
  }

  #atender .botao,
  #atender .botao-secundario {
    width: 100%;
    padding: 14px 0;
    font-size: 1.1rem;
  }

  #atender table {
    font-size: 0.85rem;
  }

  .rodape-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rodape-creditos {
    text-align: center;
  }

  .inicio-hero-horizontal {
    flex-direction: column;
    gap: 30px;
    padding: 0px;
  }

  .foto-aline {
    width: 200px;
    height: 200px;
  }

  .logo-aline {
    width: 240px;
  }

  .nav-links {
    gap: 10px;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .carrossel-slider {
    flex-direction: column;
    align-items: center;
  }

  .card-servico {
    width: 90%;
    max-width: 350px;
    margin: 10px 0;
  }

  .card-servico img {
    height: auto;
    max-height: 200px;
  }

  .agendamento-container {
    flex-direction: column;
    text-align: center;
  }

  .agendamento-img img {
    max-width: 90%;
  }

  .agendamento-conteudo .btn {
    margin: 10px auto;
  }
}