/* Add to Contact Plugin Styles */

.add-to-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    text-align: center;
}

/* QR Code Section Styles */
.add-to-contact-qr-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.add-to-contact-qr-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.add-to-contact-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    display: inline-block;
}

.qr-code-image {
    display: block;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Button Styles */

.add-to-contact-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    line-height: 1;
}

.add-to-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Default hover background for buttons without custom background */
.add-to-contact-btn:not([style*="background"]):hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Hover effect for buttons with custom background colors */
.add-to-contact-btn[style*="background"]:hover {
    filter: brightness(0.9);
}

/* Hover effect for buttons with custom text colors */
.add-to-contact-btn[style*="color"]:hover {
    opacity: 0.9;
}

.add-to-contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.add-to-contact-btn:disabled,
.add-to-contact-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.add-to-contact-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-to-contact-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.add-to-contact-text {
    white-space: nowrap;
}

/* Loading animation */
.add-to-contact-btn.loading .add-to-contact-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Notification styles */
.add-to-contact-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.add-to-contact-notification.show {
    transform: translateX(0);
}

.add-to-contact-notification-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.add-to-contact-notification-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.add-to-contact-notification-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Alternative button styles */
.add-to-contact-btn.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.add-to-contact-btn.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.add-to-contact-btn.btn-minimal {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.add-to-contact-btn.btn-minimal:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .add-to-contact-wrapper {
        margin: 15px 0;
    }
    
    .add-to-contact-qr-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .add-to-contact-qr-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .qr-code-image {
        max-width: 150px !important;
        height: auto;
    }
    
    .add-to-contact-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .add-to-contact-notification {
        right: 10px;
        top: 10px;
        max-width: 250px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .add-to-contact-qr-section {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .qr-code-image {
        max-width: 120px !important;
    }
    
    .add-to-contact-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.add-to-contact-btn.btn-minimal {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    box-shadow: none;
}

.add-to-contact-btn.btn-minimal:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .add-to-contact-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .add-to-contact-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .add-to-contact-notification.show {
        transform: translateY(0);
    }
}


