/**
 * WTSAT Painel — estilos (extraídos do index)
 */
:root {
  --bg-dark: #0b1220;
  --bg-surface: #121a2b;
  --glass: rgba(18, 26, 43, .6);
  --border: rgba(255, 255, 255, .08);
  --primary: #ef4444;
  --primary-2: #b91c1c;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --ring: rgba(239, 68, 68, .35);
}
html, body { height: 100%; }
body {
  color: var(--text);
  background:
    radial-gradient(1200px 800px at -10% -10%, rgba(239,68,68,.18), transparent 50%),
    radial-gradient(1000px 700px at 110% 10%, rgba(59,130,246,.16), transparent 50%),
    radial-gradient(900px 700px at 50% 120%, rgba(16,185,129,.12), transparent 50%),
    var(--bg-dark);
  font-family: 'Inter', system-ui, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
}
.text-text-muted { color: var(--muted); }
.text-text-light { color: var(--text); }
.border-custom { border-color: var(--border); }
.glass-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}
.glass-header {
  background: linear-gradient(180deg, rgba(2,6,23,.65), rgba(2,6,23,.45));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.btn-primary {
  background-image: linear-gradient(90deg, var(--primary-2), var(--primary));
  box-shadow: 0 10px 24px rgba(239,68,68,.25);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(239,68,68,.35); }
.form-input, .form-select {
  background: rgba(2,8,23,.45);
  border: 1px solid var(--border);
  color: var(--text);
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.form-input:focus, .form-select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
  background: rgba(2,8,23,.6);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M6 8l4 4 4-4' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right .65rem center; background-size: 1.25rem; padding-right: 2.2rem;
}
.nav-item.active { color: #fff; border-bottom: 2px solid var(--primary); }
.table-row { border-bottom: 1px solid var(--border); }
.table-row:hover { background: rgba(255,255,255,.03); }
.action-btn { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px; font-size: .8rem; font-weight: 600; gap: .4rem; }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
}
.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
.toolbar-btn:hover { background: rgba(255,255,255,.08); }
.toolbar-btn:disabled { opacity: .5; cursor: not-allowed; }
.toolbar-btn-danger {
  border-color: rgba(239, 68, 68, .45);
  color: #fecaca;
  background: rgba(127,29,29,.25);
}
.toolbar-btn-danger:hover { background: rgba(127,29,29,.38); }
.row-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #ef4444;
  cursor: pointer;
}
.table-row.selected { background: rgba(239,68,68,.08); }
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.brand-glow { filter: drop-shadow(0 6px 18px rgba(239,68,68,.25)); }

.modal-backdrop { background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.select-all { user-select: all; }

/* Scrollbar suave (aba Logs) */
.custom-scrollbar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
