/* 1. Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
  background: #f0f2f5;
  display: flex;
  justify-content: center;
  padding: 40px;
}

.container {
  background: #fff;
  padding: 20px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  box-sizing: border-box;
  width: 100%;
}

/* 2. Títulos */
h1,
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

#lista-agendamentos h3 {
  text-align: center;
  margin: 15px 0;
  color: #2c3e50;
  font-weight: bold;
}

/* 3. Formulário e Inputs */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 0;
}

form label {
  font-weight: 600;
  color: #34495e;
}

form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s;
}

form input:focus {
  border-color: #3498db;
  outline: none;
}

/* 4. Container de Botões (Agendar, Limpar, E-mail) */
.botoes-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
  width: 100%;
}

.botoes-container button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 5px;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s, background 0.3s;
  font-size: 14px;
  height: 45px;
}

.botoes-container button:hover {
  opacity: 0.9;
}

/* Cores e IDs dos Botões */
#btn-agendar {
  background: #3498db;
}

#btn-agendar:hover {
  background: #2980b9;
}

#btn-limpar {
  background: #95a5a6;
}

#btn-limpar:hover {
  background: #7f8c8d;
}

#btn-enviar-email {
  background: #27ae60;
}

#btn-enviar-email:hover {
  background: #1e8449;
}

/* 5. Seção de Busca */
.busca {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.busca input:not([type="date"]) {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s;
}

.busca-periodo {
  display: flex;
  gap: 10px;
  width: 100%;
}

.campo-data {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.campo-data label {
  font-size: 14px;
  font-weight: 600;
  color: #34495e;
}

.campo-data input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* 6. Lista de Agendamentos e Itens */
ul {
  list-style: none;
  padding: 0;
}

li {
  background: #ecf0f1;
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

li .acoes {
  display: flex;
  gap: 8px;
}

.btn-editar,
.btn-remover {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
  font-size: 16px;
}

.btn-editar:hover {
  background: #d4ac0d;
}

.btn-remover:hover {
  background: #c0392b;
}

/* 7. Mensagens de Feedback */
.mensagem {
  display: none;
  padding: 12px 20px;
  margin: 15px 0;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
}

.mensagem.erro {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.mensagem.sucesso {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Coloca o nome e idade na mesma linha */
.linha-paciente {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 15px;
  gap: 10px;
  /* Espaço entre os campos */
}

/* O campo de nome cresce mais (flex: 3) */
.campo-nome {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* O campo de idade é menor (flex: 1) */
.campo-idade {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Garante que os inputs ocupem 100% do seu container flex */
.linha-paciente input {
  width: 100%;
}

.linha-paciente__button {
  flex: 0.5;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  /* Reduzi um pouco para o ícone não ficar desproporcional */
  display: flex;
  /* Adicionado para centralizar o ícone */
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
  /* Remova o padding-bottom de 7px que existia para o sinal de + */
}

.fa-child {
  color: #3498db;
  /* Azul suave */
  margin-right: 4px;
}

/* style.css */
option[data-status="inativo"] {
  text-decoration: line-through;
  color: #7f8c8d;
  /* Cinza para reforçar que está inativo */
}

.busca {
  display: flex;
  flex-direction: column;
  /* Organiza os itens em coluna */
  gap: 10px;
  background: #f9f9f9;

  border-radius: 8px;
  margin-top: 20px;
}

.busca-periodo {
  display: flex;
  gap: 10px;
}

.campo-data {
  flex: 1;
}

.campo-data-hora {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#btn-gerar-relatorio:hover {
  background: #8e44ad;
  /* Um roxo levemente mais escuro ao passar o mouse */
}