/* Language Icons CSS */
.lang-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85em;
  color: #fff;
  position: relative;
  vertical-align: middle;
  text-transform: uppercase;
}

.lang-icon-en {
  background-color: #0d6efd;
}

.lang-icon-zh {
  background-color: #dc3545;
}

/* Language switcher styling */
.lang-switcher .dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
}

.lang-switcher .dropdown-toggle:hover,
.lang-switcher .dropdown-toggle:focus {
  background-color: rgba(255, 255, 255, 0.1);
}

.lang-switcher .dropdown-menu {
  min-width: 8rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  border: none;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.lang-switcher .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.lang-switcher .dropdown-item:hover,
.lang-switcher .dropdown-item:focus {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .lang-switcher .dropdown-toggle {
    padding: 0.375rem 0.5rem;
  }
  
  .lang-switcher .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
  }
}