/* =========================================================
   NekoLabs Status — pelengkap style.css (token & topbar dipakai ulang)
   ========================================================= */

.content { padding-bottom: 4rem; }

/* ---------- hero banner ---------- */

.status-hero { margin-top: 2rem; }

.hero-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.hero-text { flex: 1; min-width: 0; }

.hero-text h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

.hero-sub {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: "JetBrains Mono", monospace;
}

.hero-btn {
  border: 1px solid var(--border);
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-btn:disabled { opacity: 0.35; cursor: not-allowed; }

@media (max-width: 639px) {
  .hero-row { flex-wrap: wrap; padding: 1rem; }
}

/* ---------- dot status ---------- */

.dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-block;
}

.dot[data-state="wait"]   { background: var(--muted-foreground); animation: pulse 1.2s ease-in-out infinite; }
.dot[data-state="ok"]     { background: #16a34a; }
.dot[data-state="warn"]   { background: #d97706; }
.dot[data-state="down"]   { background: #dc2626; }

.dot-sm { width: 0.5rem; height: 0.5rem; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- group (kartu) ---------- */

.status-group {
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.group-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.group-title { font-weight: 700; font-size: 0.9375rem; }

.group-count {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.group-run {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
}

.group-run:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------- baris hasil ---------- */

.row {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.row:last-child { border-bottom: 0; }

.row .method {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 700;
}

.row .path {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row .ms {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  min-width: 3.5rem;
  text-align: right;
}

.row .note {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .row { grid-template-columns: 2.75rem minmax(0, 1fr) auto; }
  .row .note { display: none; }
}

.row-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  white-space: nowrap;
}

.row-state[data-state="wait"] { color: var(--muted-foreground); }
.row-state[data-state="ok"]   { color: var(--foreground); }
.row-state[data-state="warn"] { color: #92400e; }
.row-state[data-state="down"] { color: #991b1b; }

html.dark .row-state[data-state="warn"] { color: #fbbf24; }
html.dark .row-state[data-state="down"] { color: #f87171; }

/* ---------- footer ---------- */

.status-foot {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-foot p { margin: 0; max-width: 46rem; line-height: 1.6; }

.foot-links { margin-left: auto !important; white-space: nowrap; }

.foot-links a { color: var(--muted-foreground); }

html.dark .foot-links a { color: var(--muted-foreground); }

/* ---------- brand page indikator ---------- */

.brand-page {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  margin-left: 0.25rem;
}


/* probe report items */
.rp-path { flex: 1; min-width: 0; font-size: 0.7rem; }
.rp-note { color: var(--muted-foreground); font-size: 0.7rem; }
#probeReport .row { display: flex; align-items: center; gap: .5rem; padding: .375rem .5rem; border-top: 1px solid var(--border); }
#probeReport .row:first-child { border-top: none; }
