/* ======================================================
   STATUS PAGE
====================================================== */

/* overall banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin-bottom: 14px;
}

.status-banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,.20);
  transition: background .3s ease, box-shadow .3s ease;
}

.status-banner--operational { border-color: rgba(34,197,94,.20);  background: rgba(34,197,94,.05); }
.status-banner--degraded    { border-color: rgba(245,158,11,.20); background: rgba(245,158,11,.05); }
.status-banner--outage      { border-color: rgba(239,68,68,.20);  background: rgba(239,68,68,.05); }

.status-banner--operational .status-banner-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.status-banner--degraded    .status-banner-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.status-banner--outage      .status-banner-dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.18); }

.status-banner-text {
  font-size: 14px;
  font-weight: 800;
  color: rgba(233,238,248,.90);
  flex: 1;
}

.status-banner--operational .status-banner-text { color: rgba(160,255,190,.95); }
.status-banner--degraded    .status-banner-text { color: rgba(255,215,120,.95); }
.status-banner--outage      .status-banner-text { color: rgba(255,160,160,.95); }

.status-banner-updated {
  font-size: 11px;
  font-weight: 600;
  color: rgba(233,238,248,.30);
  white-space: nowrap;
}

/* ── group ────────────────────────────────────────────── */

.status-group {
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}

/* group header */
.status-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background .12s ease;
}

.status-group-header:hover {
  background: rgba(255,255,255,.03);
}

.status-group-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-group-dot--up      { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.18); }
.status-group-dot--down    { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.18); }
.status-group-dot--pending { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.18); }

.status-group-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(233,238,248,.80);
}

.status-group-count {
  font-size: 11px;
  font-weight: 600;
  color: rgba(233,238,248,.30);
}

.status-group-chevron {
  font-size: 11px;
  color: rgba(233,238,248,.30);
  transition: transform .18s ease;
}

.status-group-header--open .status-group-chevron {
  transform: rotate(180deg);
}

/* group body */
.status-group-body {
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── monitor row ──────────────────────────────────────── */

.status-monitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  user-select: none;
  transition: background .10s ease;
  gap: 10px;
}

.status-monitor:last-of-type {
  border-bottom: none;
}

.status-monitor:hover {
  background: rgba(255,255,255,.025);
}

.status-monitor--open {
  background: rgba(255,255,255,.03);
  border-bottom-color: transparent;
}

.status-monitor-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--up      { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.18); }
.status-dot--down    { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.18); }
.status-dot--pending { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.18); }
.status-dot--unknown { background: rgba(255,255,255,.20); }

.status-monitor-name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(233,238,248,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-monitor-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.status-uptime {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(233,238,248,.35);
}

.status-uptime-val { font-weight: 800; }
.status-uptime-val--up   { color: rgba(34,197,94,.85); }
.status-uptime-val--mid  { color: rgba(245,158,11,.85); }
.status-uptime-val--down { color: rgba(239,68,68,.85); }

.status-label {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .03em;
}

.status-label--up      { border: 1px solid rgba(34,197,94,.30);  background: rgba(34,197,94,.08);  color: rgba(160,255,190,.90); }
.status-label--down    { border: 1px solid rgba(239,68,68,.30);  background: rgba(239,68,68,.08);  color: rgba(255,160,160,.90); }
.status-label--pending { border: 1px solid rgba(245,158,11,.30); background: rgba(245,158,11,.08); color: rgba(255,215,120,.90); }
.status-label--unknown { border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); color: rgba(233,238,248,.40); }

.status-monitor-chevron {
  font-size: 10px;
  color: rgba(233,238,248,.25);
  transition: transform .15s ease;
}

.status-monitor--open .status-monitor-chevron {
  transform: rotate(180deg);
}

/* ── detail panel ─────────────────────────────────────── */

.status-monitor-detail {
  padding: 12px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(0,0,0,.12);
}

.status-monitor-detail:last-child {
  border-bottom: none;
}

/* heartbeat bars */
.status-hb-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 32px;
  margin-bottom: 4px;
}

.status-hb-bar {
  flex: 1;
  border-radius: 2px;
  height: 100%;
  cursor: default;
  transition: opacity .1s ease;
}

.status-hb-bar:hover { opacity: .75; }

.status-hb-bar--up      { background: rgba(34,197,94,.70); }
.status-hb-bar--down    { background: rgba(239,68,68,.70); }
.status-hb-bar--pending { background: rgba(245,158,11,.50); }
.status-hb-bar--empty   { background: rgba(255,255,255,.06); }

.status-hb-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: rgba(233,238,248,.25);
  margin-bottom: 12px;
}

/* detail meta grid */
.status-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.status-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-detail-key {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(233,238,248,.35);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.status-detail-val {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(233,238,248,.82);
}

/* ── skeleton ─────────────────────────────────────────── */

@keyframes status-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.status-skel {
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.05) 25%,
    rgba(255,255,255,.10) 50%,
    rgba(255,255,255,.05) 75%
  );
  background-size: 200% 100%;
  animation: status-shimmer 1.4s ease-in-out infinite;
}

.status-skel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

/* error */
.status-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: rgba(255,160,160,.70);
  font-size: 13px;
  font-weight: 600;
}
