/* Reset / layout base */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;         /* bloqueia scroll horizontal */
  -webkit-overflow-scrolling: touch; /* scroll suave iOS */
  touch-action: manipulation;        /* permite colar no PWA */
  overscroll-behavior-x: contain; /* evita scroll “quebrado” no eixo X */
  height: 100vh;
  width: 100vw;               /* força largura total da viewport */
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
}

header .title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
}

/* Main: espaço abaixo do header */
main {
  margin-top: 10px;  
  flex: 1;
  overflow-y: auto;
  display: block; /* para empilhar filhos normalmente */  
  padding: 20px;    
  box-sizing: border-box;
  background: #fff;
}


/*add venda btn editar*/
.badge-pagamento {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: bold;
}

.badge-pagamento.pendente {
  background: #ffe0e0;
  color: #b30000;
}

.badge-pagamento.pago {
  background: #e0f4e8;
  color: #1f7a3d;
}
.acoes-venda {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.acoes-venda button {
  padding: 6px 8px;
  cursor: pointer;
}

/*dashboard*/
/* =========================
   TOPO / FILTROS
========================= */

.dashboard-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* Bloco de filtros à direita */
.filtros-direita {
  display: flex;
  align-items: center;
  gap: 8px;

  width: fit-content;
  margin-left: auto;
  margin-bottom: 10px;
}

/* Selects e inputs NÃO esticam */
.filtros-direita select,
.filtros-direita input[type="date"] {
  width: auto;
  max-width: 160px;

  padding: 6px 8px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  box-sizing: border-box;
}

/* Select do gráfico um pouco menor */
#agrupamentoGrafico {
  max-width: 120px;
}

/* =========================
   DASHBOARD / CARDS
========================= */

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555;
}

.card p {
  font-size: 26px;
  font-weight: bold;
}

/* =========================
   CORES DOS CARDS
========================= */

.total-entregas p {
  color: #1565c0;
}

.total-despesas p {
  color: #c62828;
}

.total-receber p {
  color: #ef6c00;
}

.lucro p {
  color: #2e7d32;
}

/* ===== HEADER ===== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

/* ===== FILTROS ===== */
.filtros-direita {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filtros-direita select,
.filtros-direita input[type="date"] {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  background: #fff;
}

/* ===== CARDS ===== */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.card {
  background: linear-gradient(180deg, #ffffff, #f9f9f9);
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
}

.card p {
  font-size: 28px;
  font-weight: 700;
}

/* cores */
.total-entregas p { color: #1565c0; }
.total-receber p  { color: #ef6c00; }
.total-despesas p { color: #c62828; }
.lucro p          { color: #2e7d32; }

/* ===== GRÁFICO ===== */
.grafico-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.grafico-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.grafico-header h3 {
  font-size: 16px;
  color: #444;
}




/*dashboard*/





#search-container {
  margin-left: auto;      /* joga para a direita */
  display: flex;
  align-items: center;
}

/* ajusta altura e alinhamento do campo */
#search-container input[type="text"] {
  padding: 8px 10px;       /* altura interna */  
  font-size: 14px;         /* tamanho uniforme */
}
#search-container input[type="text"],
#search-container button {
  margin-top: 15px;   /* antes era 2px, aumente aqui */
}

/* ajusta o botão da pesquisa */
#search-container button {
  display: flex;           /* garante centralização */
  align-items: center;     /* centraliza verticalmente */
  justify-content: center; /* centraliza horizontalmente */
  padding: 0 10px;
  font-size: 16px;         /* tamanho do ícone */
  height: 32px;            /* mesma altura do input */  
}

#filters-container {
  margin-top: 60px; /* espaço do header */
  padding: 10px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-main {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 20px;
}

.search-main input {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.search-main button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 4px;
  background-color: #3b99b3;
  color: #fff;
  cursor: pointer;
}

.search-filters select {
  min-width: 200px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #ccc;
  padding: 0 8px;
}
#searchFilters {
  display: none;
  flex: 1 1 auto;      /* cresce até ocupar toda a linha */
  gap: 8px;
  flex-wrap: wrap;      /* permite quebrar para a linha de baixo quando faltar espaço */
  overflow-x: visible;  /* não force scroll horizontal aqui */
}

#searchFilters select {
  flex: 1 1 0;          /* reparte igualmente */
  min-width: 160px;     /* largura mínima para não ficar apertado demais */
  width: auto;          /* evita travar largura */
  min-height: 36px;
  box-sizing: border-box;
  /* truque importante em itens flex para permitir encolher sem overflow */
  min-inline-size: 0;
}

