/**
 * Camera Feed CSS Fixes
 * This file contains CSS fixes for common camera feed display issues
 */

/* Force video elements to be visible */
video.qr-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
    object-fit: cover !important;
    background-color: #000 !important;
}

/* Add a "loading" indicator that goes away when video is playing */
.qr-video:not([src]) {
    position: relative;
}

.qr-video:not([src])::after {
    content: "Starting camera...";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
}

/* Fix for scanner controls */
.scan-region-highlight-svg, 
.code-outline-highlight {
    z-index: 2 !important;
}
