/* WhatsApp Widget Styles */
.whatsapp-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Wave Animation */
.wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: wave 2s infinite;
    pointer-events: none;
}

.wave:nth-child(2) {
    animation-delay: 0.5s;
}

.wave:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

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

/* Chat Bar */
.whatsapp-chat-bar {
    position: fixed;
    left: -400px;
    bottom: 100px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    z-index: 999;
}

.whatsapp-chat-bar.active {
    left: 20px;
}

.chat-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 1.2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-info h3 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.chat-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
    line-height: 1;
}

.close-button:hover {
    background: rgba(255,255,255,0.2);
}

.chat-body {
    padding: 1.5rem;
    background: #f0f0f0;
}

.message-bubble {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message-bubble h4 {
    color: #128C7E;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.message-bubble p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-footer {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-link svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* Hide widget class */
.whatsapp-widget.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-chat-bar {
        width: calc(100vw - 40px);
        left: -100%;
    }

    .whatsapp-chat-bar.active {
        left: 20px;
    }
}
