/* Camera Viewport Container */
.camera-box {
    position: relative;
    width: 100%;
    height: 260px;
    /* background: var(--background_white); */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Target Bounding Box Overlay for License Plate Positioning */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 40%;
    border: 3px dashed var(--text_green);
    border-radius: 8px;
    box-shadow: 0 0 0 9999px #000000b0;
    pointer-events: none;
}

.plate_card {
    background: var(--background_cream);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.label {
    font-size: 0.85rem;
    color: var(--text_gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plate-output {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text_sky);
    margin: 8px 0;
    min-height: 40px;
}


/* Hidden canvas for video frame processing */
canvas {
    display: none;
}

.car_details_container {
    margin-top: 20px;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    /* background: #000; */
}

.car_details_container p.error-message {
    color: var(--background_red);
    background-color: var(--text_red);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: none;

}