/* =========================================================================
   INTERFACE SWITCHER DROPDOWN
   Dropdown in the header left zone for switching between interfaces.
   ========================================================================= */

.gh-switcher {
  position: relative;
}

.gh-switcher-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: var(--graiph-radius-sm);
  background: transparent;
  color: var(--graiph-text-muted);
  font-family: var(--graiph-font);
  font-size: var(--graiph-font-xs);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gh-switcher-btn:hover {
  background: var(--graiph-bg-hover);
  color: var(--graiph-text-primary);
}

.gh-switcher-btn svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.gh-switcher.open .gh-switcher-btn svg {
  transform: rotate(180deg);
}

.gh-switcher-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 300;
  min-width: 200px;
  background: var(--graiph-bg-elevated);
  border: 1px solid var(--graiph-border);
  border-radius: var(--graiph-radius-md);
  box-shadow: var(--graiph-shadow-lg);
  padding: 4px 0;
  display: none;
}

.gh-switcher.open .gh-switcher-menu {
  display: block;
}

.gh-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  color: var(--graiph-text-primary);
  font-family: var(--graiph-font);
  font-size: var(--graiph-font-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.gh-switcher-item:hover {
  background: var(--graiph-bg-hover);
}

.gh-switcher-item.active {
  color: var(--graiph-accent-text);
  font-weight: 600;
}

.gh-switcher-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gh-switcher-item-label {
  flex: 1;
}

.gh-switcher-item-hint {
  font-size: var(--graiph-font-xs);
  color: var(--graiph-text-muted);
}