/* 3) Quando mostrar, deixa altura suficiente (pode animar sem cortar) */
#searchFilters.show {
  max-height: 100vh;    /* em vez de 60/200px */
  transition: max-height 0.25s ease;
  display: flex;          /* aparece em linha */
}

#filters-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-filters {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;   /* padrão desktop */
  overflow-x: auto;
}
@media (max-width: 768px) {
  #searchFilters select {
    flex: 1 1 100%;
    min-width: 0;       /* deixa encolher bem no mobile */
  }
}



/* ============================
   FORMULÁRIO DE PEDIDO (addorder)
   ============================ */


/* Container principal do form */
#order-form {
  width: 100%;
  max-width: clamp(600px, 80vw, 1500px);
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* campos do form (genérico) */
form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
  font-size: 14px;
  color: #444;
  margin-top: 15px;
  margin-bottom: 5px;
  display: block;
  text-align: left;
}

input,
select,
button,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 3px;
  border: 1px solid #ddd;
  box-sizing: border-box;
  margin-bottom: 15px;
}

textarea {
  height: 100px;
  resize: vertical;
}

img, table, .container {
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}




/*relatorio */
 /* Estilo para o contêiner do total */
.total-info {
    margin-top: 20px;
    font-weight: bold;
}

/* Ajuste para o contêiner da tabela */
#table-container {
    width: 100%;
    overflow-x: auto; /* Permite o scroll horizontal */
    max-height: 400px; /* Ajuste a altura máxima conforme necessário */
    position: relative; /* Para o efeito de fixação das colunas */
}

/* Estilo para a tabela */
#reportTable {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    display: block; /* Faz com que a tabela se comporte como um bloco */
}

/* Estilo para as células e cabeçalhos */
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Cabeçalho da tabela */
th {
    background-color: #f4f4f4;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Cor de fundo para linhas pares */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Cor de fundo para linha com hover */
tr:hover {
    background-color: #e9f1f7;
}

/* Estilos de destaque (valores não pagos) */
.highlight {
    background-color: #ffcccb;  /* Cor de fundo para destacar valores não pagos */
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    #reportTable {
        font-size: 12px;
        max-width: 100%;
        overflow-x: auto;
    }

    th, td {
        padding: 8px 10px;
    }
}

/* Estilo para a linha de total */
#reportTable tfoot tr {
    background-color: #f1f1f1; /* Cor de fundo para a linha de total */
    font-weight: bold;
}

#reportTable tfoot td {
    text-align: center;
    padding: 12px 15px;
    border-top: 2px solid #ddd;
}

/* Estilo para os totais */
#numCacambas, #totalAdicional, #valorTotal, #totalCacambas {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* Ajustes para a linha de totais */
#totalInfo {
    margin-top: 20px;
    padding: 10px 0;
    border-top: 2px solid #ddd;
    font-size: 16px;
    background-color: #f4f4f4;
}

/* Alinhamento do texto nas células da última linha (totais) */
#reportTable tfoot td {
    text-align: right;
    padding-right: 15px;  /* Ajusta o padding à direita para os totais */
}

/* Para garantir que as colunas tenham largura suficiente para os valores */
#reportTable td {
    white-space: nowrap; /* Evita quebra de texto nas células */
    overflow: hidden;
    text-overflow: ellipsis; /* Quando o texto for muito longo, ele será cortado com "..." */
}

 

 

/* botão padrão */
#order-form button,
button {
  width: 100%;
  padding: 12px;
  background-color: #3b99b3;
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: white;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}
button:hover { background-color: #2d7a8b; }

/* Container de autocomplete */
.autocomplete-container {
  position: relative;
  width: 100%;
}

/* Lista de resultados */
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.autocomplete-results li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.autocomplete-results li:hover {
  background-color: #f0f0f0;
}

.autocomplete-results li.selected {
  background-color: #007bff;
  color: white;
}

/* campo cliente */
#cliente_name {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* select motorista */
#driver_for_delivery {
  width: 100%;
  padding: 10px;
  border: 1px solid #c3d0d9;
  border-radius: 3px;
  font-size: 14px;
  margin-bottom: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
#driver_for_delivery:focus { border-color: #0099aa; outline: none; }

/* ============================
   DRAWER (menu lateral)
   ============================ */
.drawer {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  transition: left 0.3s ease;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.drawer.open { left: 0; }

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.drawer-header .logo {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
}

.drawer-menu {
  flex: 1;
  overflow-y: auto;
  padding-top: 15px; /* espaço entre header e menu */
}
.drawer-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.drawer-menu a.active {
  background: #e9f3ff;
  border-left: 3px solid #007bff;
}

/* overlay do drawer */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: none;
  z-index: 2;
}
.overlay.show { display: block; }

/* ============================
   LISTA DE ENTREGAS (list-item)
   ============================ */

.list-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
  background-color: #fff;
  margin-bottom: 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: background-color 0.2s ease;
}

