:root {
  --bg-dark: #121212;
  --bg-light: #f0f0f0;
  --text-dark: #ffffff;
  --text-light: #333333;
  --accent: #453ec1;
  --accent-light: #4F46E5;
  --card-dark: #1e1e1e;
  --card-light: #ffffff;
}


#languageToggle {
position: fixed;
bottom: 70px;
left: 10px;
color: var(--accent);
z-index: 999999999999999999;
background-color: transparent;
font-size: 40px;
border-radius: 10%;
  padding: 7px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
border: none;
box-shadow: 0 0px 10px rgb(255, 255, 255, 0.7);
transition: all 0.3s ease;
}

#languageToggle:hover {
transform: scale(1.1);
   box-shadow: 0 0px 30px rgb(132, 34, 145, 0.8);
}





/* Language toggle styles */
#google_translate_element {
  position: fixed;
  bottom: 0px;
  width: 100vw;
height: 100px;
  background-color: white;
  color: black;
  z-index: 1001;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

#google_translate_element select {
height: 40px;
background-color: var(--accent);
  color: white;
width: 50vw;
border: 1px solid var(--accent);
border-radius: 5px;
font-size: 16px;
outline: none;
text-align: center;
}

#custom-language-list {
  width: 80%;
  max-width: 400px;
  margin: 0 auto;
  background-color: black;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0px 20px rgb(252, 252, 252, 0.5);
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  list-style-type: none;
}

#custom-language-list li {
  padding: 0 10px;
  cursor: pointer;
  transition: background-color 0.3s;
  color: white;
  height: 40px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: black;
}

#custom-language-list li:hover {
  background-color: #333;/* Dark gray for hover state */
}

/* Dark mode styles */
body.dark-mode #google_translate_element {
  background-color: #1e1e1e; /* Darker background for dark mode */
}

body.dark-mode #custom-language-list {
  background-color: #1e1e1e;
  border-color: #555;
}

body.dark-mode #custom-language-list li:hover {
  background-color: #333;
}

/* Hide the default Google Translate widget */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon {
  display: none !important;
}

/* Hide the white banner that appears after language selection */
body > .skiptranslate {
  display: none;
}

body {
  top: 0 !important;
}

/* Preserve icon spacing after Google Translate loads */
.goog-te-combo {
  font-family: inherit !important;
}

/* Fix spacing issues caused by Google Translate */
.icon-container i,
.mood-icon,
.fa,
[class*="fa-"] {
  margin-right: 8px !important;
  display: inline-block !important;
}

/* Ensure proper spacing in buttons and labels */
.button i,
.btn i,
button i {
  margin-right: 0.5rem !important;
}

/* Fix spacing for vitals sections */
.vitals-section i,
.section i {
  margin-right: 0.5rem !important;
}

/* Preserve spacing in all translated elements */
* [class*="goog-te-"] {
  white-space: nowrap !important;
}

/* Force proper spacing for icon-text combinations */
i + span,
i + text,
.fa + span,
.fa + text {
  margin-left: 0.5rem !important;
}

/* Media query for mobile */
@media (max-width: 768px) {
.footer-language-toggle {
  bottom: 50px;
  left: 10px;
  width: 36px;
  height: 36px;
}
  #languageToggle {
    position: fixed;
    bottom: 60px;
    left: 10px;
  }

.google-translate-element {
  bottom: 50px;
  left: 55px;
}
}