/* WhatsApp Floating Widget Styles */

/* Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

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

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

.whatsapp-button i {
    font-size: 30px;
    color: white;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Chat Box */
.whatsapp-chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-width: calc(100vw - 60px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.whatsapp-chat-box.active {
    transform: scale(1);
}

/* Chat Header */
.whatsapp-chat-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #25D366;
    flex-shrink: 0;
}

.whatsapp-chat-info {
    flex: 1;
    color: white;
}

.whatsapp-chat-title {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.whatsapp-chat-status {
    font-size: 12px;
    opacity: 0.9;
    margin: 2px 0 0 0;
}

.whatsapp-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.whatsapp-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Chat Body */
.whatsapp-chat-body {
    background: #ECE5DD;
    padding: 20px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.whatsapp-message {
    background: white;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent white transparent transparent;
}

.whatsapp-message-text {
    margin: 0;
    font-size: 14px;
    color: #303030;
    line-height: 1.5;
}

.whatsapp-message-time {
    font-size: 11px;
    color: #667781;
    text-align: right;
    margin-top: 4px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Footer */
.whatsapp-chat-footer {
    padding: 15px;
    background: #F0F2F5;
    display: flex;
    gap: 10px;
}

.whatsapp-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 24px;
    background: white;
    font-size: 14px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.whatsapp-input::placeholder {
    color: #999;
}

.whatsapp-send-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.whatsapp-send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.whatsapp-send-button i {
    font-size: 18px;
}

/* Quick Reply Buttons */
.whatsapp-quick-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.whatsapp-quick-reply {
    background: white;
    border: 1px solid #25D366;
    color: #25D366;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    text-align: center;
}

.whatsapp-quick-reply:hover {
    background: #25D366;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button i {
        font-size: 26px;
    }
    
    .whatsapp-chat-box {
        bottom: 85px;
        right: 20px;
        width: calc(100vw - 40px);
    }
}

