/* ===== MOBILE ===== */
.mobile-topbar {
  display: none;
  background: #212529;
  padding: 0.55rem 1rem;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1044;
}
.sidebar-backdrop.show { display: block; }

@media (max-width: 991.98px) {
  .mobile-topbar { display: flex; }

  .sidebar {
    position: fixed !important;
    top: 0;
    left: -260px;
    z-index: 1045;
    height: 100vh;
    overflow-y: auto;
    transition: left 0.25s ease;
    width: 240px !important;
    min-width: 240px !important;
  }

  .sidebar.sidebar-open {
    left: 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
  }
}
/* =================== */

.sidebar-link {
  color: #cfd2d6;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  display: block;
}
.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.status-up {
  color: #198754;
  font-weight: 600;
}
.status-down {
  color: #dc3545;
  font-weight: 600;
}
