:root {
  color-scheme: light dark;
  --surface-border: rgba(127, 127, 127, 0.25);
  --surface-card: rgba(127, 127, 127, 0.08);
  --surface-box: rgba(255, 255, 255, 0.04);
  --text-strong: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans";
  line-height: 1.5;
  background: radial-gradient(circle at top, rgba(46, 204, 113, 0.08), transparent 35%);
}

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.card {
  width: 100%;
  max-width: 820px;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: var(--surface-card);
  backdrop-filter: blur(2px);
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

p {
  margin: 10px 0;
  opacity: 0.9;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(127, 127, 127, 0.12);
  font-size: 14px;
  margin: 10px 0 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}

.box {
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: var(--surface-box);
}

.box h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

a.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  text-decoration: none;
  font-weight: 600;
  background: rgba(127, 127, 127, 0.12);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

a.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

a.btn.primary {
  background: rgba(46, 204, 113, 0.18);
}

footer {
  margin-top: 22px;
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.muted {
  opacity: 0.8;
}

@media (max-width: 560px) {
  .card {
    padding: 22px;
  }

  h1 {
    font-size: 24px;
  }
}

/* ===== Status page additions ===== */

.statusDot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
  flex:0 0 auto;
}

.statusDot.pending{
  background:#888;
  box-shadow:0 0 0 4px rgba(136,136,136,.2);
}

.statusDot.ok{
  background:#2ecc71;
  box-shadow:0 0 0 4px rgba(46,204,113,.2);
}

.statusDot.bad{
  background:#ef4444;
  box-shadow:0 0 0 4px rgba(239,68,68,.2);
}

.endpointBox .endpointHeader{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.endpointBox .endpointUrl a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
  word-break:break-all;
}

.endpointBox .endpointResult{
  margin-top:10px;
}
