.sidemenu-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background-color: #1d65f4;
  color: white;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* space between top menu and bottom login/logout */
  align-items: center;
}

.sidemenu-bar.expanded {
  width: 220px;
}

.sidemenu-bar.collapsed {
  width: 70px;
}

/* Toggle button */
.sidemenu-toggle {
  margin: 1rem 0;
  cursor: pointer;
  font-size: 28px;
  color: white;
}

/* Header shown only when expanded */
.sidemenu-header {
  text-align: center;
  padding: 0.5rem 1rem;
}

.sidemenu-header p {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* List styles */
.sidemenu-list {
  list-style: none;
  width: 100%;
  flex: 1; /* take remaining space */
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
}

/* Align login/logout to bottom */
.auth-button {
  margin-top: auto; /* push to bottom */
}

/* Sidebar items */
.sidemenu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  color: white;
  text-decoration: none;
}

.sidemenu-item:hover {
  background-color: #1e58cd;
}

.sidemenu-item span.material-symbols-outlined {
  font-size: 24px;
}

.sidemenu-item a {
  text-decoration: none;
  color: inherit;
}
