/*** GOOGLE TRANSLATE STYLES - CLEAN AND WORKING VERSION ***/

/* Container */
/* Hide the ugly Google branding tooltip */
.goog-te-combo {
    background-color: #f0f0f0 !important;
    color: #000 !important;
    border: 2px solid #007bff !important;
    padding: 5px !important;
    font-size: 14px !important;
}

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

/* Remove extra spacing Google adds */
body {
    top: 0px !important;
}

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

/* Style the language dropdown */
#google_translate_element select {
    background: #fff;
    color: #333;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}


#google_translate_element {
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
}

/* Main Widget */
.goog-te-gadget {
    font-family: inherit !important;
    font-size: 14px !important;
    color: transparent !important;
    display: inline-block !important;
}

/* Dropdown Select */
.goog-te-gadget .goog-te-combo {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 30px 8px 12px !important;
    border-radius: 8px !important;
    outline: none !important;
    min-width: 140px !important;
    height: 38px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3e%3cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px !important;
    
    /* Remove default styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Hover Effects */
.goog-te-gadget .goog-te-combo:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Focus Effects */
.goog-te-gadget .goog-te-combo:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
}

/* Dropdown Options */
.goog-te-gadget .goog-te-combo option {
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: normal !important;
}

.goog-te-gadget .goog-te-combo option:hover {
    background-color: #f8f9fa !important;
    color: #007bff !important;
}

.goog-te-gadget .goog-te-combo option:checked,
.goog-te-gadget .goog-te-combo option:selected {
    background-color: #007bff !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Simple Layout */
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    font-size: 14px !important;
    display: inline-block !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: white !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    min-width: 140px !important;
    text-align: center !important;
}

.goog-te-gadget-simple .goog-te-menu-value:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: white !important;
    font-weight: 500 !important;
}

/* Globe Icon */
.goog-te-gadget-simple .goog-te-menu-value:before {
    content: "🌐 " !important;
    margin-right: 5px !important;
}

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

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget .goog-te-gadget-simple .goog-te-menu-value img {
    display: none !important;
}

/* Body Position */
body {
    top: 0px !important;
}

/* Loading State */
#google_translate_element:empty::after {
    content: "🌐 Language";
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    min-width: 140px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .goog-te-gadget .goog-te-combo,
    .goog-te-gadget-simple .goog-te-menu-value,
    #google_translate_element:empty::after {
        min-width: 120px !important;
        font-size: 13px !important;
        padding: 6px 25px 6px 10px !important;
        height: 34px !important;
    }
    
    .goog-te-gadget-simple .goog-te-menu-value {
        padding: 6px 10px !important;
    }
}

/* Z-index */
.goog-te-gadget .goog-te-combo {
    position: relative !important;
    z-index: 1000 !important;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#google_translate_element .goog-te-gadget {
    animation: fadeIn 0.5s ease-in;
}