/* sidebar.css */
.sidebar {
  width: 260px;
  /* background: linear-gradient(180deg, #1e1f29 0%, #282a36 100%); */
  color: #f0f0f0;
  /* height: 100vh; */
  display: none; /* hidden initially */
  flex-direction: column;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.sidebar-header {
  background: #34354a;
  padding: 20px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.sidebar-footer {
  background: #34354a;
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid #444;
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}

.sidebar-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  color: #ddd;
  text-decoration: none;
  transition: background 0.3s ease;
}

.menu-item > a:hover,
.menu-item.active > a {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.submenu {
  display: none;
  background: rgba(255, 255, 255, 0.05);
}

.submenu li a {
  display: block;
  padding: 10px 30px;
  color: #bbb;
  text-decoration: none;
  transition: background 0.3s ease;
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.submenu-content {
    display: none;           /* hidden by default */
    flex-direction: column;  /* stack vertically */
    padding-left: 15px;      /* indent submenu items */
}

.submenu-item {
    display: block;           /* make each submenu item a full-width block */
    padding: 8px 12px;
    width: 100%;              /* full width inside submenu */
    text-align: left;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.submenu-item i.menu-icon {
    margin-right: 8px;
}
