/* ========== style.css (versão ajustada para indicar.php) ========== */
/* Reset básico */
* { margin:0; padding:0; box-sizing:border-box; }

/* fonte base e fundo */
html, body { height:100%; }
body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #007bff; /* Cor de fundo */
  background-image: url(images/promo.png); /* Caminho da imagem */
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
  -webkit-font-smoothing: antialiased;
  color: #333;
}

/* Quando for visualizado em smartphones (largura até 768px, por exemplo) */
@media (max-width: 768px) {
  body {
    background-image: none; /* Remove a imagem de fundo */
    background-color: #007bff; /* Mantém apenas a cor */
  }
}

/* CABEÇALHO FIXO */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 12px 0;
}
.header .header-content {
  width: 92%;
  max-width:1100px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.header h1 {
  font-size:18px;
  color:#fff;
  font-weight:600;
  margin:0;
}
.logout-link {
  display:inline-block;
  background: linear-gradient(135deg,#007bff,#00c6ff);
  color:#fff;
  padding:8px 16px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition: transform .18s ease, filter .18s ease;
}
.logout-link:hover { transform:translateY(-2px); filter:brightness(.98); }

/* RODAPÉ FIXO */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding:10px 0;
}
.footer .footer-content {
  width:92%;
  max-width:1100px;
  margin:0 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
}
.footer .footer-logo { height:28px; width:auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.footer p { color:#fff; font-weight:500; font-size:14px; margin:0; }

/* === CONTEÚDO PRINCIPAL ===
   Note: a sua página usa "pagina-container" — o CSS abaixo respeita isso.
*/
.pagina-container {
  width: 92%;
  max-width: 1100px;
  margin: 110px auto 90px auto; /* espaço superior para o header e inferior pro footer */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  /* Certifique-se de que a div no HTML tem class="pagina-container" */
}

/* Estilos básicos compartilhados por lista e formulário */
.lista-indicacoes,
.form-container {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  padding: 25px 30px;
  animation: fadeSlideIn 0.8s ease both;
  margin:2px;
}

/* títulos com mesmo estilo */
.lista-indicacoes h2,
.form-container h2 {
  margin-bottom: 16px;
  color: #0b5ed7;
  font-size: 18px;
  text-align: left;
  font-weight: 700;
}

/* proporções — ajustar para que no desktop fiquem lado a lado */
.lista-indicacoes {
  flex: 1 1 60%;   /* ocupa maior parte do espaço */
  min-width: 420px; /* evita quebrar para uma coluna cedo demais */
  max-width: 720px;
}
.form-container {
  flex: 1 1 35%;   /* formulário mais estreito */
  min-width: 320px;
  max-width: 380px;
}

/* === TABELA DE INDICAÇÕES === */
.tabela-indicacoes {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}
.tabela-indicacoes tr:first-child th {
  /* caso o seu <table> use a primeira linha como header, estilamos essa linha */
}
.tabela-indicacoes thead th,
.tabela-indicacoes th {
  background: linear-gradient(135deg,#007bff,#00c6ff);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: 700;
}
.tabela-indicacoes td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
  color: #333;
}
.tabela-indicacoes tr:nth-child(even) td {
  background: #fbfbfd;
}

/* se a sua tabela não tem <thead>, ainda funciona com th na primeira tr */
.tabela-indicacoes tr:first-child th {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* STATUS */
.status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
}
.status.pendente { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.status.confirmado { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* mensagem vazio */
.nenhum-registro { padding: 18px; color: #666; font-style: italic; text-align: left; }

/* === FORMULÁRIO === */
.form-container form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  font-size: 14px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.form-container input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 6px 18px rgba(0,123,255,0.12);
}
.form-container button,
.form-container input[type="submit"] {
  margin-top: 8px;
  background: linear-gradient(135deg,#007bff,#00c6ff);
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease;
}
.form-container button:hover { transform: translateY(-3px); }

/* animação */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVO (CELULAR / TABLET) === */
@media (max-width: 900px) {
  .pagina-container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 120px; /* aumenta para não ficar encostado no header fixo */
  }

  .lista-indicacoes,
  .form-container {
    width: 100%;
    max-width: 720px;
    padding: 20px;
  }

  /* manter ordem: lista primeiro, formulário segundo */
  .lista-indicacoes { order: 1; }
  .form-container { order: 2; }

  /* títulos centralizados em telas pequenas */
  .lista-indicacoes h2,
  .form-container h2 { text-align: center; }

  .tabela-indicacoes td, .tabela-indicacoes th {
    font-size: 13px;
    padding: 8px;
  }

  .form-container form { gap: 10px; }
}
.search-area {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
}

.search-form {
    width: 100%;
    display: flex;
    justify-content: center;
	margin-top:100px;
}

.autocomplete-container {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #777;
}

#search {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

/* Área de sugestões */
.autocomplete-items {
    position: absolute;
    top: 48px;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f5f5f5;
}