:root {
  --bg: #0b0612;
  --panel: #12081f;
  --panel-2: #1a0f2b;
  --border: #2b1a44;
  --accent: #7c3aed;
  --accent-2: #5b21b6;
  --text: #e6dff2;
  --muted: #9d8fb3;
  --green: #2ecc71;
  --red: #ff4d4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.banner {
  text-align: center;
  padding: 20px 0 10px 0;
}

.banner img {
  max-width: 720px;
  width: 90%;
  border-radius: 14px;
  display: block;
  margin: 0 auto;

  /* subtle depth */
  box-shadow:
    0 20px 40px rgba(0,0,0,0.5),
    0 0 30px rgba(124, 58, 237, 0.15);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* optional subtle hover lift */
.banner img:hover {
  transform: translateY(-3px);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.6),
    0 0 40px rgba(124, 58, 237, 0.25);
}


.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 25px;
  padding: 20px;
}

.panel h2 {
  margin: 0 0 15px 0;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

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

.card {
  background: var(--panel-2);
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
}

.card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.card strong {
  font-size: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th, td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--muted);
  font-weight: 500;
}

.right {
  text-align: right;
}

.metric-toggle {
  margin-bottom: 10px;
}

.metric-toggle button {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 10px;
  margin-right: 5px;
  cursor: pointer;
}

.metric-toggle button.active {
  background: var(--accent);
}





/* Top accent colors */
.summary-card.pink    { border-color: #ff4dd2; }
.summary-card.green   { border-color: #2ecc71; }
.summary-card.blue    { border-color: #4cc9f0; }
.summary-card.red     { border-color: #e74c3c; }
.summary-card.orange  { border-color: #f39c12; }
.summary-card.yellow  { border-color: #f1c40f; }
.summary-card.teal    { border-color: #14f1d9; }

/* Grid layout */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1000px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   SUMMARY PANEL (GOACCESS STYLE)
   =============================== */

.summary-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.summary-title-row h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cfcfd4;
}

.summary-date {
  font-size: 18px;
  color: #b0b0bb;
}


/* GRID */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

/* CARD */
.summary-card {
  background: #2c3047;
  padding: 14px 16px;
  position: relative;
  border-radius: 4px;
}

/* value */
.summary-value {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

/* top accent bar */
.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
}

/* accent colors */
/* Existing ones tuned slightly */
.summary-card.pink::before {
  background: #ff4da6;   /* neon magenta but not hot pink */
}

.summary-card.green::before {
  background: #6ef3b0;   /* mint neon */
}

.summary-card.blue::before {
  background: #7aa2ff;   /* electric periwinkle */
}

/* New ones tuned for dark purple theme */
.summary-card.red::before {
  background: #ff5e7e;   /* synthwave red */
}

.summary-card.orange::before {
  background: #ff9f5c;   /* warm neon amber */
}

.summary-card.yellow::before {
  background: #ffd84d;   /* muted neon gold */
}

.summary-card.teal::before {
  background: #14f1d9;   /* teeeeeeel */
}


/* label */
.summary-label {
  font-size: 14px;
  color: #c7c7d1;
  margin-bottom: 10px;
}


/* responsive */
@media (max-width: 1400px) {
  .summary-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .summary-cards {
    grid-template-columns: 1fr;
  }
}


/* Hosts Layout */
.hosts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 1200px) {
  .hosts-wrapper {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

#hostsChart {
  width: 100% !important;
  max-width: 100%;
}
.hosts-table {
  width: 100%;
  table-layout: fixed;
  word-break: break-word;
}

.hosts-table td,
.hosts-table th {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hosts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hosts-table th {
  text-align: left;
  padding: 12px;
  color: #aaa;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hosts-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #ddd;
}

.hosts-table tr:hover {
  background: rgba(122,162,255,0.06);
}

.dash-table tr:hover {
  background: rgba(122,162,255,0.06);
}

/* Backend replicaiton */

.status-pass {
  color: #65d46e;
  font-weight: 600;
}

.status-fail {
  color: #ff5c5c;
  font-weight: 600;
}

.replication-last {
  margin-bottom: 15px;
  color: #aaa;
  font-size: 0.9rem;
}


/* ---------------- REQUEST TABLE ---------------- */

.request-cell {
  max-width: 600px;
  word-break: break-word;
}

.badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-search { background: #2d6cdf; color: white; }
.badge-album { background: #7a3fff; color: white; }
.badge-artist { background: #00b894; color: white; }
.badge-other { background: #666; color: white; }

.cache-hit { color: #2ecc71; font-weight: 600; }
.cache-miss { color: #e74c3c; font-weight: 600; }
.cache-expired { color: #f39c12; font-weight: 600; }
.cache-neutral { color: #aaa; }


/* ===============================
   FOOTER – SHRIMPTECH
   =============================== */

.bm-footer {
  margin-top: 60px;
  padding: 40px 0 30px 0;
  text-align: center;
  font-size: 11px;
  color: #6f6485;
  letter-spacing: 1px;
  opacity: 0.6;
}

.bm-footer-inner {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bm-footer span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #574d6b;
}

/* subtle hover glow */
.bm-footer:hover .bm-footer-inner {
  opacity: 1;
  transform: translateY(-2px);
  color: #a88cff;
}


.summary-date-range {
  font-size: 11px;
  color: #7e7399;
  margin-bottom: 14px;
  opacity: 0.7;
}

.summary-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.summary-title {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #cfcfd4;
}

.summary-last-updated {
  font-size: 11px;
  color: #7e7399;
  opacity: 0.85;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-left: 8px;
  background: #7c3aed;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.8);
}


/* ===============================
   SUMMARY CARD HOVER – SHRIMPTECH
   =============================== */

.summary-card {
  background: #2c3047;
  padding: 14px 16px;
  position: relative;
  border-radius: 4px;
  transition: transform 0.18s ease,
              box-shadow 0.18s ease,
              filter 0.18s ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 24px rgba(0,0,0,0.45),
    0 0 18px rgba(124, 58, 237, 0.35);
  filter: brightness(1.05);
}

.panel-note {
  font-size: 10px;
  color: #a88cff;
  margin-bottom: 12px;
  opacity: 0.6;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- TOP CONTENT GRID ---------- */

.top-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.top-card {
  background: rgba(20, 10, 40, 0.5);
  padding: 20px;
  border-radius: 8px;
}

.top-card.full-width {
  grid-column: 1 / -1;
}

.top-card h3 {
  margin-bottom: 15px;
}

/* Right align Hits column */
.hits-col {
  text-align: right;
}

@media (max-width: 900px) {
  .top-content-grid {
    grid-template-columns: 1fr;
  }
}
