/* ============================================================
   Vortex Applications — painel de configuração de bots

   Paleta (extraída da marca oficial):
     bg          #050505  (preto quase puro, igual ao fundo da logo)
     surface     #121014
     surface-2   #18151B
     surface-3   #211D26  (hover)
     borda       #2A2530
     accent      #9B3EFB  (roxo/violeta da marca, topo do gradiente do "V")
     accent-forte #6D23D6 (base do gradiente do "V")
     sucesso     #3ECF8E
     aviso       #F5B056
     perigo      #F4667E
     texto       #FAFAFA (branco do wordmark)
     muted       #93909C

   Tipografia: Space Grotesk (display) + Inter (corpo/UI)
   ============================================================ */

:root {
  --bg: #050505;
  --bg-2: #0A090C;
  --surface: #121014;
  --surface-2: #18151B;
  --surface-3: #211D26;
  --borda: #2A2530;
  --borda-forte: #3A3341;

  --accent: #9B3EFB;
  --accent-clara: #B978FF;
  --accent-forte: #6D23D6;
  --accent-soft: #9B3EFB2a;
  --accent-2: #3ECF8E;
  --accent-2-soft: #3ECF8E2a;

  --aviso: #F5B056;
  --aviso-soft: #f5b0562a;
  --texto: #FAFAFA;
  --muted: #93909C;
  --muted-2: #5E5A66;
  --perigo: #F4667E;
  --perigo-soft: #f4667e26;

  --raio: 14px;
  --raio-peq: 9px;
  --sombra: 0 20px 60px -20px #000000c0;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html, body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 15% -8%, #9b3efb22, transparent 60%),
    radial-gradient(700px 500px at 100% 10%, #6d23d618, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--texto);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.001em;
}

h1, h2, .wordmark { font-family: 'Space Grotesk', sans-serif; }

a { color: inherit; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 15px;
}

::selection { background: var(--accent-soft); color: var(--texto); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--borda-forte); }

/* ── Marca ─────────────────────────────────────────────────── */

.logo-mark {
  width: 44px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px #9b3efb70);
}
.logo-mark-pequena { width: 26px; filter: drop-shadow(0 0 10px #9b3efb70); }

.wordmark {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--texto);
}
.wordmark-pequena { font-size: 17px; }

/* ── Tela de login ─────────────────────────────────────────── */

.tela-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.tela-login[hidden] { display: none; }

.vortex-mark {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent, var(--accent-soft), transparent 35%, #6d23d61f, transparent 65%);
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: girar 40s linear infinite;
  pointer-events: none;
}

@keyframes girar {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--surface), var(--surface) 60%, var(--surface-2));
  border: 1px solid var(--borda);
  border-radius: 22px;
  padding: 48px 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sombra), inset 0 1px 0 #ffffff0d;
}

.login-card .logo-mark { margin: 0 auto 20px; }

.subtitulo {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 12px 0 28px;
}

/* ── Botões ────────────────────────────────────────────────── */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .1s ease, opacity .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.botao:active { transform: scale(0.97); }
.botao[hidden] { display: none; }

.botao-primario {
  background: linear-gradient(135deg, var(--accent), var(--accent-forte));
  color: #fff;
  width: 100%;
  box-shadow: 0 8px 24px -8px #9b3efb70;
}
.botao-primario:hover { opacity: 0.94; box-shadow: 0 10px 28px -6px #9b3efb95; transform: translateY(-1px); }

.botao-discord svg { flex-shrink: 0; }

.botao-fantasma {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--borda);
}
.botao-fantasma:hover { color: var(--texto); border-color: var(--borda-forte); background: var(--surface-2); }
.botao-fantasma.perigo-texto { color: var(--perigo); }
.botao-fantasma.perigo-texto:hover { background: var(--perigo-soft); border-color: var(--perigo); }

.botao-voltar { margin-bottom: 20px; padding: 8px 14px; font-size: 13.5px; }

.botao:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .aba:focus-visible, .subaba:focus-visible {
  outline: 2px solid var(--accent-clara);
  outline-offset: 2px;
}

.texto-erro {
  color: var(--perigo);
  font-size: 13.5px;
  margin-top: 14px;
  background: var(--perigo-soft);
  border: 1px solid #f4667e40;
  border-radius: 9px;
  padding: 10px 12px;
}

