/* Sidebar Styles - INITIALLY COLLAPSED ON DESKTOP */
#sidebar {
  min-height: 100vh;
  width: 92px;
  background: var(--sidebar-bg);
  color: #050505;
  position: fixed;
  z-index: 1000;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
  left: 0;
  transition: transform 0.3s ease, width 0.3s ease;
  border-right: 1px solid #e4e6ea;
}

#sidebar .sidebar-header {
  padding: 20px 10px;
  background: var(--sidebar-bg);
  text-align: center;
  height: 73px;
  transition: padding 0.3s ease;
  border-bottom: 1px solid #e4e6ea;
}

#sidebar .sidebar-header h3 {
  color: var(--active-highlight);
  font-weight: 700;
  margin: 0;
}

#sidebar ul.components {
  padding: 10px 0;
  list-style: none;
}

#sidebar ul li {
  position: relative;
  margin: 5px 8px;
  border-radius: 8px;
}

#sidebar ul li a {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  color: #050505;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  border-radius: 8px;
}

#sidebar ul li a:hover {
  background: #f0f2f5;
}

#sidebar ul li a span {
  font-weight: 600;
  font-size: 0.95rem;
}

#sidebar ul li a i {
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  line-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 0;
}

/* Specific colors for each icon */
#sidebar ul li:nth-child(1) a i {
  background: linear-gradient(135deg, #1877F2, #42B883);
  color: white;
}

#sidebar ul li:nth-child(2) a i {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  color: white;
}

#sidebar ul li:nth-child(3) a i {
  background: linear-gradient(135deg, #6BCF7F, #42B883);
  color: white;
}

#sidebar ul li:nth-child(4) a i {
  background: linear-gradient(135deg, #FFD93D, #FF9C33);
  color: white;
}

#sidebar ul li:nth-child(5) a i {
  background: linear-gradient(135deg, #6B5B95, #8A6BBE);
  color: white;
}

#sidebar ul li:nth-child(6) a i {
  background: linear-gradient(135deg, #A593E0, #6B5B95);
  color: white;
}

/* Tooltip by default hidden */
.sidebar-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1001;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: rgba(0, 0, 0, 0.8);
}

/* Tooltip sirf collapsed (not expanded) sidebar me aur hover pe hi dikhe */
#sidebar:not(.expanded) ul li a:hover .sidebar-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Jab sidebar expanded ho to tooltip forcefully hidden */
#sidebar.expanded .sidebar-tooltip {
  visibility: hidden !important;
  opacity: 0 !important;
}
