/* Reset básico para remover margens e paddings padrões */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    font-family: Arial, sans-serif;
    background-image: url('../img/background.jpg');
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.container {
    position: relative;
    /* Necessário para posicionar o canvas sobre o vídeo */
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    height: auto;
    /* Importante para dispositivos mais antigos */
    max-height: 200px;
    overflow: hidden;
    /* Previne esticamento */
}

.logo img {
    max-width: 120px;
    width: auto;
    /* Mudança importante */
    height: auto;
    max-height: 150px;
    object-fit: contain;
    display: block;
    /* Força comportamento de bloco */
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #525252;
    text-align: center;
    margin-bottom: 20px;
}

select,
input[type="text"],
button,
#scanButton {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: rgb(149 157 165 / 84%) 0px 4px 12px;
}

input[type="text"] {
    background-color: #fff;
    color: #333;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

button,
#scanButton {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
#scanButton:hover {
    background-color: #0056b3;
}

#resultado {
    margin-top: 20px;
    font-size: 18px;
    color: gray;
    font-weight: 500;
    text-align: center;
}

#msg_error {
    line-height: 20px;
    background-color: #ff8484;
    border-radius: 12px;
    padding: 10px;
}

#msg_info {
    line-height: 20px;
    background-color: #0079a4;
    border-radius: 12px;
    padding: 10px;
}

#msg_success {
    line-height: 20px;
    background-color: #00541b;
    border-radius: 12px;
    padding: 10px;
}

#codigo_pedido_white {
    color: #FFFFFF;
}

#codigo_pedido_green {
    color: #a1e1bd;
}

#codigo_pedido_red {
    color: #860000;
}

/* Estilos para placeholders */
::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #cacaca;
}

:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #cacaca;
    opacity: 1;
}

::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #cacaca;
    opacity: 1;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #cacaca;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #cacaca;
}

::placeholder {
    /* Most modern browsers support this now. */
    color: #cacaca;
}

/* Estilos para o Scanner */
#scanner-container {
    display: none;
    margin-top: 20px;
    position: relative;
    /* Para posicionamento correto */
}

#scanner-container video {
    width: 100%;
    max-width: 400px;
    /* height: auto; */
    height: 400px;
    /* Garante que a altura se ajuste proporcionalmente */
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: transparent;
    /* Removido o preto */
    display: block;
}

/* Media Queries para responsividade */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1rem;
    }

    input[type="text"],
    button,
    #scanButton {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 80px;
    }

    h1 {
        font-size: 1rem;
    }

    input[type="text"],
    button,
    #scanButton {
        padding: 12px 14px;
        font-size: 14px;
    }

    #resultado {
        font-size: 16px;
    }
}

::selection {
    background: #7efec0;
}

.card {
    margin: 25px 0;
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.card .title {
    font-size: 22px;
    font-weight: 500;
}

.card .content {
    margin-top: 20px;
}

.card label.box {
    background: #ddd;
    margin-top: 12px;
    padding: 10px 12px;
    display: flex;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

#one:checked~label.first,
#two:checked~label.second,
#three:checked~label.third {
    border-color: #2acd5e;
    background: #98f9c0;
}

.card label.box:hover {
    background: #73e4a2;
}

.card label.box .circle {
    height: 22px;
    width: 22px;
    background: #ccc;
    border: 5px solid transparent;
    display: inline-block;
    margin-right: 15px;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.2);
}

#one:checked~label.first .circle,
#two:checked~label.second .circle,
#three:checked~label.third .circle {
    border-color: #07ce1b;
    background: #fff;
}

.card label.box .plan {
    display: flex;
    width: 100%;
    align-items: center;
}

.card input[type="radio"] {
    display: none;
}

.card .first {
    border-left: 10px solid #23acfd !important;
}

.card .second {
    border-left: 10px solid #a8a8a8 !important;
}

.card .third {
    border-left: 10px solid #068238 !important;
}

.card .fourth {
    border-left: 10px solid #ee6d6d !important;
}

#interactive {
    width: 100%;
    height: 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 10px;
}

.viewport {
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* Estilo para ocultar elementos */
.hidden {
    display: none;
}

/* Estilo para exibir elementos */
.visible {
    display: block;
}

.link_mapa {
    color: #5996f3;
    text-decoration: none;
}

.form_input {
    margin-bottom: 10px;
}

.mostrar_imagens {
    color: #898888;
    transition: transform 1s cubic-bezier(0.55, 0.09, 0.68, 0.53);
}

.mostrar_imagens:hover {
    cursor: pointer;
    transform: rotate(360deg);
    /* Gira o elemento 360 graus */
}

.disabled-row {
    opacity: 0.6;
    pointer-events: none;
}

.disabled-row-text-line-through {
    opacity: 0.6;
    pointer-events: none;
    text-decoration: line-through;
}

.disabled-row .checkboxPedido {
    pointer-events: none;
}