/* Dark theme default */
:root {
  --bg: #0b0f12;
  --card-bg: #0f1720;
  --muted: #9aa4af;
  --text: #e6eef6;
  --accent: #0d6efd; /* bootstrap primary */
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.card {
  border: none;
  background-color: var(--card-bg);
  color: var(--text);
}

.services-layout.list-view .service-card-col {
  flex: 0 0 100%;
  max-width: 100%;
}

.service-card-body {
  display: grid;
  gap: 1rem;
}

.service-card-main .card-title {
  margin-bottom: 0.75rem;
}

.service-card-meta .card-text {
  margin-bottom: 0.5rem;
}

.services-layout.list-view .service-card-body {
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  align-items: start;
  column-gap: 1.5rem;
}

.services-layout.list-view .service-card-main {
  padding-right: 1.25rem;
}

.services-layout.list-view .service-card-meta {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 1.25rem;
}

@media (max-width: 991.98px) {
  .services-layout.list-view .service-card-body {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }

  .services-layout.list-view .service-card-main {
    padding-right: 0;
  }

  .services-layout.list-view .service-card-meta {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 0;
    padding-top: 0.75rem;
  }
}

.card.degraded-service {
  border: 1px solid rgba(255, 193, 7, 0.7);
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.08), rgba(15, 23, 32, 0.95));
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.35), 0 0 15px rgba(0, 0, 0, 0.45);
}

.card.down-service {
  border: 1px solid rgba(220, 53, 69, 0.68);
  background: linear-gradient(180deg, rgba(220, 53, 69, 0.08), rgba(15, 23, 32, 0.95));
  box-shadow: 0 0 25px rgba(220, 53, 69, 0.28), 0 0 15px rgba(0, 0, 0, 0.45);
}

.table thead th {
  color: var(--text);
  border-bottom-color: rgba(255,255,255,0.08);
}

.small.text-muted {
  color: var(--muted) !important;
}

a {
  color: var(--accent);
}

.footer-note {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.42rem;
  border: 1px solid rgba(228, 155, 47, 0.34);
  border-radius: 8px;
  background: rgba(228, 155, 47, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.46rem 0.72rem;
}

.footer-note-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  color: rgb(228, 155, 47);
}

/* Table adjustments for dark theme */
.table {
  color: var(--text) !important;
  background-color: transparent !important;
  border-collapse: separate;
  font-size: .95rem;
}

.table > :where(thead) > tr > th,
.table > :where(tbody) > tr > td {
  border-color: rgba(255,255,255,0.06);
  background-color: transparent !important;
}

.table thead th {
  background-color: rgba(255,255,255,0.04) !important;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table tbody td {
  color: rgba(230,238,246,0.95);
}

.table tbody tr {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.table.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255,255,255,0.02) !important;
}

/* highlight problematic rows */
.table tbody tr.down {
  background-color: rgba(220,53,69,0.12) !important; /* stronger soft red */
}

.table tbody tr.degraded {
  background-color: rgba(255,193,7,0.08) !important; /* soft yellow */
}

pre {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: .75rem;
  border-radius: .25rem;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.05);
}

details {
  color: var(--text);
}

summary {
  cursor: pointer;
  color: var(--accent);
}  
