.language-switcher {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    transform: translateZ(0); /* Force GPU acceleration */
    will-change: transform; /* Optimize for animations */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .language-switcher {
        position: fixed;
        left: 16px;
        bottom: 16px;
        transform: translateZ(0);
        /* Ensure the element is always visible */
        opacity: 1 !important;
        visibility: visible !important;
    }
}

.language-switcher-button {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.language-switcher-button:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.language-switcher-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.language-dropdown {
    position: absolute;
    bottom: 50px;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px;
    display: none;
    min-width: 100px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

/* Popup System */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup.show {
    opacity: 1;
    transform: translateY(0);
}

.popup-content {
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
}

.popup.success .popup-content {
    background-color: #4CAF50;
    color: white;
}

.popup.error .popup-content {
    background-color: #f44336;
    color: white;
}

.popup.info .popup-content {
    background-color: #2196F3;
    color: white;
} 