.nav-link[hidden] {
  display: none !important;
}

@media (min-width: 701px) {
  .sidebar nav {
    min-height: 0;
    overflow-y: auto;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 211, 41, 0.5) transparent;
  }
  .sidebar nav::-webkit-scrollbar {
    width: 4px;
  }
  .sidebar nav::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(255, 211, 41, 0.5);
  }
}

.monitor-heading {
  gap: 18px;
}
.monitor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}
.health-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 17px;
  padding: 17px 20px;
  background: rgba(51, 15, 85, 0.64);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.13);
}
.health-summary strong {
  color: #fff;
  font: 600 20px Oswald, sans-serif;
}
.health-summary span {
  color: #eadff1;
  font-size: 12px;
  text-align: right;
}
.health-summary.ok {
  border-color: rgba(94, 255, 159, 0.55);
  background: linear-gradient(120deg, rgba(29, 126, 77, 0.5), rgba(54, 16, 88, 0.65));
}
.health-summary.warning {
  border-color: rgba(255, 217, 62, 0.58);
}
.health-summary.danger {
  border-color: rgba(255, 114, 119, 0.65);
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.health-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 19px;
  padding: 21px;
  background: rgba(69, 22, 104, 0.67);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
}
.health-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 211, 41, 0.08);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.03);
}
.health-card > i {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #83f5b8;
  box-shadow: 0 0 8px #fff, 0 0 19px #54e996;
}
.health-card.warning > i {
  background: #ffd329;
  box-shadow: 0 0 8px #fff, 0 0 19px #ffd329;
}
.health-card.danger > i {
  background: #ff777c;
  box-shadow: 0 0 8px #fff, 0 0 19px #ff777c;
}
.health-card > span {
  display: block;
  padding-right: 28px;
  color: #e2d5eb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.health-card > strong {
  display: block;
  overflow: hidden;
  margin-top: 20px;
  color: #fff;
  font: 600 25px Oswald, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.health-card > p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: #ddcfE7;
  font-size: 12px;
  line-height: 1.5;
}
.health-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 16px;
  padding: 0;
  overflow: hidden;
}
.health-counts > div {
  padding: 17px 20px;
  background: rgba(255, 255, 255, 0.04);
}
.health-counts span {
  display: block;
  color: #d9cbe4;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.health-counts strong {
  display: block;
  margin-top: 5px;
  color: var(--yellow);
  font: 600 24px Oswald, sans-serif;
}
.health-wait {
  display: grid;
  min-height: 280px;
  place-content: center;
  justify-items: center;
  text-align: center;
}
.health-wait strong {
  margin-top: 16px;
  font: 600 24px Oswald, sans-serif;
}
.health-wait p {
  max-width: 440px;
  margin: 7px 0 0;
  color: #ddcfe7;
  font-size: 13px;
}
.monitor-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--yellow);
  border-radius: 50%;
}
.monitor-spinner.spinning {
  animation: monitor-spin 0.85s linear infinite;
}
@keyframes monitor-spin {
  to { transform: rotate(360deg); }
}

.activity-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 15px;
}
.activity-toolbar label {
  display: grid;
  gap: 6px;
  color: #e2d3eb;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}
.activity-toolbar select {
  min-width: 175px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 11px;
  background: #fff;
  padding: 10px 12px;
  color: #32115c;
  font: 700 12px "DM Sans", sans-serif;
}
.activity-total {
  margin-left: auto;
  padding: 11px 3px;
  color: #e3d6ec;
  font-size: 11px;
  font-weight: 700;
}
.activity-list {
  padding: 6px 13px;
}
.activity-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(260px, 1.6fr) minmax(220px, 1fr);
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid #9f72bb;
  padding: 14px 14px 14px 17px;
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-row.action-login { border-left-color: #ffd329; }
.activity-row.action-insert { border-left-color: #72eba7; }
.activity-row.action-delete { border-left-color: #ff8589; }
.activity-time strong,
.activity-main strong,
.activity-account strong {
  display: block;
  color: #fff;
  font-size: 12px;
}
.activity-time span,
.activity-account span {
  display: block;
  margin-top: 4px;
  color: #cdbbd9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.activity-main p {
  margin: 5px 0 0;
  color: #d9cae4;
  font-size: 11px;
  line-height: 1.45;
}
.activity-account {
  min-width: 0;
  text-align: right;
}
.activity-account strong {
  overflow: hidden;
  margin-top: 5px;
  color: var(--yellow-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-row { grid-template-columns: minmax(140px, 0.75fr) 1.5fr; }
  .activity-account { grid-column: 2; text-align: left; }
}
@media (max-width: 700px) {
  .monitor-heading,
  .health-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .monitor-actions,
  .monitor-actions > *,
  .monitor-heading > .primary {
    width: 100%;
  }
  .health-summary span { text-align: left; }
  .health-grid { grid-template-columns: 1fr; }
  .health-card { min-height: 155px; }
  .health-counts { grid-template-columns: repeat(2, 1fr); }
  .activity-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .activity-toolbar select { width: 100%; min-width: 0; }
  .activity-total { margin-left: 0; padding-bottom: 0; }
  .activity-list { padding: 5px 10px; }
  .activity-row {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px 11px;
  }
  .activity-account { grid-column: auto; text-align: left; }
}
