body{
  margin-top: 20px;
}
/* ===== Sidebar moderno ===== */
#sidebar {
  margin-top: 20px;
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #212529, #343a40);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1050;
}

#sidebar a {
  text-decoration: none;
  color: #e9ecef;
  border-radius: 0.375rem;
  transition: background 0.2s, color 0.2s;
}

#sidebar a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #sidebar {
    margin-left: -260px;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
  }

  #sidebar.active {
    margin-left: 0;
  }

  #close-sidebar {
    display: block;
  }
}

/* ===== Ocultar botón hamburguesa en escritorio ===== */
@media (min-width: 768px) {
  #menu-toggle {
    display: none !important;
  }
  #close-sidebar {
    display: none !important;
  }
}

/* ===== Botón redondo del menú ===== */
#menu-toggle {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Overlay para oscurecer y cerrar el sidebar */
#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1049;
  display: none;
}


