/* WhatsApp Floating Button & Popup Styles */

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

.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;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    animation: pulse 2s infinite;
}

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

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

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #FF6B35;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    animation: bounce 1s infinite;
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s ease;
}

.whatsapp-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-popup-avatar {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-popup-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.whatsapp-popup-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.whatsapp-popup-info p {
    margin: 5px 0 0 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.whatsapp-popup-close {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

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

.whatsapp-popup-body {
    padding: 20px;
}

.whatsapp-message {
    background: #F0F0F0;
    padding: 15px;
    border-radius: 0 12px 12px 12px;
    margin-bottom: 15px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

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

.whatsapp-contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #F8F9FA;
    border-radius: 10px;
    margin-bottom: 15px;
}

.whatsapp-contact-info i {
    color: #25D366;
    font-size: 1.2rem;
}

.whatsapp-contact-details {
    flex: 1;
}

.whatsapp-contact-details strong {
    display: block;
    color: #333;
    font-size: 0.95rem;
}

.whatsapp-contact-details span {
    color: #6c757d;
    font-size: 0.85rem;
}

.whatsapp-action-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.whatsapp-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-action-button i {
    font-size: 1.2rem;
}

.whatsapp-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #E9ECEF;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Animations */
@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.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

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

/* Notification dot animation */
.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background: #FF6B35;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}
