/* Language Switcher Styles */
.language-switcher-nav {
  margin-left: auto;
  padding: 0 1rem;
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
}

.language-switcher .language-dropdown {
  position: relative;
  display: inline-block;
}

.language-switcher .language-toggle {
  background: #fff;
  border: 1px solid #ddd;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  padding: 6px 12px;
  display: -webkit-flex;
  display: -moz-flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
  min-width: 100px;
}

.language-switcher .language-toggle:hover {
  background: #f8f9fa;
  border-color: #007bff;
  text-decoration: none;
  color: #333;
}

.language-switcher .language-options {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 120px;
  background: #fff;
  border: 1px solid #ddd;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  -webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  -moz-box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
  margin-top: 2px;
}

.language-switcher .language-dropdown:hover .language-options,
.language-switcher .language-dropdown.active .language-options {
  display: block;
}

.language-switcher .language-option {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  -webkit-transition: background 0.2s ease;
  -moz-transition: background 0.2s ease;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.language-switcher .language-option:last-child {
  border-bottom: none;
  -webkit-border-radius: 0 0 6px 6px;
  -moz-border-radius: 0 0 6px 6px;
  border-radius: 0 0 6px 6px;
}

.language-switcher .language-option:first-child {
  -webkit-border-radius: 6px 6px 0 0;
  -moz-border-radius: 6px 6px 0 0;
  border-radius: 6px 6px 0 0;
}

.language-switcher .language-option:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: #007bff;
}

.language-switcher .language-option.active {
  background: #007bff;
  color: #fff;
}

.language-switcher .language-option.active:hover {
  background: #0056b3;
  color: #fff;
}

/* Mobile responsive */
@media (max-width: 991px) {
  .language-switcher-nav {
    margin-left: 0;
    padding: 0.5rem 0;
    order: -1; /* Show before other nav items on mobile */
  }
  
  .language-switcher .language-toggle {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 80px;
  }
  
  .language-switcher .language-option {
    padding: 6px 8px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    flex-direction: column;
  }
  
  .language-switcher-nav {
    -webkit-align-self: -webkit-flex-end;
    -moz-align-self: -moz-flex-end;
    align-self: flex-end;
  }
}
