/* ================================================
   CLUSTER SWITCHER STYLES
   ================================================ */

/* Cluster Switcher - Optimized Styles */
.cluster-switcher-wrapper {
  position: relative;
  cursor: pointer;
  font-family: var(--font-primary, 'Inter', sans-serif);
  z-index: 10000 !important;
}

.cluster-switcher-nav-item {
  position: relative;
  z-index: 10000 !important;
}

.cluster-switcher-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cluster-switcher-selected:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.cluster-switcher-wrapper.active .cluster-switcher-selected {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.cluster-switcher-selected svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cluster-switcher-wrapper.active .cluster-switcher-selected svg {
  transform: rotate(180deg);
}

.cluster-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  max-width: 280px;
  background: rgba(15, 21, 23, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001 !important;
  overflow: hidden;
  padding: 6px 0;
  pointer-events: none;
}

.cluster-switcher-wrapper.active .cluster-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cluster-switcher-item {
  padding: 12px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
}

.cluster-switcher-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.cluster-switcher-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding-left: 22px;
}

.cluster-switcher-item:hover::before {
  background: rgba(255, 255, 255, 0.3);
}

.cluster-switcher-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  padding-left: 22px;
}

.cluster-switcher-item.active::before {
  background: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cluster-switcher-selected {
    padding: 6px 12px;
    font-size: 13px;
  }

  .cluster-switcher-menu {
    min-width: 200px;
    right: 0;
    left: auto;
  }

  .cluster-switcher-item {
    padding: 10px 16px;
    font-size: 13px;
  }
}

