/* Language Switcher Dropdown */
.lang-switcher {
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 100;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--title-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-flag {
  font-size: 20px;
  line-height: 1;
}

.lang-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.lang-btn.active .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -75px;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: rgba(5, 102, 141, 0.1);
}

.lang-option.active {
  background: rgba(5, 102, 141, 0.15);
  color: var(--our_blue);
  font-weight: 600;
}

.lang-option .flag {
  font-size: 20px;
  line-height: 1;
}

/* Language Preference Form Styles */
#opened_settings_inner_Language {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

#language_preference_form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#language_preference_form strong {
  font-size: 16px;
  color: var(--text-title-d_blue);
}

.locale_dropdown {
  padding: 10px 15px;
  border: 1px solid var(--text-title-d_blue);
  border-radius: 8px;
  font-size: 16px;
  background-color: white;
  color: var(--text-title-d_blue);
  cursor: pointer;
  outline: none;
}

.locale_dropdown:focus {
  border-color: var(--text-title-d_blue);
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.update_locale_btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  background-color: var(--text-title-d_blue);
  color: white;
  transition: opacity 0.3s;
}

.update_locale_btn:hover {
  opacity: 0.9;
}

.locale_message {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  min-width: 300px;
  z-index: 1000;
}

.locale_success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.locale_error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
