body {
  background:
    radial-gradient(circle at 8% 8%, rgba(37,99,235,0.18), transparent 30%),
    radial-gradient(circle at 92% 5%, rgba(16,185,129,0.12), transparent 26%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  min-height: 100vh;
  color: rgba(226,232,240,0.88);
}
html[data-bs-theme="light"] body {
  background: linear-gradient(160deg, #f0f4ff 0%, #e8f0fe 40%, #f1f5f9 100%);
  color: #1e293b;
}
.navbar {
  border-bottom: 1px solid rgba(148,163,184,0.13);
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(16px);
}
html[data-bs-theme="light"] .navbar {
  background: rgba(255,255,255,0.92);
  border-color: rgba(15,23,42,0.09);
  backdrop-filter: none;
}
.navbar-brand, .nav-link { color: rgba(226,232,240,0.9); font-weight: 700; }
html[data-bs-theme="light"] .navbar-brand, html[data-bs-theme="light"] .nav-link { color: #1e293b; }
.shell {
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.13);
  background: rgba(15,23,42,0.60);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 28px rgba(0,0,0,0.30);
  padding: 1.4rem;
}
html[data-bs-theme="light"] .shell {
  background: rgba(255,255,255,0.90);
  border-color: rgba(15,23,42,0.09);
  box-shadow: 0 2px 16px rgba(15,23,42,0.08);
  backdrop-filter: none;
}
h1 { font-size: 1.35rem; letter-spacing: 0; margin: 0; font-weight: 800; }
h2 { font-size: 0.95rem; font-weight: 800; letter-spacing: 0; }
.muted { color: rgba(148,163,184,0.70); }
html[data-bs-theme="light"] .muted { color: #64748b; }
.btn, .btn-primary, .btn-danger, .btn-success, .btn-warning, .btn-secondary {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.83rem;
  padding: 0.2rem 0.05rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-primary { color: #60a5fa; }
.btn-danger { color: #f87171; }
.btn-success { color: #34d399; }
.btn-warning { color: #fbbf24; }
.btn-secondary { color: rgba(148,163,184,0.72); }
html[data-bs-theme="light"] .btn-primary { color: #2563eb; }
html[data-bs-theme="light"] .btn-danger { color: #dc2626; }
html[data-bs-theme="light"] .btn-success { color: #059669; }
html[data-bs-theme="light"] .btn-warning { color: #d97706; }
html[data-bs-theme="light"] .btn-secondary { color: #64748b; }
.table {
  --bs-table-bg: transparent;
  --bs-table-color: rgba(226,232,240,0.85);
  --bs-table-border-color: rgba(148,163,184,0.10);
  --bs-table-hover-bg: rgba(59,130,246,0.07);
  --bs-table-hover-color: rgba(226,232,240,0.90);
  --bs-table-striped-bg: rgba(255,255,255,0.02);
  --bs-table-active-bg: rgba(59,130,246,0.10);
}
.table thead th {
  text-transform: uppercase;
  font-size: 0.70rem;
  letter-spacing: 0.09em;
  color: rgba(148,163,184,0.62);
  font-weight: 700;
  background: rgba(2,6,23,0.40);
  border-bottom: 1px solid rgba(148,163,184,0.14);
  border-top: none;
  white-space: nowrap;
}
.table tbody td {
  border-top-color: rgba(148,163,184,0.07);
  color: rgba(226,232,240,0.85);
  vertical-align: middle;
}
.table tbody tr:hover td { background: rgba(59,130,246,0.07); }
html[data-bs-theme="light"] .table {
  --bs-table-bg: #fff;
  --bs-table-color: #1e293b;
  --bs-table-border-color: #e2e8f0;
  --bs-table-hover-bg: #f1f5f9;
  --bs-table-hover-color: #1e293b;
}
html[data-bs-theme="light"] .table thead th { background: #f8fafc; border-color: #e2e8f0; color: #64748b; }
html[data-bs-theme="light"] .table tbody td { border-color: #e2e8f0; color: #1e293b; }
html[data-bs-theme="light"] .table tbody tr:hover td { background: #f1f5f9; }
a { color: #93c5fd; text-decoration: none; }
html[data-bs-theme="light"] a { color: #2563eb; }
.form-control, .form-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148,163,184,0.20);
  color: rgba(255,255,255,0.90);
  border-radius: 10px;
}
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,0.09);
  border-color: rgba(59,130,246,0.55);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.16);
  color: rgba(255,255,255,0.92);
}
.form-label {
  font-size: 0.80rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(148,163,184,0.75);
}
html[data-bs-theme="light"] .form-control, html[data-bs-theme="light"] .form-select {
  background: #fff;
  border-color: #cbd5e1;
  color: #1e293b;
}
html[data-bs-theme="light"] .form-label { color: #64748b; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(59,130,246,0.30);
  background: rgba(37,99,235,0.20);
  color: #93c5fd;
}
.pill.ok { background: rgba(16,185,129,0.13); color: #6ee7b7; border-color: rgba(16,185,129,0.28); }
.pill.bad { background: rgba(239,68,68,0.13); color: #fca5a5; border-color: rgba(239,68,68,0.28); }
.pill.warn { background: rgba(245,158,11,0.10); color: #fbbf24; border-color: rgba(245,158,11,0.28); }
.pill.muted-pill { background: rgba(148,163,184,0.10); color: rgba(203,213,225,0.78); border-color: rgba(148,163,184,0.18); }
html[data-bs-theme="light"] .pill { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
html[data-bs-theme="light"] .pill.ok { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
html[data-bs-theme="light"] .pill.bad { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
html[data-bs-theme="light"] .pill.warn { background: #fef3c7; color: #b45309; border-color: #fde68a; }
html[data-bs-theme="light"] .pill.muted-pill { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.alert-info { background: rgba(37,99,235,0.10); border: 1px solid rgba(59,130,246,0.25); color: #93c5fd; }
.alert-success { background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.alert-warning { background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.28); color: #fbbf24; }
.alert-danger { background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.28); color: #fca5a5; }
html[data-bs-theme="light"] .alert-danger { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.summary-grid, .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}
.summary-grid > div, .detail-grid > div {
  border: 1px solid rgba(148,163,184,0.13);
  border-radius: 12px;
  padding: 0.85rem;
  min-height: 76px;
}
html[data-bs-theme="light"] .summary-grid > div, html[data-bs-theme="light"] .detail-grid > div { border-color: rgba(15,23,42,0.09); background: #fff; }
.summary-grid span { display: block; font-size: 1.45rem; font-weight: 800; }
.summary-grid small, .detail-grid small { display: block; color: rgba(148,163,184,0.70); font-weight: 700; text-transform: uppercase; font-size: 0.7rem; margin-bottom: 0.35rem; }
html[data-bs-theme="light"] .summary-grid small, html[data-bs-theme="light"] .detail-grid small { color: #64748b; }
.actions, .cluster-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.login-wrap { min-height: calc(100vh - 3rem); display: grid; place-items: center; }
.login-shell { width: min(420px, 100%); }
pre {
  background: rgba(2,6,23,0.34);
  border: 1px solid rgba(148,163,184,0.13);
  border-radius: 12px;
  padding: 1rem;
  color: rgba(226,232,240,0.88);
  max-height: 460px;
}
html[data-bs-theme="light"] pre {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}
@media (max-width: 760px) {
  .navbar { align-items: flex-start; }
  .navbar .ms-auto { flex-wrap: wrap; justify-content: flex-end; }
  .shell { padding: 1rem; }
  .table { min-width: 980px; }
}
