/* =========================
   Global base
   ========================= */

:root { color-scheme: light dark; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 16px;
}

.muted { opacity: .75; }

a { color: inherit; }

/* =========================
   Layout / cards
   ========================= */

.card {
  border: 1px solid rgba(127,127,127,.25);
  border-radius: 14px;
  padding: 18px;
  background: rgba(127,127,127,.06);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.footer {
  margin-top: 24px;
  font-size: 13px;
  opacity: .75;
}

/* =========================
   Buttons / forms
   ========================= */

.btn {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(127,127,127,.35);
  text-decoration: none;
}
.btn:hover { background: rgba(127,127,127,.12); }

label { display: block; margin: 10px 0 6px; }

input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(127,127,127,.35);
  background: transparent;
}

/* =========================
   Badges
   ========================= */

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(127,127,127,.35);
  line-height: 1;
  white-space: nowrap;
}

.badge.ok {
  background: rgba(27,127,58,.12);
  border-color: rgba(27,127,58,.35);
}

.badge.bad {
  background: rgba(176,0,32,.12);
  border-color: rgba(176,0,32,.35);
}

/* =========================
   Server cards
   ========================= */

.server-card {
  transition: background .12s ease, opacity .12s ease;
}

.server-card:hover {
  background: rgba(127,127,127,.08);
}

.server-offline { opacity: .92; }

/* =========================
   Server tables
   ========================= */

table.server-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

table.server-table th,
table.server-table td {
  text-align: left;
  padding: 10px 10px;
  border-top: 1px solid rgba(127,127,127,.18);
  vertical-align: top;
}

table.server-table th {
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  opacity: .8;
  white-space: nowrap;
}

/* =========================
   Responsive helpers
   ========================= */

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
}
