.languageDropdown {
  width: 65px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.flag-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
}

.flag-circle .fi {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.arrow-icon svg {
  transition: transform 0.2s ease;
}

.languageDropdown.open .arrow-icon svg {
  transform: rotate(180deg);
}

.language-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 5px;
  list-style: none;
  padding: 4px 0;
  border-radius: 6px;
  min-width: 60px;
  z-index: 1000;
}

.language-menu li {
  padding: 5px 8px;
  cursor: pointer;
  text-align: center;
}

.language-menu li:hover {
  background: #f0f0f0;
}

.languageDropdown.open .language-menu {
  display: block;
}

/* Entity dropdown */
.entity-dropdown-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.entity-dropdown-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(18%) sepia(67%) saturate(900%) hue-rotate(210deg) brightness(85%) contrast(110%);
}

.entityDropdown {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.entity-current {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
}

.entity-current-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand-dark);
  white-space: nowrap;
}

.entityDropdown.open .arrow-icon svg {
  transform: rotate(180deg);
}

.entity-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 5px;
  list-style: none;
  padding: 4px 0;
  border-radius: 6px;
  min-width: 120px;
  z-index: 1000;
}

.entity-menu li {
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.entity-menu li a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  display: block;
}

.entity-menu li:hover {
  background: #f0f0f0;
}

.entity-menu li.active {
  background: #f0f0f0;
  font-weight: 600;
}

.entityDropdown.open .entity-menu {
  display: block;
}
