/* WhatsApp Popup Styles */
.whatsapp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.whatsapp-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1001;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.whatsapp-popup.active {
    display: block;
}

.whatsapp-popup-overlay.active {
    display: block;
}

/* WhatsApp Popup Header */
.whatsapp-popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    position: relative;
}

.whatsapp-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.whatsapp-header-text h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.whatsapp-header-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.whatsapp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.whatsapp-popup-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* WhatsApp Popup Body */
.whatsapp-popup-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.whatsapp-options {
    margin-bottom: 25px;
}

.option-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 600;
}

.option-title i {
    color: #4299e1;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.whatsapp-option-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-option-btn:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    border-color: #cbd5e0;
}

.option-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.option-text strong {
    display: block;
    font-size: 13px;
    color: #2d3748;
    margin-bottom: 2px;
}

.option-text small {
    display: block;
    font-size: 11px;
    color: #718096;
}

/* WhatsApp Custom Message */
.whatsapp-custom {
    margin-bottom: 25px;
}

.custom-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 600;
}

.custom-title i {
    color: #4299e1;
}

.custom-textarea {
    position: relative;
    margin-bottom: 10px;
}

.custom-textarea textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}

.custom-textarea textarea:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.char-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #a0aec0;
    background: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.custom-actions {
    display: flex;
    gap: 10px;
}

.btn-whatsapp-send {
    flex: 1;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-whatsapp-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-copy {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* WhatsApp Contact Info */
.whatsapp-contact-info {
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 13px;
}

.contact-item i {
    color: #4299e1;
    width: 16px;
}

@media (max-width: 480px) {
    .whatsapp-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .whatsapp-popup-body {
        max-height: 70vh;
    }
    
    .custom-actions {
        flex-direction: column;
    }
}

/* WhatsApp Notification */
.whatsapp-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: slideUp 0.3s ease;
    max-width: 90%;
    word-break: break-word;
}

.whatsapp-notification.success {
    background: #38a169;
}

.whatsapp-notification.error {
    background: #e53e3e;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}