* {
  box-sizing: border-box;
}

:root {
  --azul: #2563eb;
  --azul-escuro: #1d4ed8;
  --verde: #059669;
  --verde-escuro: #047857;
  --vermelho: #dc2626;
  --vermelho-escuro: #b91c1c;
  --amarelo: #f59e0b;
  --amarelo-escuro: #d97706;
  --whatsapp: #25d366;
  --whatsapp-escuro: #1ebe5d;
  --cinza-texto: #4b5563;
  --borda: #e5e7eb;
  --branco: #ffffff;
  --preto: #0f172a;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 34px;
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(5, 150, 105, 0.12), transparent 35%),
    linear-gradient(135deg, #e8eefc, #f8fafc);
  color: #111827;
}

.app {
  max-width: 1120px;
  margin: 0 auto;
}

.cabecalho {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.marca-sistema {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.icone-sistema {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #059669);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

header h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: 0.5px;
  color: var(--preto);
}

header p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 16px;
}

.login-container {
  margin-top: 12px;
}

.login-card {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.login-info {
  padding: 42px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(5, 150, 105, 0.92)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 35%);
}

.tag-sistema {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-info h2 {
  margin: 28px 0 14px;
  font-size: 34px;
  line-height: 1.1;
}

.login-info p {
  margin: 0;
  color: #e0f2fe;
  line-height: 1.6;
  font-size: 16px;
}

.lista-beneficios {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}

.lista-beneficios div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lista-beneficios strong {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.lista-beneficios span {
  color: #f8fafc;
  font-weight: 600;
}

.login-acoes {
  padding: 38px;
}

.grid-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.form-box {
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.form-cadastro {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.form-box h3 {
  margin: 0 0 22px;
  font-size: 23px;
  color: var(--preto);
}

.card {
  background: var(--branco);
  padding: 28px;
  margin-bottom: 26px;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.card h2 {
  margin-top: 0;
  font-size: 26px;
  color: var(--preto);
}

.campo {
  margin-bottom: 17px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.campo-completo {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: #111827;
}

input {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--azul);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.campo-ajuda {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 12px;
}

button,
.btn-whatsapp {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: var(--azul);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

button:hover,
.btn-whatsapp:hover {
  background: var(--azul-escuro);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

button:active,
.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-secundario {
  background: var(--verde);
}

.btn-secundario:hover {
  background: var(--verde-escuro);
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.22);
}

.btn-google {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #cbd5e1;
}

.btn-google:hover {
  background: #f8fafc;
  color: #111827;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.google-logo {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: inline-flex;
}

.google-logo svg {
  width: 100%;
  height: 100%;
}

.btn-link {
  margin-top: 12px;
  background: transparent;
  color: var(--azul);
  padding: 9px;
  font-size: 14px;
  text-align: center;
}

.btn-link:hover {
  background: #eff6ff;
  color: var(--azul-escuro);
  box-shadow: none;
}

.texto-ajuda {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.btn-sair {
  width: auto;
  background: var(--vermelho);
  padding: 10px 18px;
}

.btn-sair:hover {
  background: var(--vermelho-escuro);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.btn-cancelar {
  margin-top: 10px;
  background: #6b7280;
}

.btn-cancelar:hover {
  background: #4b5563;
}

.btn-verificar {
  margin-top: 10px;
  background: var(--azul);
}

.btn-verificar:hover {
  background: var(--azul-escuro);
}

.box-verificacao {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #facc15;
  border-radius: 14px;
  background: #fefce8;
}

.box-verificacao h3 {
  margin-top: 0;
  color: #854d0e;
}

.box-verificacao p {
  color: #713f12;
  line-height: 1.5;
}

#statusLogin,
#statusApp {
  margin-top: 18px;
  font-weight: 800;
  color: #334155;
}

.topo-sistema {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

#usuarioLogado {
  margin: 0;
  color: #475569;
}

.area-pesquisa {
  margin-bottom: 22px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--borda);
  border-radius: 12px;
}

#contadorClientes {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 14px;
  color: #64748b;
}

.cliente {
  padding: 16px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  margin-bottom: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.cliente strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--preto);
}

.cliente span,
.info-extra {
  display: block;
  color: var(--cinza-texto);
  margin-bottom: 4px;
}

.data {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
}

.acoes-cliente {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn-whatsapp {
  width: auto;
  padding: 9px 13px;
  background: var(--whatsapp);
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-escuro);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.24);
}

.btn-editar {
  width: auto;
  padding: 9px 13px;
  background: var(--amarelo);
  font-size: 14px;
}

.btn-editar:hover {
  background: var(--amarelo-escuro);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.22);
}

.btn-excluir {
  width: auto;
  padding: 9px 13px;
  background: var(--vermelho);
  font-size: 14px;
}

.btn-excluir:hover {
  background: var(--vermelho-escuro);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22);
}

.oculto {
  display: none;
}

@media (max-width: 900px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-info {
    padding: 32px;
  }

  .grid-login,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .campo-completo {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  body {
    padding: 18px;
  }

  .marca-sistema {
    flex-direction: column;
    text-align: center;
  }

  header h1 {
    font-size: 30px;
  }

  .login-acoes,
  .login-info,
  .card {
    padding: 22px;
  }

  .login-card {
    border-radius: 22px;
  }

  .topo-sistema {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .btn-sair,
  .btn-whatsapp,
  .btn-editar,
  .btn-excluir {
    width: 100%;
  }

  .acoes-cliente {
    flex-direction: column;
  }
}


/* TABELA HORIZONTAL DE CLIENTES */
.area-pesquisa-topo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}

.area-pesquisa-campo {
  min-width: 0;
}

.btn-excel {
  width: auto;
  min-width: 190px;
  background: #0f766e;
  white-space: nowrap;
}

.btn-excel:hover {
  background: #115e59;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.tabela-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.tabela-clientes {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
  font-size: 14px;
}

.tabela-clientes thead {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.tabela-clientes th,
.tabela-clientes td {
  padding: 13px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
  color: #334155;
}

.tabela-clientes th {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.tabela-clientes tbody tr:hover {
  background: #f8fafc;
}

.tabela-clientes tbody tr:last-child td {
  border-bottom: none;
}

.tabela-clientes .col-nome {
  font-weight: 800;
  color: #0f172a;
}

.tabela-clientes .col-endereco {
  min-width: 240px;
}

.td-acoes {
  min-width: 250px;
  white-space: nowrap;
}

.btn-tabela {
  width: auto;
  padding: 8px 10px;
  margin-right: 6px;
  font-size: 13px;
  border-radius: 10px;
}

.td-acoes .btn-tabela:last-child {
  margin-right: 0;
}

.mensagem-lista {
  padding: 18px;
  border: 1px solid var(--borda);
  border-radius: 14px;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
}

@media (max-width: 900px) {
  .area-pesquisa-topo {
    grid-template-columns: 1fr;
  }

  .btn-excel {
    width: 100%;
  }
}


/* AJUSTE COMPACTO DA TABELA - MAIS COLUNAS VISÍVEIS NA TELA */
body {
  padding: 22px 18px;
}

.app {
  max-width: 1560px;
  width: 100%;
}

.card {
  padding: 22px;
}

#telaApp .card:last-child {
  padding: 24px 26px;
}

.area-pesquisa {
  padding: 14px 18px;
}

.area-pesquisa-topo {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}

.area-pesquisa input {
  padding: 12px 14px;
  font-size: 14px;
}

.btn-excel {
  min-width: 180px;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 14px;
}

.tabela-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tabela-clientes {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
  font-size: 10.5px;
  line-height: 1.25;
}

.tabela-clientes th,
.tabela-clientes td {
  padding: 8px 8px;
  vertical-align: middle;
  word-break: break-word;
}

.tabela-clientes th {
  font-size: 11px;
  line-height: 1.2;
}

.tabela-clientes .col-nome {
  font-size: 11px;
  line-height: 1.25;
}

.tabela-clientes .col-endereco {
  min-width: 0;
}

.tabela-clientes th:nth-child(1),
.tabela-clientes td:nth-child(1) {
  width: 12%;
}

.tabela-clientes th:nth-child(2),
.tabela-clientes td:nth-child(2) {
  width: 14%;
}

.tabela-clientes th:nth-child(3),
.tabela-clientes td:nth-child(3) {
  width: 10%;
}

.tabela-clientes th:nth-child(4),
.tabela-clientes td:nth-child(4) {
  width: 15%;
}

.tabela-clientes th:nth-child(5),
.tabela-clientes td:nth-child(5) {
  width: 8%;
}

.tabela-clientes th:nth-child(6),
.tabela-clientes td:nth-child(6) {
  width: 8%;
}

.tabela-clientes th:nth-child(7),
.tabela-clientes td:nth-child(7) {
  width: 13%;
}

.tabela-clientes th:nth-child(8),
.tabela-clientes td:nth-child(8) {
  width: 9%;
}

.tabela-clientes th:nth-child(9),
.tabela-clientes td:nth-child(9) {
  width: 11%;
}

.td-acoes {
  min-width: 0;
  white-space: nowrap;
}

.btn-tabela {
  padding: 6px 7px;
  margin-right: 4px;
  font-size: 10.5px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  body {
    padding: 18px;
  }

  .app {
    max-width: 100%;
  }

  .tabela-clientes {
    min-width: 1120px;
  }
}

/* AJUSTE FINAL - CAMPO DE PESQUISA E BOTÃO EXCEL ALINHADOS */
.area-pesquisa-topo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: start;
}

.area-pesquisa-campo {
  width: 100%;
  max-width: 1240px;
  min-width: 0;
}

.area-pesquisa-campo label {
  display: block;
  margin-bottom: 10px;
}

.area-pesquisa-campo input {
  width: 100%;
  height: 52px;
}

.btn-excel {
  width: 230px;
  min-width: 230px;
  height: 52px;
  padding: 0 16px;
  margin-top: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .area-pesquisa-topo {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .area-pesquisa-campo {
    max-width: 100%;
  }

  .btn-excel {
    width: 100%;
    min-width: 100%;
    margin-top: 0;
  }
}

