/* Hide tiny Google default text */
.goog-te-gadget { font-size: 0 !important; }

/* Main button container */
.goog-te-gadget-simple {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 10px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
}
.goog-te-gadget-simple:hover { transform: translateY(-2px); }
.goog-te-gadget-simple:active { transform: translateY(0px) scale(0.97); }

/* Remove Google icon */
.goog-te-gadget-icon { display: none !important; }

/* Force text color */
.goog-te-gadget-simple span { color: #ffffff !important; }

/* Nav container */
#google_translate_nav { display: flex; align-items: center; }

/* Modal styles */
#translateModal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}
#translateModal .modal-content {
  background: #0a1c35;
  padding: 20px 30px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  font-size: 15px;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
#translateModal .modal-content .spinner {
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #4da3ff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin: 0 auto 12px auto;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }