:root {
  color-scheme: dark;
  font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
  background: #0f1115;
  color: #f4f4f6;
}

body {
  margin: 0;
  background: #0f1115;
  color: inherit;
}

header {
  padding: 24px 32px;
  background: #161a22;
  border-bottom: 1px solid #232838;
}

main {
  padding: 24px 32px 40px;
  display: grid;
  gap: 24px;
}

.card {
  background: #161a22;
  border: 1px solid #232838;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card h2 {
  margin-top: 0;
}

.muted {
  color: #9aa4b2;
  font-size: 0.95rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

button,
input,
textarea,
select {
  font: inherit;
  border-radius: 8px;
  border: 1px solid #2b3144;
  background: #0f1115;
  color: inherit;
  padding: 10px 12px;
}

button {
  cursor: pointer;
  background: #3b82f6;
  border: none;
  color: white;
  font-weight: 600;
}

button.secondary {
  background: #2b3144;
}

button.danger {
  background: #ef4444;
}

pre {
  background: #0b0d12;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  max-height: 320px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  box-sizing: border-box;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  background: #111827;
  border: 1px solid #2b3144;
}

.status-pill.online {
  color: #22c55e;
}

.status-pill.offline {
  color: #f97316;
}

.link-button {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.cta-button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.cta-button:hover {
  background: #2563eb;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #2b3144;
  background: #0f1115;
}

.stat-item strong {
  font-size: 1.15rem;
}
