/* ============================
   Ferramentaria — scanner.css
   ============================ */

body {
    background: #0d0f14;
    color: #e9ecef;
    font-size: 1.1rem;
}

/* ── Tipografia acessível para modo kiosk ── */
h5, .card-header .fw-semibold { font-size: 1.35rem !important; }
.card-header { font-size: 1.15rem; }
.form-label, label { font-size: 1.05rem !important; }
.form-control, .form-select, .input-group-text { font-size: 1.1rem !important; }
.form-control-lg, .form-select-lg { font-size: 1.25rem !important; }
.btn { font-size: 1.05rem; }
.btn-lg { font-size: 1.25rem !important; }
.nav-link { font-size: 1.1rem !important; }
.alert { font-size: 1.05rem; }
.badge { font-size: 0.95rem !important; }
small, .small, .text-white-50 { font-size: 0.95rem !important; }
.table { font-size: 1.05rem; }
.table th { font-size: 1.05rem; }
.table td { font-size: 1.05rem; padding: .6rem .75rem; }
.table td code { font-size: 1rem; }
.modal-title { font-size: 1.3rem !important; }
.modal-body { font-size: 1.05rem; }
.modal-body .form-label { font-size: 1rem !important; }
.scanner-btn-lg { font-size: 1.2rem; }
.scanner-btn-lg i.fs-1 { font-size: 3rem !important; }

/* QuaggaJS viewport canvas */
#scannerViewport canvas,
#scannerViewport video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

#scannerViewport canvas.drawingBuffer {
    position: absolute;
    top: 0;
    left: 0;
}

/* Scan line animation */
#scannerViewport::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4fc3f7, transparent);
    animation: scanline 2s linear infinite;
    top: 0;
    z-index: 10;
}

@keyframes scanline {
    0%   { top: 10%; }
    50%  { top: 90%; }
    100% { top: 10%; }
}

/* Scanner buttons */
.scanner-btn-lg {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
    display: block;
}

.scanner-btn-lg:hover {
    background: rgba(255,255,255,.1);
    transform: scale(1.03);
    border-color: rgba(255,255,255,.3);
}

/* Input dark */
.form-control.dark-input {
    background: #1a1d23;
    border-color: #3a3f4b;
    color: #e9ecef;
}

.form-control.dark-input:focus {
    background: #1a1d23;
    border-color: #4f8bf9;
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(79,139,249,.25);
}

/* Item card preview */
.item-preview-card {
    background: #1a1d23;
    border: 1px solid #3a3f4b;
    border-radius: .75rem;
    padding: 1.25rem;
}

.item-preview-card.found {
    border-color: #198754;
    box-shadow: 0 0 0 1px rgba(25,135,84,.4);
}

.item-preview-card.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px rgba(220,53,69,.4);
}
