/* Google Translate Styles for QRAPT Mosha Pijadde */

/* Container styling */
#google_translate_element {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* Clean up Google Translate appearance */
.goog-te-gadget {
    font-family: inherit !important;
    font-size: 0 !important; /* Hide the default text */
}

/* Style the dropdown */
.goog-te-gadget .goog-te-combo {
    background-color: var(--bg-color, white);
    color: var(--text-color, black);
    border: 1px solid var(--border-color, #ccc);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    height: 32px;
    outline: none;
    min-width: 140px;
    cursor: pointer;
}

/* Dark mode adjustments */
[data-theme="dark"] .goog-te-gadget .goog-te-combo {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

/* Hide Google attribution */
.goog-te-gadget-simple img,
.goog-te-gadget img,
.goog-te-menu-value span,
.goog-te-menu-value img,
.goog-te-gadget span:not(.goog-te-combo) {
    display: none !important;
}

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

/* Fix body positioning issues caused by Google Translate */
body {
    top: 0px !important;
}

/* Fix container for translated state */
body.google-translated {
    position: static !important;
}

/* Utility controls styling */
.utility-controls {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #google_translate_element {
        margin: 10px auto;
        text-align: center;
    }
    
    .navbar.menu-visible #google_translate_element {
        margin-top: 15px;
    }
    
    .goog-te-gadget .goog-te-combo {
        width: 140px;
        max-width: 90%;
    }
    
    .utility-controls {
        justify-content: center;
        margin: 15px 0;
        width: 100%;
    }
}
