/* TailAdmin sidebar and scrollbar component classes */

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.menu-item-active {
  background-color: #f0fdf4;
  color: #15803d;
}

.menu-item-inactive {
  color: #374151;
}

.menu-item-inactive:hover {
  background-color: #f9fafb;
  color: #111827;
}

.menu-item-icon-active {
  fill: #15803d;
}

.menu-item-icon-inactive {
  fill: #6b7280;
}

.menu-item-inactive:hover .menu-item-icon-inactive {
  fill: #374151;
}

.menu-item-arrow {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
}

.menu-item-arrow-active {
  transform: translateY(-50%) rotate(180deg);
  stroke: #15803d;
}

.menu-item-arrow-inactive {
  stroke: #6b7280;
}

.menu-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.menu-dropdown-item-active {
  background-color: #f0fdf4;
  color: #15803d;
}

.menu-dropdown-item-inactive {
  color: #4b5563;
}

.menu-dropdown-item-inactive:hover {
  background-color: #f9fafb;
  color: #111827;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Dark mode variants */
.dark .menu-item-active {
  background-color: rgba(37, 211, 102, 0.1);
  color: #4ade80;
}

.dark .menu-item-inactive {
  color: #9ca3af;
}

.dark .menu-item-inactive:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
}

.dark .menu-item-icon-active {
  fill: #4ade80;
}

.dark .menu-item-icon-inactive {
  fill: #9ca3af;
}

.dark .menu-item-inactive:hover .menu-item-icon-inactive {
  fill: #d1d5db;
}

.dark .menu-item-arrow-active {
  stroke: #4ade80;
}

.dark .menu-item-arrow-inactive {
  stroke: #9ca3af;
}

.dark .menu-dropdown-item-active {
  background-color: rgba(37, 211, 102, 0.1);
  color: #4ade80;
}

.dark .menu-dropdown-item-inactive {
  color: #9ca3af;
}

.dark .menu-dropdown-item-inactive:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background: #374151;
}
