@charset "utf-8";

#azure-translate-widget {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Adjust this to position next to currency widget */
    z-index: 99999;
    font-family: Arial, sans-serif;
}

#azure-translate-button {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 12px 18px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

#azure-translate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

#azure-translate-button img {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

#azure-translate-button span {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

#azure-translate-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
    display: none;
}

.azure-translate-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 6px;
}

.azure-translate-option:hover {
    background-color: #f8f9fa;
}

.azure-translate-option:last-child {
    border-bottom: none;
}

.azure-translate-option img {
    margin-right: 10px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
    border-radius: 50%;
}

.azure-translate-option span {
    font-size: 16px;
    color: #2c3e50;
}

.azure-translation-status {
    position: fixed;
    bottom: 80px;
    left: 120px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 99998;
}

.azure-translation-status.active {
    display: flex;
}

.azure-status-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: azure-spin 0.8s linear infinite;
}

@keyframes azure-spin {
    to { transform: rotate(360deg); }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #azure-translate-widget {
        bottom: 20px;
        left: 20px;
    }
    
    #azure-translate-button {
        padding: 10px 16px;
    }
    
    #azure-translate-button img {
        width: 21px;
        height: 21px;
        margin-right: 8px;
    }
    
    #azure-translate-button span {
        font-size: 15px;
    }
    
    #azure-translate-options {
        width: calc(100vw - 40px);
        max-width: 300px;
        left: 0;
    }
    
    .azure-translation-status {
        left: 80px;
    }
    
    @media (max-width: 320px) {
        #azure-translate-options {
            width: calc(100vw - 20px);
            left: 0;
        }
    }
}