/* Sidebar container */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background-color: #2c3e50;
  color: #ecf0f1;
  transition: transform 0.3s ease;
  transform: translateX(-100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 4vh;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.15); /* Subtle shadow */
}

.sidebar.open {
  transform: translateX(0);
}

/* Toggle button */
.toggleBtn {
  position: absolute;
  top: 20px;
  left: 300px;
  background-color: #34495e;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.toggleBtn:hover {
  background-color: #3b5998;
}

.toggleBtn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Sidebar content */
.sidebarContent {
  width: 100%;
  padding: 20px;
}

.sidebarContent ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebarContent ul li {
  margin: 20px 0;
}

.sidebarContent ul li a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 18px;
  padding: 12px;
  display: block;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.sidebarContent ul li a:hover {
  background-color: #34495e;
  transform: translateX(10px);
  text-decoration: none;
}

/* Overlay when sidebar is open */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 100;
}
