#google_translate_element {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#google_translate_element.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
}

.goog-te-banner-frame {
    display: none !important;
}

body,
body.translated-ltr {
    top: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-ftab {
    display: none !important;
}

.translate-toggle {
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 1020;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    border: 1px solid #e1e8ed;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}

.translate-toggle.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.translate-toggle:hover {
    border-color: #3498db;
    color: #3498db;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

.translate-toggle:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 3px;
}

.translate-toggle svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    #google_translate_element {
        top: 140px;
        right: 10px;
        padding: 6px 10px;
    }

    .translate-toggle {
        right: 12px;
        bottom: 20px;
        font-size: 0.8rem;
        padding: 0.55rem 0.9rem;
    }
}




