/* Sidebar */
.sidebar {
  position: fixed !important;
  left: -220px; /* hidden by default */
  top: 0;
  width: 200px;
  height: 100%;
  background-color: #f4f2ef;
  padding-top: 60px; /* space for hamburger */
  transition: 0.3s;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
}

.sidebar a:not(#avatar-link) {
  padding: 12px 20px;
  text-decoration: none;
  color: gray;
  font-size: 1.2em;
  transition: 0.2s;
}

.sidebar a:hover {
  background-color: #eef9ff
}

/* Hamburger button */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 30px;
  cursor: pointer;
  color: #2b6ea3;
  z-index: 1100;
  transition: 0.3s;
}

/* Sidebar visible state */
.sidebar.open {
  left: 0;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  margin-top: 20px;
}

/* prevent menu styling on avatar link */
#avatar-link {
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #4ade80; /* green accent */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.user-info a {
  display: flex;
  text-decoration: none; /* remove underline */
}

.user-info a:hover {
  cursor: pointer;
}

/* Ensure the link does not expand the avatar */
.avatar-link {
  display: inline-block;       /* keeps it confined */
  width: 36px;                 /* same as avatar-circle */
  height: 36px;                /* same as avatar-circle */
  text-decoration: none;       /* remove underline */
}

.avatar-link:hover {
  cursor: pointer;
}
