/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-decoration: none;
    font-size: 32px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    position: relative;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

/* Online status dot */
.whatsapp-button::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: #00ff00; /* Bright green */
    border: 2px solid white;
    border-radius: 50%;
}

/* Notification Popup */
.whatsapp-notification {
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-left: 15px; /* Position to the right of the button since button is on Left */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
    max-width: 200px;
    font-size: 14px;
    position: relative;
    border-left: 5px solid #25D366;
    display: none; /* Hidden by default */
}

/* Arrow pointing left to the button */
.whatsapp-notification::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.whatsapp-notification.show {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.notification-header {
    font-weight: 600;
    color: #075e54;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-body {
    color: #555;
    font-size: 12px;
}

.notification-badge {
    background-color: #ff0000;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
