/* Google Translate Widget Custom Styling */

/* Hide Google branding and default skiptranslate banner */
.skiptranslate {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

#goog-gt-tt, .goog-te-balloon-frame, .goog-te-banner-frame {
  display: none !important;
}

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

/* Main widget container */

/* Add a clear label before the widget for context */
.translate-widget-label {
  display: inline-block;
  font-size: 1.08em;
  font-weight: 700;
  color: #2563eb;
  margin-right: 0.75em;
  letter-spacing: 0.01em;
  vertical-align: middle;
  background: #f0f9ff;
  border-radius: 0.5em;
  padding: 0.25em 0.75em;
  box-shadow: 0 2px 8px 0 rgba(30,41,59,0.06);
}

.goog-te-gadget-simple {
  margin-left: 0.5em;
  margin-right: 0.5em;
/* Responsive: make label and widget stack on mobile */
@media (max-width: 640px) {
  .translate-widget-label {
    display: block;
    margin-bottom: 0.5em;
    margin-right: 0;
    text-align: left;
    font-size: 1em;
    padding: 0.2em 0.5em;
  }
  .goog-te-gadget-simple {
    margin-left: 0;
    margin-right: 0;
  }
}
  background: 1 #fff !important;
  background: var(--tw-bg-opacity,1) #fff !important;
  border: 1.5px solid #2563eb !important; /* blue-600 */
  border-radius: 0.75rem !important; /* rounded-xl */
  padding: 0.5rem 1.25rem !important; /* px-5 py-2 */
  font-size: 1.08rem !important;
  color: #1e293b !important; /* slate-800 */
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  box-shadow: 0 4px 16px 0 rgba(30,41,59,0.10);
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer !important;
  min-width: 180px;
  min-height: 44px;
  font-weight: 600;
  position: relative;
}

.goog-te-gadget-simple:focus-within, .goog-te-gadget-simple:focus, .goog-te-gadget-simple a:focus {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
  border-color: #1d4ed8 !important;
  background: #eff6ff !important;
}

.goog-te-gadget-simple:hover, .goog-te-gadget-simple a:hover {
  border-color: #1d4ed8 !important;
  background: #f0f9ff !important;
  color: #1d4ed8 !important;
}

/* Add a globe icon before the label for context */
.goog-te-gadget-simple:before {
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.6em;
  vertical-align: middle;
  background: url("data:image/svg+xml;utf8,<svg fill=\"none\" stroke=\"%232563eb\" stroke-width=\"2\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"%232563eb\"/><path d=\"M2 12h20M12 2c2.5 2.5 4 6.5 4 10s-1.5 7.5-4 10c-2.5-2.5-4-6.5-4-10s1.5-7.5 4-10z\" stroke=\"%232563eb\"/></svg>") no-repeat center/1.25em 1.25em;
  filter: none;
}

/* Make the label more prominent */
.goog-te-gadget-simple span, .goog-te-gadget-simple a span {
  font-size: 1.08em !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  letter-spacing: 0.01em;
}

/* Hide the default Google icon and extra images */
.goog-te-gadget-icon,
.goog-te-gadget-simple img[alt=""],
.goog-te-gadget-simple img[width="1"][height="1"] {
  display: none !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .goog-te-gadget-simple {
    background: #1e293b !important; /* slate-800 */
    color: #e2e8f0 !important; /* slate-200 */
    border-color: #2563eb !important; /* blue-600 */
    box-shadow: 0 4px 16px 0 rgba(15,23,42,0.18);
  }
  .goog-te-gadget-simple:before {
    background: url("data:image/svg+xml;utf8,<svg fill=\"none\" stroke=\"%23e2e8f0\" stroke-width=\"2\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"12\" cy=\"12\" r=\"10\" stroke=\"%23e2e8f0\"/><path d=\"M2 12h20M12 2c2.5 2.5 4 6.5 4 10s-1.5 7.5-4 10c-2.5-2.5-4-6.5-4-10s1.5-7.5 4-10z\" stroke=\"%23e2e8f0\"/></svg>") no-repeat center/1.25em 1.25em;
  }
  .goog-te-gadget-simple span, .goog-te-gadget-simple a span {
    color: #60a5fa !important; /* blue-400 */
  }
}

/* Dropdown arrow and text */
.goog-te-gadget-simple span[aria-hidden="true"] {
  color: #64748b !important; /* slate-400 */
  margin-left: 0.5rem;
}

.goog-te-gadget-simple a {
  color: #2563eb !important; /* blue-600 */
  text-decoration: none !important;
  font-weight: 500;
  padding: 0;
  background: none !important;
  transition: color 0.2s;
}
.goog-te-gadget-simple a:hover {
  color: #1d4ed8 !important; /* blue-700 */
}

/* Remove extra spacing and fix alignment */
.goog-te-gadget-simple span {
  vertical-align: middle !important;
}

/* Hide the powered by Google text */
.goog-logo-link, .goog-te-gadget span {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .goog-te-gadget-simple {
    font-size: 0.95rem !important;
    padding: 0.25rem 0.5rem !important;
  }
}

