:root {
  --sidebar-width: 230px;
  --zoe-green: #0fff99;
}

.app-navbar {
  background: linear-gradient(100deg, #0b1c2b 0%, #0e2a2b 100%);
  border-bottom: 2px solid var(--zoe-green);
  min-height: 56px;
}

.app-navbar-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.app-navbar .navbar-brand {
  min-width: 0;
  font-size: 1.05rem;
}

.app-navbar .btn-outline-light {
  border-color: rgba(255, 255, 255, .5);
}

.app-navbar .btn-outline-light:hover {
  background-color: var(--zoe-green);
  border-color: var(--zoe-green);
  color: #06251b;
}

body {
  min-height: 100vh;
}

.app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.app-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.app-sidebar .nav-link {
  border-radius: .4rem;
  color: var(--bs-body-color);
}

.app-sidebar .nav-link.active,
.app-sidebar .nav-link:hover {
  background-color: var(--bs-primary);
  color: #fff;
}

.app-content {
  flex: 1 1 auto;
  min-width: 0;
}

.app-backdrop {
  display: none;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 600;
}

.status-dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.active { background-color: var(--bs-success); }
.status-dot.inactive { background-color: var(--bs-danger); }
.status-dot.unknown { background-color: var(--bs-secondary); }

/* Mobile: sidebar becomes an off-canvas drawer */
@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform .2s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0,0,0,.15);
  }
  .app-sidebar.show {
    transform: translateX(0);
  }
  .app-backdrop.show {
    display: block;
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(0,0,0,.35);
    z-index: 1030;
  }
  .app-content {
    width: 100%;
  }
}

.table-responsive {
  overflow-x: auto;
}

.app-footer {
  border-top: 1px solid var(--bs-border-color);
}

.app-footer-link {
  color: var(--bs-secondary-color);
  font-size: .78rem;
  text-decoration: none;
  letter-spacing: .02em;
}

.app-footer-link:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}