.list-item:hover { background-color: #f0f8ff; }

.list-item .name {
  font-weight: 700;
  font-size: 18px;
  color: #222;
  margin-bottom: 6px;
}

.list-item .row {
  display: flex;
  justify-content: space-between;
}

.list-item .col-left {
  flex: 1;
}

.list-item .col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 120px; /* ajusta conforme o conteúdo */
}

.list-item .address,
.list-item .phone,
.list-item .payment_method {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.list-item .details {
  font-size: 13px;
  font-style: italic;
  color: #666;
  margin-bottom: 6px;
}

.list-item.troca {
  background-color: #cce7ff;
}

.list-item.troca:hover {
  background-color: #99d0ff; /* azul um pouco mais forte no hover */
}
.unpaid {
  color: #c62828; /* vermelho escuro */
  font-weight: bold;
}


h3.hoje {
  color: green;
  font-weight: bold;
}

/* Responsivo (mobile) */
@media (max-width: 600px) {
  .list-item { padding: 10px 15px; }
  .list-item .name { font-size: 16px; }
  .list-item .address,
  .list-item .phone,
  .list-item .payment_method,
  .list-item .details { font-size: 13px; }
}

/* ============================
   LOGIN (tela inteira)
   ============================ */
.login-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e4e7ea;
  z-index: 9999;
}

