/* Shared authenticated-page sidebar, matched to the Settings page. */
.sidebar {
  width: 256px;
  display: flex;
  flex-direction: column;
  background: #050505;
  border-right: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font: 800 12px Montserrat, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand a { color: inherit; }
.brand span { color: #ef4444; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
  transition: .2s;
}

.nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-link:hover { color: #fff; background: #ffffff09; }
.nav-link.active { color: #ef4444; background: #dc26261a; }

.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.logout,
.logout-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, .48);
  background: transparent;
  text-align: left;
  font: inherit;
  transition: .2s;
}

.logout:hover,
.logout-button:hover { color: #f87171; background: #ef44441a; }
.logout svg,
.logout-button svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 850px) {
  .sidebar { width: 220px; transform: none; }
  .topbar { left: 220px; }
  .main { margin-left: 220px; padding: 88px 24px 38px; }
  .mobile-menu,
  .menu-toggle,
  .menubtn { display: none !important; }
}

@media (max-width: 680px) {
  .sidebar { width: min(280px, 85vw); transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .topbar { left: 0; }
  .main { margin-left: 0; padding: 88px 16px 30px; }
  .mobile-menu,
  .menubtn { display: flex !important; }
  .menu-toggle { display: grid !important; }
}
