:root{
  --bg:#0f1320;
  --panel:#151a2c;
  --muted:#9aa4b2;
  --text:#e6edf3;
  --accent:#69a9ff;
  --border:rgba(255,255,255,.08);
  --green:#29d18c;
  --red:#ff6b6b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:radial-gradient(1200px 600px at 20% -10%, rgba(105,169,255,.08), transparent 60%) , var(--bg);
}

.container{
  /* mais espaço horizontal */
  max-width:min(1400px, 96vw);
  margin:0 auto;
  padding:32px 20px;
}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:24px;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}

/* Header */
.appbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;margin-bottom:16px;
}
.appbar h1{
  font-size:24px;margin:0;font-weight:700;letter-spacing:.2px;
}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(105,169,255,.12);
  border:1px solid rgba(105,169,255,.35);
  color:var(--accent);
  padding:6px 10px;border-radius:999px;font-size:12px;
}

/* Buttons */
.btn{
  line-height:1;
  padding:10px 14px;border-radius:12px;
  border:1px solid var(--border);
  background:#1a2036;color:var(--text);
  cursor:pointer;font-weight:600;
}
.btn:hover{filter:brightness(1.05)}
.btn.is-loading{opacity:.7;pointer-events:none}
.btn--primary{border-color:rgba(105,169,255,.35); background:linear-gradient(180deg,#1b2747,#1a2c52)}
.btn--danger{border-color:rgba(255,107,107,.35); background:linear-gradient(180deg,#2b1b1b,#3a1d1d); color:#ffd8d8}

/* Inputs */
.input, select{
  width:100%;padding:10px 12px;border-radius:12px;
  border:1px solid var(--border);
  background:#11172b;color:var(--text);
}
.input::placeholder{color:#8a93a3}
.input:focus, select:focus{outline:none; box-shadow:0 0 0 3px rgba(105,169,255,.20)}

/* Grid filters */
.filters{display:grid;grid-template-columns:2fr 1fr 1fr 120px; gap:10px; margin:16px 0}
@media (max-width:1024px){.filters{grid-template-columns:1fr 1fr}}

/* Tabs */
.tabs{display:flex; gap:6px; margin:12px 0 18px}
.tab{
  padding:8px 12px;border-radius:10px;cursor:pointer;
  border:1px solid var(--border); background:#11172b; color:#b8c2d1;font-weight:600;font-size:13px;
}
.tab.is-active{background:#1a2036;color:var(--text);border-color:rgba(105,169,255,.35)}

/* Table */
.table{width:100%;border-collapse:separate;border-spacing:0;margin-top:8px}
.table thead th{
  text-align:left;font-size:12px;color:var(--muted);font-weight:700;
  background:#0f162b;position:sticky;top:0; z-index:2;
  border-bottom:1px solid var(--border); padding:12px 12px;
}
.table tbody td{
  padding:12px 12px;border-bottom:1px solid var(--border); vertical-align:middle;
}
.table tbody tr:hover{background:rgba(255,255,255,.02)}

.status-select{
  width:100%;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#11172b;color:var(--text);
}

.footer{display:flex;align-items:center;justify-content:space-between; gap:10px; margin-top:12px; color:var(--muted); font-size:12px}



.status-select {

  border: 1px solid rgba(105,169,255,.6);

  background: #19213b;

  color: #e6edf3;

  box-shadow: 0 0 8px rgba(105,169,255,.3);

}

.status-select:focus {

  outline: none;

  border-color: #69a9ff;

  box-shadow: 0 0 10px rgba(105,169,255,.5);

}


/* Destaque do menu suspenso dos status (linhas) */

.status-select {

  border: 1px solid rgba(105,169,255,.6);

  background: #19213b;

  color: #e6edf3;

  box-shadow: 0 0 8px rgba(105,169,255,.3);

}

.status-select:focus {

  outline: none;

  border-color: #69a9ff;

  box-shadow: 0 0 10px rgba(105,169,255,.5);

}



/* Paginação */

.pager { display:flex; gap:8px; }

.pager .btn { padding:8px 12px; }


/* Botão WhatsApp na tabela (Simulações) */

.btn-wa{

  display:inline-flex;

  align-items:center;

  gap:8px;

  padding:6px 10px;

  border-radius:10px;

  border:1px solid rgba(46, 204, 113, .55);

  background: linear-gradient(180deg, #1c4d36, #229e63);

  color:#fff;

  text-decoration:none;

  font-weight:700;

  font-size:12px;

  box-shadow:0 2px 8px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;

  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;

}

.btn-wa:hover{

  filter:brightness(1.08);

  box-shadow:0 3px 10px rgba(34, 158, 99, .35), 0 0 0 1px rgba(255,255,255,.06) inset;

}

.btn-wa:active{ transform: translateY(1px); }

.btn-wa .ico{ font-size:14px; line-height:1; }

/* === Botão WhatsApp (versão harmonizada com o tema) === */

.btn-wa{

  display:inline-flex;

  align-items:center;

  gap:8px;

  padding:8px 12px;                    /* altura/espessura parecida com os selects */

  border-radius:12px;                   /* mesmo raio do tema */

  border:1px solid rgba(41,209,140,.35);/* usa --green com opacidade */

  background:linear-gradient(180deg, #17332a, #1d3f31); /* verde escuro, discreto */

  color:var(--text);

  text-decoration:none;

  font-weight:600;

  font-size:12px;                       /* igual às células */

  letter-spacing:.2px;

  box-shadow:

    0 1px 0 rgba(255,255,255,.06) inset, /* mesmo “shine” das cards */

    0 6px 16px rgba(0,0,0,.25);          /* sombra sutil do tema */

  transition: filter .15s ease, transform .05s ease, box-shadow .15s ease, border-color .15s ease;

}

.btn-wa:hover{

  filter:brightness(1.06);

  border-color: rgba(41,209,140,.55);

  box-shadow:

    0 1px 0 rgba(255,255,255,.08) inset,

    0 8px 20px rgba(41,209,140,.18);

}

.btn-wa:active{ transform: translateY(1px); }



.btn-wa .ico{

  width:16px; height:16px; line-height:16px;

  display:inline-grid; place-items:center;

  border-radius:50%;

  background:radial-gradient(circle at 30% 30%, #2ad18c 0%, #1a6a4e 100%);

  color:#0f1320;                         /* contraste no tema escuro */

  box-shadow:0 0 0 1px rgba(255,255,255,.05) inset;

  font-size:12px;

}

.btn-wa span:last-child{

  font-variant-numeric: tabular-nums;    /* números ficam mais estáveis no grid */

}


/* === Coluna CONTATO - SIMULACOES_NUMERO_OFF === */

.contato-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 220px;
}

/* select mais compacto */
.contato-select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 170px;
  padding: 4px 8px;
  font-size: 0.85rem;
}

/* botão de WhatsApp moderno e discreto */
.btn-wa-contato {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid #22c55e;
  background: rgba(34, 197, 94, 0.08);
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition:
    background-color 0.15s ease,
    transform 0.1s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
  color: #bbf7d0; /* verde clarinho */
}

.btn-wa-contato:hover {
  background-color: #22c55e;
  color: #020617; /* quase preto */
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4);
}

.btn-wa-contato:active {
  transform: translateY(0);
  box-shadow: none;
}


