/* QR Scanner Notification Styles */

.qr-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    transform: translateX(150%);
    transition: transform 0.3s ease-in-out;
    border-left: 4px solid #6c757d;
}

.qr-notification.show {
    transform: translateX(0);
}

.qr-notification i {
    font-size: 24px;
    flex-shrink: 0;
}

.qr-notification span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #313a46;
}

/* Notification Types */
.qr-notification-success {
    border-left-color: #0acf97;
}

.qr-notification-success i {
    color: #0acf97;
}

.qr-notification-error {
    border-left-color: #fa5c7c;
}

.qr-notification-error i {
    color: #fa5c7c;
}

.qr-notification-warning {
    border-left-color: #ffbc00;
}

.qr-notification-warning i {
    color: #ffbc00;
}

.qr-notification-info {
    border-left-color: #727cf5;
}

.qr-notification-info i {
    color: #727cf5;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .qr-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Scan Details Animation */
.scan-details-content {
    transition: all 0.3s ease;
}

/* QR Reader Container */
#qr-reader {
    border-radius: 8px;
    overflow: hidden;
}

#qr-reader video {
    border-radius: 8px;
    width: 100% !important;
    height: auto !important;
}

#qr-reader__scan_region {
    border-radius: 8px !important;
}

/* Loading State */
.qr-loading {
    position: relative;
}

.qr-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #727cf5;
    border-radius: 50%;
    animation: qr-spin 1s linear infinite;
}

@keyframes qr-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
