/* Sidebar Styles - INITIALLY COLLAPSED ON DESKTOP */
#sidebar {
  min-height: 100vh;
  width: 70px;
  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;
  height: 100vh;              /* IMPORTANT */
  overflow-y: auto;           /* ENABLE VERTICAL SCROLL */
  overflow-x: hidden;         /* Horizontal scroll avoid */
}

#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;
}

/* Remove custom tooltip styles since we're using Bootstrap tooltips now */

#sidebar ul li a.dropdown-toggle::after {
    display: block !important;
    opacity: 1 !important;
}

#sidebar {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-header {
  flex-shrink: 0;
}

#sidebar ul.components {
  flex: 1;
  overflow-y: auto;      /* ONLY MENU SCROLL */
  overflow-x: hidden;
  padding-bottom: 20px;  /* last item cut na ho */
}

#sidebar ul.components::-webkit-scrollbar {
  width: 6px;
}

#sidebar ul.components::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

@media (min-width: 769px) {
    #sidebar {
        width: 90px !important;
    }

    #sidebar.expanded {
        width: 260px !important;
    }
}

@media (max-width: 768px) {
  #sidebar {
    height: 100vh;
    overflow-y: auto;
  }
}