/* ============================================================
   MENU LATERAL — Rumo ao 10
   Incluído em todas as páginas após o login
   ============================================================ */

/* ── Overlay escuro ao abrir no mobile ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 149;
}
.sidebar-overlay.show { display: block; }

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 60px; /* altura da topbar */
  left: 0;
  width: 240px;
  height: calc(100vh - 60px);
  background: white;
  box-shadow: 4px 0 20px rgba(0,0,0,.08);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

/* Fechada por padrão no mobile */
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.aberta { transform: translateX(0); }
}

/* Desktop: sempre visível, empurra o conteúdo */
@media (min-width: 861px) {
  .sidebar { transform: translateX(0) !important; }
  .main-content { margin-left: 240px; }
}

/* ── Menu items ── */
.sidebar-menu {
  padding: 16px 0;
  flex: 1;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--texto-2);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: all .18s;
  border-left: 3px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-main);
}
.sidebar-item:hover {
  background: var(--azul-light);
  color: var(--azul);
  border-left-color: var(--azul);
}
.sidebar-item.ativo {
  background: var(--azul-light);
  color: var(--azul);
  border-left-color: var(--azul);
}
.sidebar-item .s-ico {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-divider {
  height: 1px;
  background: var(--borda);
  margin: 8px 16px;
}

/* ── Rodapé da sidebar ── */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--borda);
  font-size: .78rem;
  color: var(--texto-muted);
  text-align: center;
}

/* ── Botão hambúrguer (mobile) ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: white;
  font-size: 1.3rem;
}
@media (max-width: 860px) {
  .hamburger { display: flex; align-items: center; }
}