.texto-aviso {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--surface-2);
  border: 1px solid var(--borda);
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 20px;
}
.texto-aviso code {
  background: var(--surface-3);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12.5px;
}

.aviso-sistema-indisponivel {
  color: var(--aviso);
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--aviso-soft);
  border: 1px solid #f5b05640;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.titulo-bloco {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.titulo-bloco:first-of-type { margin-top: 0; }

.botao-secundario {
  background: var(--surface-2);
  color: var(--texto);
  border: 1px solid var(--borda);
}
.botao-secundario:hover { background: var(--surface-3); border-color: var(--borda-forte); }
.botao-secundario:disabled, .botao-primario:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Bloco de gerenciamento (status/ligar/desligar/reiniciar) ── */

.bloco-gerenciamento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--borda);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

/* ── Zona de perigo (deletar app) ── */
.bloco-zona-perigo {
  background: var(--perigo-soft);
  border: 1px solid #f4667e40;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.titulo-bloco-perigo { color: var(--perigo); margin-top: 0; }
.zona-perigo-texto {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
}

.botao-perigo {
  background: var(--perigo);
  color: #fff;
}
.botao-perigo:hover { opacity: 0.9; }
.botao-perigo:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Modal genérico (usado hoje só na confirmação de deletar app) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #000000b3;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal-caixa {
  background: var(--surface);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 24px;
  max-width: 420px;
  width: 100%;
}
.modal-caixa-perigo { border-color: #f4667e40; }
.modal-titulo { margin: 0 0 12px; font-size: 17px; }
.modal-texto {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}
.modal-texto strong { color: var(--texto); }
.input-modal {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--borda);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--texto);
  font-size: 14px;
  margin-bottom: 10px;
}
.input-modal:focus-visible { outline: 2px solid var(--accent-clara); outline-offset: 2px; }
.modal-botoes {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.modal-botoes .botao { width: auto; flex: 1 1 auto; }

.ger-status {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.ger-status.ger-online { color: var(--accent-2); }
.ger-status.ger-offline { color: var(--perigo); }

.ger-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ger-botoes .botao { width: auto; flex: 1 1 auto; }

/* ── App logado ────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--borda);
  position: sticky;
  top: 0;
  background: #0a0c13cc;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-usuario { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.topbar-usuario #usuario-nome { color: var(--texto); font-weight: 500; }

.conteudo {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.titulo-secao {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.estado-vazio {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--borda-forte);
  border-radius: var(--raio);
}
.estado-vazio h2 { color: var(--texto); margin-bottom: 8px; }

/* ── Grid de apps ──────────────────────────────────────────── */

.grid-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card-app {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 20px;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  text-align: left;
  color: var(--texto);
  font-family: inherit;
}
.card-app:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px #9b3efb55;
}
.card-app:disabled, .card-app.desabilitado {
  cursor: not-allowed;
  opacity: 0.5;
}
.card-app:disabled:hover, .card-app.desabilitado:hover { border-color: var(--borda); transform: none; box-shadow: none; }

.card-app-nome { font-weight: 600; margin-bottom: 4px; }
.card-app-tipo { font-size: 13px; color: var(--muted); }
.cabecalho-secao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cabecalho-secao .titulo-secao { margin-bottom: 0; }

/* ── Abas ──────────────────────────────────────────────────── */

.abas {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--borda);
  margin-bottom: 24px;
}
.aba {
  background: none;
  border: none;
  color: var(--muted);
  padding: 10px 4px;
  margin-right: 22px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.aba:hover { color: var(--texto); }
.aba-ativa { color: var(--texto); border-bottom-color: var(--accent); }

/* ── Menu de navegação (hambúrguer + categorias) ─────────────── */

.nav-abas-wrap {
  position: relative;
  margin-bottom: 24px;
}

.btn-hamburguer {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--borda);
  border-radius: var(--raio-peq);
  padding: 10px 14px;
  background: var(--surface);
  width: 100%;
  max-width: 320px;
  justify-content: flex-start;
}
.btn-hamburguer:hover { background: var(--surface-2); border-color: var(--borda-forte); }
.btn-hamburguer #aba-atual-label { font-weight: 600; color: var(--texto); }
.hamburguer-seta { margin-left: auto; color: var(--muted); font-size: 12px; }

.hamburguer-icone {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 18px;
}
.hamburguer-icone span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--texto);
  border-radius: 2px;
}

