/* Floating WhatsApp button styles */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: slideDown 1s ease-out forwards;
}

.whatsapp-float:hover {
    background-color: #20b358;
    transform: scale(1.1);
}

.whatsapp-float i {
    font-size: 24px;
}

/* Chat text label */
.whatsapp-float .chat-text {
    display: none;
    position: absolute;
    left: 70px; /* Position to the right of the button */
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.whatsapp-float:hover .chat-text {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Animation for sliding from header to bottom-left */
@keyframes slideDown {
    0% {
        top: 80px; /* Starting near the header */
        left: 20px;
        opacity: 0;
    }
    100% {
        top: auto;
        bottom: 20px;
        left: 20px;
        opacity: 1;
    }
}

/* Ensure button stays visible on smaller screens */
@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
    .whatsapp-float i {
        font-size: 20px;
    }
    .whatsapp-float .chat-text {
        font-size: 12px;
        left: 60px;
        padding: 4px 8px;
    }
}