@import '_content/Microsoft.Fast.Components.FluentUI/Microsoft.Fast.Components.FluentUI.bundle.scp.css';
@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.exfvxuochq.bundle.scp.css';

/* _content/HRISv2/Components/Layout/Qr/Scan.razor.rz.scp.css */
.scanner-container[b-giudhrz9wj] {
    max-width: 100%;
    padding: 16px;
    text-align: center;
    font-family: "Segoe UI", sans-serif;
}

.title[b-giudhrz9wj] {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #333;
}

/* Keep video responsive */
.video-wrapper[b-giudhrz9wj] {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

video[b-giudhrz9wj] {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.camera-select[b-giudhrz9wj] {
    margin-top: 16px;
}

select[b-giudhrz9wj] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.button-group[b-giudhrz9wj] {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn[b-giudhrz9wj] {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

    .btn.start[b-giudhrz9wj] {
        background: #28a745;
    }

        .btn.start:hover[b-giudhrz9wj] {
            background: #218838;
        }

    .btn.stop[b-giudhrz9wj] {
        background: #dc3545;
    }

        .btn.stop:hover[b-giudhrz9wj] {
            background: #c82333;
        }

.result[b-giudhrz9wj] {
    margin-top: 16px;
    font-size: 1.1rem;
    word-break: break-word;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .title[b-giudhrz9wj] {
        font-size: 1.2rem;
    }

    .btn[b-giudhrz9wj] {
        flex: 1;
        font-size: 0.95rem;
    }
}

.overlay[b-giudhrz9wj] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.laser[b-giudhrz9wj] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: red;
    box-shadow: 0 0 10px red, 0 0 20px red;
    animation: scan-b-giudhrz9wj 2s linear infinite;
}

@keyframes scan-b-giudhrz9wj {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.scan-text[b-giudhrz9wj] {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 8px black;
    font-size: 1.1rem;
}

.qr-dialog[b-giudhrz9wj]  [part="control"] {
    max-width: 900px;
    width: min(95vw, 900px);
}

/* Title */
.qr-title[b-giudhrz9wj] {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Body */
.qr-body[b-giudhrz9wj] {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* QR + Preview wrap */
.qr-code-wrap[b-giudhrz9wj] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.qr-box[b-giudhrz9wj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.qr-img[b-giudhrz9wj],
.uploaded-thumb[b-giudhrz9wj] {
    max-width: 80vw;
    max-height: 250px;
    height: auto;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: contain;
}

.qr-label[b-giudhrz9wj] {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #555;
}

.uploaded-file[b-giudhrz9wj] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f9f9f9;
}

/* Fields */
.qr-grid[b-giudhrz9wj] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.qr-field[b-giudhrz9wj] {
    display: grid;
    gap: 6px;
}

.qr-field label[b-giudhrz9wj] {
    font-size: 0.85rem;
    color: #444;
}

.qr-field input[b-giudhrz9wj] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f8f8f8;
    font-size: 0.95rem;
}

.qr-span-2[b-giudhrz9wj] {
    grid-column: 1 / -1;
}

/* Footer */
.qr-footer[b-giudhrz9wj] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (min-width: 640px) {
    .qr-title[b-giudhrz9wj] {
        text-align: left;
    }

    .qr-code-wrap[b-giudhrz9wj] {
        flex-direction: row;
        justify-content: center;
    }

    .qr-box[b-giudhrz9wj] {
        flex: 1;
    }

    .qr-grid[b-giudhrz9wj] {
        grid-template-columns: 1fr 1fr;
    }

    .qr-footer[b-giudhrz9wj] {
        flex-direction: row;
        justify-content: flex-end;
    }
}