.menu-abas {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 100%;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--borda-forte);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 8px;
}

.categoria-abas {
  border-bottom: 1px solid var(--borda);
}
.categoria-abas:last-child { border-bottom: none; }
.categoria-abas summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  user-select: none;
}
.categoria-abas summary::-webkit-details-marker { display: none; }
.categoria-abas[open] summary { color: var(--texto); }
.categoria-abas .aba {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px 9px 22px;
  margin: 0;
  border-radius: var(--raio-peq);
  border-bottom: none;
  font-size: 14px;
}
.categoria-abas .aba:hover { background: var(--surface-2); }
.categoria-abas .aba-ativa { background: var(--accent-soft); color: var(--accent-clara); border-bottom: none; }

/* ── Tutoriais ─────────────────────────────────────────────── */

.tutoriais-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tutoriais-lista .tutoriais-cards:first-child { margin-top: 0; }
.tutoriais-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.tutoriais-card:hover { border-color: var(--accent); background: var(--surface-2); }
.tutoriais-card, .tutoriais-card * { color: var(--texto); font-family: inherit; }
.tutoriais-card-titulo { font-weight: 600; margin: 0 0 4px; }
.tutoriais-card-desc { color: var(--muted); font-size: 13.5px; margin: 0; }

.tutoriais-detalhe-nav { display: flex; gap: 8px; margin-bottom: 16px; }
.tutoriais-texto {
  background: var(--surface);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 20px;
  line-height: 1.65;
  font-size: 14.5px;
  white-space: pre-line;
}
.tutoriais-texto strong { color: var(--accent-clara); }

/* ── Formulários inline ────────────────────────────────────── */

.form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 16px;
}
.form-inline input, .form-inline select {
  background: var(--surface-2);
  border: 1px solid var(--borda);
  border-radius: var(--raio-peq);
  padding: 10px 12px;
  color: var(--texto);
  transition: border-color .15s ease, background .15s ease;
}
.form-inline input::placeholder, .form-inline textarea::placeholder { color: var(--muted-2); }
.form-inline input:focus, .form-inline select:focus { border-color: var(--accent); outline: none; background: var(--surface-3); }
.form-inline #np-nome { flex: 2; min-width: 160px; }
.form-inline #np-valor { flex: 1; min-width: 110px; }
.form-inline #np-descricao { flex: 2; min-width: 160px; }
.form-cupom #nc-nome { flex: 2; min-width: 160px; text-transform: uppercase; }
.form-cupom select { flex: 0 0 70px; }
.form-cupom input { flex: 1; min-width: 90px; }

/* ── Lista de itens (produtos/cupons) ─────────────────────── */

.lista-itens { display: flex; flex-direction: column; gap: 10px; }

.item-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 14px 18px;
  transition: border-color .15s ease;
}
.item-linha:hover { border-color: var(--borda-forte); }

.item-info { min-width: 0; }
.item-titulo { font-weight: 600; font-size: 15px; }
.item-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.item-acoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.selo {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.selo-ativo { background: var(--accent-2-soft); color: var(--accent-2); }
.selo-inativo { background: var(--surface-2); color: var(--muted); }

.icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--texto); }
.icon-btn.perigo:hover { background: var(--perigo-soft); color: var(--perigo); }

.vazio {
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
  text-align: center;
}
.vazio-pequeno { padding: 8px 0; text-align: left; font-size: 13px; }

.form-inline textarea {
  background: var(--surface-2);
  border: 1px solid var(--borda);
  border-radius: var(--raio-peq);
  padding: 10px 12px;
  color: var(--texto);
  font-family: inherit;
  flex: 1 1 100%;
  resize: vertical;
  transition: border-color .15s ease, background .15s ease;
}
.form-inline textarea:focus { border-color: var(--accent); outline: none; background: var(--surface-3); }

.check-inline {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--texto);
  padding: 0 4px;
}
.check-inline input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }

.dica {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
  background: var(--surface);
  border: 1px solid var(--borda);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--raio-peq) var(--raio-peq) 0;
  padding: 10px 14px;
}

