/* Language Switcher Styles */
.language-switcher {
    position: fixed !important;
    bottom: 100px !important;
    left: 20px !important;
    z-index: 999999 !important;
    font-family: 'Cairo', sans-serif;
    display: block !important;
    visibility: visible !important;
    overflow: visible !important;
}

.language-switcher .lang-btn {
    background: linear-gradient(135deg, #0066cc, #004999);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.language-switcher .lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
    background: linear-gradient(135deg, #004999, #0066cc);
}

.language-switcher .lang-btn i {
    font-size: 18px;
}

.language-switcher .lang-text {
    font-weight: 600;
}

.language-switcher .lang-dropdown {
    position: absolute !important;
    bottom: calc(100% + 10px) !important;
    left: 0 !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    min-width: 180px !important;
    width: auto !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: visible !important;
    z-index: 9999999 !important;
    pointer-events: none;
    display: block !important;
    max-height: 0;
    padding: 0;
    margin: 0;
}

.language-switcher .lang-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    display: block !important;
    max-height: 500px !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.language-switcher .lang-option {
    width: 100% !important;
    padding: 12px 20px !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: left !important;
    transition: all 0.2s ease;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999999 !important;
    white-space: nowrap !important;
    min-height: 44px !important;
}

.language-switcher .lang-option:hover {
    background: #f5f5f5;
    color: #0066cc;
}

.language-switcher .lang-option.active {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 73, 153, 0.1));
    color: #0066cc;
    font-weight: 700;
}

.language-switcher .lang-option.active::after {
    content: '✓';
    margin-left: auto;
    color: #0066cc;
    font-weight: bold;
}

.language-switcher .lang-flag {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* RTL Support for Language Switcher */
[dir="rtl"] .language-switcher {
    left: auto;
    right: 20px;
}

[dir="rtl"] .language-switcher .lang-dropdown {
    left: auto;
    right: 0;
}

[dir="rtl"] .language-switcher .lang-option {
    text-align: right;
}

[dir="rtl"] .language-switcher .lang-option.active::after {
    margin-left: 0;
    margin-right: auto;
}

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

body {
    top: 0 !important;
}

#google_translate_element {
    display: none !important;
}

/* Hide Google Translate select if visible */
.goog-te-combo {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switcher {
        bottom: 80px;
        left: 15px;
    }
    
    [dir="rtl"] .language-switcher {
        left: auto;
        right: 15px;
    }
    
    .language-switcher .lang-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .language-switcher .lang-text {
        display: none;
    }
    
    .language-switcher .lang-dropdown {
        min-width: 160px;
    }
}
