/**
 * WhatsApp Global Indicator - Indicador de envio em background
 */

#whatsapp-global-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: slideInRight 0.5s ease;
    max-width: 350px;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#whatsapp-global-indicator .indicator-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

#whatsapp-global-indicator .fa-whatsapp {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

#whatsapp-global-indicator .indicator-text {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
}

#whatsapp-global-indicator .indicator-progress {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
}

#whatsapp-global-indicator .indicator-view-btn {
    background: white;
    color: #25D366;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

#whatsapp-global-indicator .indicator-view-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

#whatsapp-global-indicator .indicator-view-btn .fa {
    margin-right: 4px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #whatsapp-global-indicator {
        top: auto;
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    #whatsapp-global-indicator .indicator-content {
        flex-wrap: wrap;
    }
    
    #whatsapp-global-indicator .indicator-view-btn {
        width: 100%;
        margin-top: 8px;
    }
}
