/**
 * QR Code Scanner Styles
 * Circular icon button version
 */

/* Fixed button - Circular icon style */
.sj-qr-scanner-wrapper-abc123 {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9999;
}

.sj-qr-scanner-button-abc123 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.sj-qr-scanner-button-abc123:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: scale(1.05);
}

.sj-qr-scanner-button-abc123:active {
    transform: scale(0.95);
}

.sj-qr-scanner-button-abc123:focus {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

/* QR Code Icon */
.sj-qr-scanner-button-abc123 svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* Hide button text */
.sj-qr-scanner-text-abc123 {
    display: none;
}

/* Tooltip on hover */
.sj-qr-scanner-button-abc123::before {
    content: 'Scan QR Code';
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sj-qr-scanner-button-abc123::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 20px;
    margin-bottom: 2px;
    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sj-qr-scanner-button-abc123:hover::before,
.sj-qr-scanner-button-abc123:hover::after {
    opacity: 1;
}

/* Modal */
.sj-qr-modal-abc123 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.sj-qr-modal-content-abc123 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Modal header */
.sj-qr-modal-header-abc123 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.sj-qr-modal-header-abc123 h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.sj-qr-close-btn-abc123 {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sj-qr-close-btn-abc123:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sj-qr-close-btn-abc123:focus {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}

/* Modal body */
.sj-qr-modal-body-abc123 {
    padding: 32px 24px;
}

/* Input container */
.sj-qr-input-container-abc123 {
    margin-bottom: 20px;
}

.sj-qr-input-wrapper-abc123 {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.sj-qr-input-wrapper-abc123:focus-within {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.sj-qr-input-icon-abc123 {
    position: absolute;
    left: 16px;
    width: 24px;
    height: 24px;
    color: #6b7280;
    pointer-events: none;
}

.sj-qr-input-field-abc123 {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    outline: none;
}

.sj-qr-input-field-abc123::placeholder {
    color: #9ca3af;
}

/* Hint text */
.sj-qr-hint-abc123 {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
}

/* Status messages */
.sj-qr-status-abc123 {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sj-qr-status-abc123:empty {
    display: none;
}

.sj-qr-status-processing-abc123 {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.sj-qr-status-success-abc123 {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sj-qr-status-error-abc123 {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sj-qr-scanner-wrapper-abc123 {
        right: 15px;
        bottom: 60px;
    }
    
    .sj-qr-scanner-button-abc123 {
        width: 48px;
        height: 48px;
    }
    
    .sj-qr-scanner-button-abc123 svg {
        width: 24px;
        height: 24px;
    }
    
    /* Hide tooltip on mobile */
    .sj-qr-scanner-button-abc123::before,
    .sj-qr-scanner-button-abc123::after {
        display: none;
    }
    
    .sj-qr-modal-content-abc123 {
        width: 95%;
    }
    
    .sj-qr-modal-header-abc123 {
        padding: 16px 20px;
    }
    
    .sj-qr-modal-body-abc123 {
        padding: 24px 20px;
    }
    
    .sj-qr-input-field-abc123 {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Tablet */
@media (max-width: 480px) {
    .sj-qr-scanner-button-abc123 {
        width: 44px;
        height: 44px;
    }
    
    .sj-qr-scanner-button-abc123 svg {
        width: 22px;
        height: 22px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sj-qr-scanner-button-abc123 {
        border: 2px solid currentColor;
    }
    
    .sj-qr-modal-content-abc123 {
        border: 2px solid currentColor;
    }
    
    .sj-qr-input-wrapper-abc123 {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sj-qr-scanner-button-abc123,
    .sj-qr-close-btn-abc123,
    .sj-qr-input-wrapper-abc123,
    .sj-qr-status-abc123 {
        transition: none;
    }
}

/* Pulse animation for attention */
@keyframes pulse-abc123 {
    0% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }
}

/* Add pulse effect on first load */
.sj-qr-scanner-button-abc123 {
    animation: pulse-abc123 2s ease-in-out 3;
}