/* Esconder header/menu/nav quando tela de login ativa */
body.login-active header,
body.login-active .drawer,
body.login-active nav {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body:not(.login-active) header,
body:not(.login-active) .drawer,
body:not(.login-active) nav {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.login-box {
  background: #fff;
  border: 1px solid #c3d0d9;
  border-radius: 6px;
  padding: 30px 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  width: 320px;
  max-width: 90%;
  box-sizing: border-box;
  text-align: center;
}
.login-box h2 {
  margin-bottom: 20px;
  color: #006d7b;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  border-bottom: 1px solid #c3d0d9;
  padding-bottom: 10px;
}
.login-box label { display:block; margin-top:15px; margin-bottom:5px; text-align:left; }
.login-box input[type="email"],
.login-box input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c3d0d9;
  border-radius: 3px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.login-box input:focus { border-color:#0099aa; outline:none; }
.login-box button { margin-top:20px; width:100%; background:#3b99b3; padding:10px 0; color:#fff; border-radius:3px; }
.login-error {
  margin-top: 15px;
  color: #c03434;
  font-weight: bold;
  text-align: center;
  display: none;
}

/* ============================
   MODAL / MENSAGENS (ios/android)
   ============================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  animation: fadeIn 0.25s ease forwards;
}

/* Keyframes usados */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideUpIos { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* máscara escura */
  display: none; /* escondido por padrão */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px; /* para não grudar nas bordas da tela */
  box-sizing: border-box;
}

.modal-container.active {
  display: flex; /* mostra o modal */
}

/* ===== Caixa do modal ===== */
.modal-box {
  width: 80%;
  max-width: 320px;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* iOS style modal */
.modal-box.ios {
  animation: slideUpIos 0.3s ease;
}

.modal-box.ios p {
  margin: 20px;
  font-size: 17px;
  color: #111;
  line-height: 1.4;
}

.modal-box.ios .modal-buttons {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ccc;
  margin-top: 0;
}

.modal-box.ios .modal-buttons button {
  padding: 20px 0 20px 0;  /* botao de baixo*/
  margin: 0px 0 0px 0; /* botao de cima*/
  font-size: 17px;
  border: none;
  background: none;
  border-top: 1px solid #ccc; 
  transition: background 0.2s;
  cursor: pointer;
}

.modal-box.ios .modal-buttons button:first-child {
  border-top: none; /* remove linha do topo do primeiro botão */
}

.modal-box.ios .modal-buttons button:active {
  background: rgba(0, 0, 0, 0.1);
}


/* cores padrão iOS */
.ios-cancel { color: #007aff;}
.ios-default { color: #007aff;}
.ios-destructive { color: #ff3b30;}

/* classes de botão Android (dinâmico) */
.android-cancel { background: #ddd; color: #333; }
.android-destructive { background: #e53935; color: #fff; }
.android-default { background: #007bff; color: #fff; }

/* Android style modal */
.modal-box.android { animation: slideUp 0.25s ease; }
.modal-box.android p { margin: 10px 0; font-size: 16px; color: #222; }
.modal-box.android .modal-buttons { display:flex; justify-content:flex-end; gap:10px; padding-top: 15px; margin-top: 20px; border-top: 1px solid #ccc;}
.modal-box.android .modal-buttons button { padding:10px 20px; border:none; border-radius:6px; font-size:14px; transition:opacity 0.2s; }
.modal-box.android .modal-buttons button:active { opacity:0.8; }

.modal-box select.modal-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  max-width: 320px;
  padding: 12px 44px 12px 16px;

  font-size: 17px;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #000;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 14px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  outline: none;

  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="12" viewBox="0 0 20 20" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M7 7l3 3 3-3z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  transition: border-color 0.3s ease;
}

.modal-box select.modal-select:focus {
  border-color: #007aff;
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.5);
  background-color: #fff;
}

/* Estilo Android */
body.android .modal-box select.modal-select {
  /* estilo Android */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  max-width: 320px;
  padding: 10px 16px;
  font-size: 16px;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #212121;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;

  background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  transition: border-color 0.3s ease;
}

body.android .modal-box select.modal-select:focus {
  border-color: #3ddc84; /* verde Android */
  outline: none;
}


.bottom-button {
  display: block;
  margin: 20px auto;    /* centraliza e afasta do conteúdo */
  margin-bottom: 60px;    /* afasta mais da parte inferior */
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #ddd;
  z-index: 10;
}

/* ============================
   NAV (rodapé)
   ============================ */
nav {
  position: fixed;
  bottom: 0px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: white;
  border-top: 1px solid #ddd;
  padding: 5px 0;
  z-index: 5;
  height: 50px;
}

@media (max-width: 768px) {
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: white;
    border-top: 1px solid #ddd;
    padding: 10px 0;  /* Aumenta o padding para dar mais espaço vertical */
    z-index: 5;
    height: 80px; /* Aumenta a altura do menu */
  }
  main {
    margin-bottom: 80px; /* Evita que o conteúdo se sobreponha ao menu inferior */
  }
}

nav a {
  text-align: center;
  flex: 1;
  text-decoration: none;
  color: #666;
  font-size: 12px;
  padding: 5px 0;
}
nav a.active {
  color: #007bff;
  font-weight: bold;
}
nav a span {
  display: block;
  font-size: 20px;
}

/* Remove o estilo padrão de links */
.whatsapp-link {
    text-decoration: none;  /* Remove a linha azul do link */
    display: inline-flex;   /* Garante que os itens fiquem na mesma linha */
    align-items: center;    /* Alinha verticalmente o ícone e o telefone */
    padding: 0;             /* Remove qualquer padding extra do link */
}

/* Estiliza o ícone do WhatsApp */
.whatsapp-icon {
    font-size: 1.5em;       /* Tamanho do ícone */
    margin-right: 8px;      /* Espaço entre o ícone e o número */
    color: #25D366;         /* Cor verde do WhatsApp */
}

/* Estiliza o texto do telefone */
.phone {
    font-size: 1em;         /* Tamanho do texto do telefone */
    margin: 0;              /* Remove margens extras do telefone */
    display: flex;          /* Usado para alinhamento */
    align-items: center;    /* Alinha o texto com o ícone */
    padding-top: 3px;       /* Ajuste para alinhar o texto ao centro verticalmente */
}


.whatsapp-icon:hover {
    color: #128C7E; /* Cor do WhatsApp ao passar o mouse */
}

.input-container-right {
  display: flex;
  align-items: center;
  position: relative;
}

#phone-right {
  flex-grow: 1;  /* Faz o input ocupar o espaço disponível */
  padding-right: 40px;  /* Deixa espaço para o ícone à direita */
}

.whatsapp-link-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;  /* Ajusta a posição do ícone à direita do campo de entrada */
  top: 6px;  /* Ajusta a posição do ícone à direita do campo de entrada */
  color: #25D366; /* Cor verde padrão do WhatsApp */
}

.whatsapp-icon-right {
  font-size: 1.5em;
  vertical-align: middle; /* Alinha o ícone verticalmente com o texto */
}
