:root {
  --bg: #0b0e14;
  --panel: #111520;
  --muted: #8a9bb7;
  --text: #e6edf3;
  --accent: #3b82f6;
  --border: #223046;
  --danger: #ef4444;
}

* { 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";
  background: var(--bg);
  color: var(--text);
}

#app { max-width: 1200px; margin: 0 auto; padding: 24px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  margin: 10vh auto 0;
}

.card .actions { display: flex; justify-content: flex-end; gap: 8px; }

label { display: block; margin: 12px 0 6px; color: var(--muted); }
input[type="password"], input[type="search"], input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f1421;
  color: var(--text);
}

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  cursor: pointer;
}

.error { color: var(--danger); min-height: 20px; }
.hidden { display: none; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.toolbar .left { display: flex; align-items: center; gap: 12px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stats .stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.table-wrapper { overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
thead th { position: sticky; top: 0; background: #101522; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .right { display: flex; gap: 8px; flex-wrap: wrap; }
}


