/* CloudProbe Status Page Styles - Shared with main panel */
@import url("style.css");

/* ---------------------------------------------------------- Status Page Specific Overrides */
body { margin: 0; }

#sp-main {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto; padding: 34px 20px 56px;
}

/* Status Header */
.sp-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
}
.sp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sp-logo {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px;
  box-shadow: var(--sh-primary);
}
.sp-brand h1 { font-size: 20px; margin: 0; font-weight: 700; }
.sp-sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.sp-actions { display: flex; align-items: center; gap: 8px; }
.sp-updated { font-size: 12px; color: var(--muted); margin-right: 2px; }

/* Summary Banner */
.sp-summary {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; margin-bottom: 22px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--panel); box-shadow: var(--sh-1);
}
.sp-summary::before {
  content: ''; width: 5px; align-self: stretch; border-radius: 99px;
  background: var(--green);
}
.sp-summary.is-down::before { background: var(--red); }
.sp-summary.is-warn::before { background: var(--orange); }
.sp-summary-icon {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 17px; font-weight: 700;
  background: var(--green-soft); color: var(--green);
}
.sp-summary.is-down .sp-summary-icon { background: var(--red-soft); color: var(--red); }
.sp-summary.is-warn .sp-summary-icon { background: var(--orange-soft); color: var(--orange-ink); }
.sp-summary-text { min-width: 0; flex: 1; }
.sp-summary-title { font-size: 16px; font-weight: 700; }
.sp-summary-desc { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.sp-counts { display: flex; gap: 18px; flex-wrap: wrap; }
.sp-count { text-align: right; }
.sp-count b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.sp-count span { font-size: 11.5px; color: var(--muted); }

/* Sections */
.sp-section { margin-bottom: 26px; }
.sp-section-head {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px;
}
.sp-section-head h2 { font-size: 15px; margin: 0; font-weight: 700; }
.sp-section-head .sp-note { font-size: 12px; color: var(--muted); }

.sp-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

/* Node Cards */
.sp-node { display: flex; flex-direction: column; gap: 10px; }
.sp-node-top { display: flex; align-items: center; gap: 9px; }
.sp-node-name {
  font-weight: 650; font-size: 14px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-node-meta {
  font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-node-foot {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 11.5px; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 9px;
}
.sp-node.is-off .sp-node-name { color: var(--muted); }

/* Monitor Items */
.sp-mon {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--panel);
}
.sp-mon-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; }
.sp-mon-err {
  font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sp-mon-bar { width: 150px; flex: 0 0 auto; }
.sp-mon-val {
  width: 132px; flex: 0 0 auto; text-align: right; white-space: nowrap;
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}

/* Footer */
.sp-foot {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.sp-foot a { color: var(--primary); text-decoration: none; }
.sp-foot a:hover { text-decoration: underline; }

/* Mobile Responsive */
@media (max-width: 640px) {
  #sp-main { padding: 22px 14px 40px; }
  .sp-summary { flex-wrap: wrap; }
  .sp-counts { width: 100%; justify-content: space-between; gap: 10px; }
  .sp-count { text-align: left; }
  .sp-mon { flex-wrap: wrap; }
  .sp-mon-bar { width: 100%; order: 3; }
  .sp-mon-val { width: auto; }
}
