/* Language Changer Styles */

/* Custom Dropdown Styles */
.nav-item {
  position: relative;
  list-style: none;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded='true']::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 0.8rem;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 20001;
  list-style: none;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  transform: translateX(2px);
}

.dropdown-item.active {
  background: var(--primary-color);
  color: white;
}

.dropdown-item.active:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateX(2px);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-primary);
  margin: 0.5rem 0;
  border: none;
}

/* Language dropdown specific styles */
.dropdown-item .fi {
  font-size: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.dropdown-item .fas.fa-check {
  margin-left: auto;
  color: var(--success-color);
}

.dropdown-item.active .fas.fa-check {
  color: white;
}

/* Additional dropdown styling */
.dropdown-item small {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

/* Responsive dropdown styles */
@media (max-width: 768px) {
  .dropdown-menu {
    position: fixed;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    margin-top: 0.5rem;
  }

  .dropdown-menu.show {
    transform: translateX(-50%) translateY(0);
  }
}
