/* WhatsApp Floating Widget */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
    animation: slideUp 0.3s ease;
}

.whatsapp-widget.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-widget-header {
    background: linear-gradient(135deg, #128C7E, #075E54);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.whatsapp-widget-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.whatsapp-widget-header p {
    margin: 5px 0 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.whatsapp-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: #25d366;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.whatsapp-close:hover {
    background: #128C7E;
    transform: rotate(90deg);
}

.whatsapp-widget-body {
    padding: 20px;
    background: #ECE5DD;
    min-height: 200px;
}

.whatsapp-message {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent white transparent transparent;
}

.whatsapp-sender {
    font-weight: 600;
    color: #075E54;
    margin-bottom: 5px;
    font-size: 14px;
}

.whatsapp-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.whatsapp-time {
    font-size: 11px;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.whatsapp-widget-footer {
    padding: 15px 20px;
    background: white;
    border-radius: 0 0 12px 12px;
}

.whatsapp-start-chat {
    width: 100%;
    padding: 12px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-start-chat:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-start-chat i {
    font-size: 18px;
}

.whatsapp-powered {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-top: 10px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }

    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }

    .whatsapp-widget {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
}

@media (max-width: 480px) {
    .whatsapp-widget {
        width: calc(100% - 70px);
        right: 10px;
        bottom: 85px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
}