header {
    background: linear-gradient(
        to bottom,
        #000000 0%,
        #111111 100%
    );
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}
header .logo {
    max-height: 48px;
}
#reader {
    width: 100%;
    height: 100%;
}

.teste {
   background: linear-gradient(
        to bottom,
        #000000 0%,
        #111111 100%
    );
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}



/* Setas em tom escuro */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: none;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

/* Ajuste para centralizar melhor o Ã­cone */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60% 60%;
}

/* Indicators em barras escuras */
.carousel-indicators {
    bottom: 12px;
}

.carousel-indicators [data-bs-target] {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.45);
    margin: 0 4px;
    transition: background-color 0.3s ease;
}

/* Indicator ativo â€“ escuro sÃ³lido */
.carousel-indicators .active {
    background-color: rgba(0, 0, 0, 0.85);
}

/* ==============================
   CONFIGURAÃ‡Ã•ES GERAIS
================================ */
.camera-wrapper {
    position: relative;
    width: 100%;
    height: 35vh;
    background: #000;
    overflow: hidden;
	border-radius: 15px;
}

#preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



:root {
    --scan-size: 60vw;              /* Tamanho do quadrado */
    --scan-max-size: 260px;         /* Limite máximo */
    --scan-top: 50%;                /* Centralizado */
    --mask-color: rgba(0,0,0,0.65); /* Fundo escuro */
    --corner-size: 26px;            /* Tamanho do canto */
    --corner-thickness: 4px;        /* Espessura do canto */
}



.mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}



.scan-area {
    position: absolute;
    top: var(--scan-top);
    left: 50%;
    width: min(var(--scan-size), var(--scan-max-size));
    height: min(var(--scan-size), var(--scan-max-size));
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(2px);
    border-radius: 8px;
    z-index: 3;
}

.mask-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(50% - (min(var(--scan-size), var(--scan-max-size)) / 2));
    background: var(--mask-color);
}

.mask-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(50% - (min(var(--scan-size), var(--scan-max-size)) / 2));
    background: var(--mask-color);
}

.mask-left {
    position: absolute;
    top: calc(50% - (min(var(--scan-size), var(--scan-max-size)) / 2));
    left: 0;
    width: calc(50% - (min(var(--scan-size), var(--scan-max-size)) / 2));
    height: min(var(--scan-size), var(--scan-max-size));
    background: var(--mask-color);
}

.mask-right {
    position: absolute;
    top: calc(50% - (min(var(--scan-size), var(--scan-max-size)) / 2));
    right: 0;
    width: calc(50% - (min(var(--scan-size), var(--scan-max-size)) / 2));
    height: min(var(--scan-size), var(--scan-max-size));
    background: var(--mask-color);
}

.scan-area::before,
.scan-area::after {
    content: '';
    position: absolute;
    width: var(--corner-size);
    height: var(--corner-size);
    border-color: #fff;
    border-style: solid;
}

/* Canto superior esquerdo */
.scan-area::before {
    top: -2px;
    left: -2px;
    border-width: var(--corner-thickness) 0 0 var(--corner-thickness);
}

/* Canto inferior direito */
.scan-area::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 var(--corner-thickness) var(--corner-thickness) 0;
}

/* Canto superior direito */
.scan-area span.corner-tr {
    position: absolute;
    top: -2px;
    right: -2px;
    width: var(--corner-size);
    height: var(--corner-size);
    border-top: var(--corner-thickness) solid #fff;
    border-right: var(--corner-thickness) solid #fff;
}

/* Canto inferior esquerdo */
.scan-area span.corner-bl {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: var(--corner-size);
    height: var(--corner-size);
    border-bottom: var(--corner-thickness) solid #fff;
    border-left: var(--corner-thickness) solid #fff;
}



/* CARD PRODUTO 
.product-card {
    background:gray;
    border-radius: 15px;
	color: #ffcf00;
	margin-top: 2px;
}
*/

.product-card {
    background: #555;
    border-radius: 15px;
    color: #ffcf00;
    margin-top: 6px;
    padding: 12px;
}

.product-card strong {
    font-size: 0.95rem;
}

.product-card span {
    font-size: 0.9rem;
}

.price {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-top: 8px;
}

/* BOTÃƒO */
.btn-orange {
    background:#049E3C;
    color: #fff;
    border-radius: 12px;
}
/*
.btn-orange:hover {
    background: #e04f00;
}
*/
/* Adicione ao final do arquivo */


/* Efeito visual quando lê o código com sucesso (borda verde brilhante) */
.scan-area.success-scan {
    border-color: #00ff00 !important;
    background: rgba(0, 255, 0, 0.2) !important;
    box-shadow: 0 0 20px #00ff00;
    transition: all 0.2s ease;
}

/* Melhoria na leitura do texto de resultado no celular */
#resultado {
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


