/* Scanning Overlay */
#scanningOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.scanner-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Rectangular Scan Frame for Serial Numbers */
.radar {
    width: 280px;
    height: 70px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    margin-bottom: 20px;
}

.radar-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.4), transparent);
    animation: scanLine 2s linear infinite;
    transform: translateY(-100%);
}

@keyframes scanLine {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Dot removed for text visibility */
.radar::after {
    display: none;
}

.scanning-text h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.scanning-text p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

@keyframes radarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Response Fixes for Camera */
#ocrVideo {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .scanner-container {
        width: 100%;
        padding: 20px;
    }
}