/* ── Subabas (dentro de Clientes/Promoções) ──────────────────── */
.subabas {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.subaba {
  background: var(--surface-2);
  border: 1px solid var(--borda);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.subaba:hover { color: var(--texto); border-color: var(--borda-forte); }
.subaba-ativa { background: linear-gradient(135deg, var(--accent), var(--accent-forte)); border-color: transparent; color: #fff; }

/* ── Produtos com variações aninhadas ────────────────────────── */
.item-linha-bloco { flex-direction: column; align-items: stretch; }
.item-linha-topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.item-linha-pequena { padding: 10px 14px; }
.sub-bloco {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--borda);
}
.sub-bloco-titulo { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.sub-bloco .form-inline { margin-bottom: 0; }

/* ── Automações: campos condicionais por tipo + dias da semana ── */
.campo-automacao { display: contents; }
.campo-automacao[hidden] { display: none; }
.campo-automacao-full input, .campo-automacao-full textarea { flex: 1 1 100%; width: 100%; }
.dias-semana { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0; }
.dias-semana-label { font-size: 13px; color: var(--muted); margin-right: 4px; }

/* ── Afiliados ────────────────────────────────────────────── */
.selo-pendente { background: var(--aviso-soft); color: var(--aviso); }
.selo-banido { background: var(--perigo-soft); color: var(--perigo); }

/* ── Disputas MED ─────────────────────────────────────────── */
.med-detalhe textarea { width: 100%; resize: vertical; margin-bottom: 10px; }
.med-foto-item { display: flex; align-items: center; gap: 12px; }
.med-foto-preview { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--borda); flex-shrink: 0; }
.med-acoes-envio { margin-top: 14px; }

/* ── Bot de Ticket ────────────────────────────────────────── */
#ticket-sem-servidor .form-inline { justify-content: center; max-width: 420px; margin: 20px auto 0; }
.form-painel-config .pc-nome,
.form-painel-config .pc-titulo { flex: 2; min-width: 160px; }
.form-painel-config .pc-cargo { flex: 1; min-width: 160px; }
.form-painel-config .pc-tipo { flex: 0 0 160px; }
.form-painel-config input[type="color"] {
  flex: 0 0 46px;
  width: 46px;
  height: 40px;
  padding: 3px;
  cursor: pointer;
}
.form-novo-botao .nb-label { flex: 2; min-width: 140px; }
.form-novo-botao .nb-categoria { flex: 1; min-width: 160px; }
.form-logs-painel input { flex: 1; min-width: 190px; }
#ticket-servidor-seletor-wrap { max-width: 320px; }
#ticket-servidor-seletor-wrap select { flex: 1; }
#ia-apikey-status { margin-bottom: 14px; }

/* ── Carteira ──────────────────────────────────────────────── */
.cart-saldo-bloco {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.cart-saldo-valor {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

/* ── Developer: tabela de todos os bots de todos os clientes ── */

.dev-busca { width: 100%; margin: 4px 0 18px; }

.dev-tabela {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dev-linha {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--borda);
  border-radius: var(--raio-peq);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.dev-linha-info { flex: 1 1 260px; min-width: 0; }
.dev-linha-nome { font-weight: 600; color: var(--texto); }
.dev-linha-meta { color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-all; }
.dev-linha-meta strong { color: var(--muted-2); }

.dev-badge {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--muted);
  border: 1px solid var(--borda-forte);
  margin-right: 6px;
}

.dev-badge-impersonando {
  vertical-align: middle;
  font-size: 12.5px;
  margin-left: 10px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-3));
  color: var(--accent);
  border-color: var(--accent);
}

.dev-linha-status { flex: 1 1 100%; font-size: 13px; color: var(--muted); }
.dev-linha-status.ger-online { color: var(--accent-2); }
.dev-linha-status.ger-offline { color: var(--perigo); }

.dev-linha-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dev-linha-acoes .botao {
  width: auto;
  padding: 7px 11px;
  font-size: 12.5px;
}

.modal-caixa-logs { max-width: 640px; width: 100%; }
.dev-logs-conteudo {
  background: var(--bg-2);
  border: 1px solid var(--borda);
  border-radius: var(--raio-peq);
  padding: 12px;
  max-height: 50vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  color: var(--muted);
  margin: 10px 0;
}

/* ── Responsivo ────────────────────────────────────────────── */

@media (max-width: 560px) {
  .topbar { padding: 14px 18px; }
  .conteudo { padding: 28px 16px 60px; }
  .item-linha { flex-direction: column; align-items: flex-start; }
  .form-inline input, .form-inline select { flex: 1 1 100% !important; }
  .dev-linha { flex-direction: column; align-items: stretch; }
}
