/* Language Selector Container */
.language-selector-container {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

/* Google Translate Widget Styles */
.goog-te-gadget {
    font-family: 'Arial', sans-serif !important;
    margin: 0 !important;
}

.goog-te-gadget-simple {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.98) 100%) !important;
    border: 2px solid #ff4444 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 
        0 0 20px rgba(255, 68, 68, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(5px);
    min-width: 180px !important;
}

.goog-te-gadget-simple:hover {
    box-shadow: 
        0 0 30px rgba(255, 68, 68, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.6),
        0 6px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #ff6666 !important;
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 1) 100%) !important;
}

.goog-te-combo {
    background: transparent !important;
    color: #1a1a1a !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    min-width: 160px !important;
    max-width: 220px !important;
    width: 100% !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 20px !important;
    padding-right: 32px !important;
}

.goog-te-combo:hover {
    background-color: rgba(255, 68, 68, 0.08) !important;
    color: #ff4444 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
}

.goog-te-combo:focus {
    outline: none !important;
    box-shadow: inset 0 0 10px rgba(255, 68, 68, 0.2) !important;
}

/* Hide Google Translate branding */
.goog-logo-link {
    display: none !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
}

/* Customize dropdown */
.goog-te-combo option {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    min-width: 180px !important;
}

.goog-te-combo option:hover {
    background: linear-gradient(#ff4444, #ff4444) !important;
    background-color: #ff4444 !important;
    color: #ffffff !important;
}

.goog-te-combo option:checked {
    background: linear-gradient(#ff4444, #ff4444) !important;
    background-color: #ff4444 !important;
    color: #ffffff !important;
}

/* Desktop styles */
@media (min-width: 992px) {
    .language-selector-container {
        right: 30px;
        top: 50%;
    }

    .goog-te-gadget-simple {
        min-width: 200px !important;
    }

    .goog-te-combo {
        padding: 11px 32px 11px 16px !important;
        font-size: 13px !important;
        min-width: 180px !important;
    }
}

/* Tablet/Mobile responsiveness */
@media (max-width: 1200px) {
    .language-selector-container {
        right: 15px;
    }

    .goog-te-gadget-simple {
        min-width: 180px !important;
    }

    .goog-te-combo {
        font-size: 12px !important;
        padding: 9px 32px 9px 14px !important;
        min-width: 160px !important;
    }
}

@media (max-width: 768px) {
    .language-selector-container {
        position: static;
        transform: none;
        margin-top: 10px;
        text-align: center;
        padding: 10px 0;
    }

    .goog-te-gadget-simple {
        display: inline-block;
        border: 2px solid #ff4444 !important;
        min-width: 200px !important;
    }

    .goog-te-combo {
        font-size: 12px !important;
        padding: 10px 32px 10px 12px !important;
        min-width: 180px !important;
    }
}

@media (max-width: 576px) {
    .language-selector-container {
        padding: 8px 0;
    }

    .goog-te-gadget-simple {
        min-width: 220px !important;
        width: 90vw !important;
        max-width: 220px !important;
    }

    .goog-te-combo {
        font-size: 11px !important;
        padding: 8px 32px 8px 12px !important;
        min-width: 200px !important;
    }
}
