/* translations.css */
.translate-widget {
    position: fixed;
    top: 20px;
    right: 70px;
    z-index: 1000;
}
 
.language-toggle {
    background-color: transparent;
    color: #fff;
    border: 2px solid white;
    border-radius: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
} 

.language-toggle:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.language-toggle i {
    font-size: 18px;
}

.language-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    padding: 10px 0;
    z-index: 1001;
}

.language-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.8);
}

.show-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown .dropdown-title {
    color: #9f9f9f;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 15px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(124, 124, 124, 0.3);
}

.lang-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-option {
    padding: 0;
    cursor: pointer;
}

.lang-option a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
}

.lang-option a:hover {
    background-color: rgba(124, 124, 124, 0.3);
}

.lang-option.active a {
    background-color: rgba(124, 124, 124, 0.3);
}

.lang-option i {
    margin-right: 10px;
    font-size: 14px;
}

.lang-option .lang-name {
    font-size: 14px;
}

.lang-option .lang-native {
    margin-left: 5px;
    opacity: 0.7;
    font-size: 12px;
}

.translate-status {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 12px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.translate-status:not(:empty) {
    opacity: 1;
}

/* Mobile styles */
@media (max-width: 768px) {
    .translate-widget {
        top: 37px;
        right: 125px;
    }
    
    .language-toggle {
        width: 38px;
        height: 38px;
    }
    
    .language-toggle i {
        font-size: 16px;
    }
    
    .language-dropdown {
        top: 45px;
        min-width: 180px;
    }
}

/* Required Google Translate hacks to fix the UI */
body {
    top: 0 !important;
}

/* Hide Google Translate elements */
.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-value:hover {
    text-decoration: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

.goog-te-gadget {
    height: 0 !important;
    overflow: hidden;
}

.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-SmfZ-OEVmcd {
    display: none !important;
}