 .menu-item {
  position: relative; /* IMPORTANT */
}

/* collapsed sidebar */

.sidebar-collapsed {
width:70px !important;
}

.sidebar-collapsed .sidebar-text{
display:none;
}

/* tooltip */
.tooltip {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 999; /* IMPORTANT */
}

.tooltip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #111;
}
.sidebar-collapsed .menu-item:hover .tooltip {
  opacity: 1;
  left: 75px;
}


.sidebar-collapsed .menu-item{
justify-content:center;
}

.sidebar-collapsed .sidebar-logo{
justify-content:center;
}

#sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  
  -ms-overflow-style: none;  /* IE & Edge */
  scrollbar-width: none;     /* Firefox */
}

/* Chrome, Safari */
#sidebar::-webkit-scrollbar {
  display: none;
}
/* ================= SUBMENU CONTAINER ================= */
.submenu {
  margin-left: 1.5rem;
  margin-top: 6px;
}


/* ================= SUBMENU ITEMS ================= */
.submenu-item {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #4b5563;
  border-radius: 6px;
  background: #f9fafb;   /* light background */
  margin-bottom: 4px;
  transition: all 0.2s ease;
}


/* ================= HOVER EFFECT ================= */
.submenu-item:hover {
  background: #ede9fe;   /* light purple */
  color: #7c3aed;
  transform: translateX(3px); /* slight slide */
}


/* ================= ACTIVE ITEM ================= */
.submenu-item.active {
  background: #e0e7ff;
  color: #7c3aed;
  font-weight: 500;
}


/* ================= OPTIONAL SMOOTH OPEN ================= */
.submenu {
  animation: fadeSlide 0.25s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}