/* Estilo general del sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background-color: #9c27b0;
  padding: 70px 0 30px 0; /* espacio superior e inferior */
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
  padding-bottom: 80px; /* ✅ espacio extra para ver el último item */
}

/* Mostrar el sidebar */
.sidebar.show {
  transform: translateX(0);
}

/* Links del menú */
.sidebar a {
  display: block;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

/* Hover sobre los links */
.sidebar a:hover {
  background-color: #7b1fa2;
  border-radius: 6px;
}

/* Botón de abrir el menú */
.openbtn {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #7e57c2;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
}

/* Estilo del contenedor del sidebar para evitar margen raro */
#sidebar-container {
  margin: 0;
  padding: 0;
}

/* Opcional: Estilo para scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #ba68c8;
  border-radius: 10px;
}
