/* Language Translator Styles */
.language-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.language-toggle-btn:hover {
  opacity: 0.9;
}

.language-toggle-btn .lang-icon {
  font-size: 1rem;
}

/* Hide Google Translate widget but keep it functional */
#google_translate_element {
  position: absolute;
  top: -1000px;
  left: -1000px;
  height: 0;
  overflow: hidden;
}

/* Hide Google Translate banner */
.goog-te-banner-frame {
  display: none !important;
}

.goog-te-menu-value:hover {
  text-decoration: none !important;
}

.goog-te-gadget-icon {
  display: none !important;
}

.goog-te-gadget-simple {
  background-color: transparent !important;
  border: none !important;
}

/* Fix for Google Translate affecting page layout */
body {
  top: 0 !important;
  position: static !important;
}

/* Fix for Google Translate top bar */
.skiptranslate {
  opacity: 0;
  height: 0;
  position: absolute;
}

/* Fix for translated content */
html.translated-ltr body {
  padding-top: 0 !important;
}

/* Animation for language switch */
@keyframes fadeInOut {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.translating {
  animation: fadeInOut 1s infinite;
}

/* Fix for Google translate affecting layout */
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Fix for Google translate affecting images */
img {
  font-size: 0 !important;
}

/* Make sure the VGT dropdown doesn't appear */
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}
