
#reader { width: 100%; height: auto; position: relative; }
#focusBox {
    position: absolute;
    border: 4px solid white; /* Толстая белая рамка */
    width: 250px;
    height: 125px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
}
#result { margin-top: 20px; font-size: 1.2em; color: green; }
#capturedImage { margin-top: 20px; max-width: 100%; border: 1px solid #ccc; display: none; }

/* Стили для кнопки выбора файла */
.file-upload {
    display: flex;
    align-items: center;
    margin-top: 14px;
}

.custom-file-upload 
{
    width: 205px;
    height: 36px;
    background-color: #E1E1E1;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Скрываем стандартный input[type=file] */
#fileInput 
{
    display: none;
}

/* Стили для текстового поля с именем файла */
.fileName {
    margin-left: 10px; /* Отступ между кнопкой и текстом */
    color: #000; /* Цвет текста */
}

/* Стили для области загрузки файла */
        #uploadedImageContainer {
            width: 350px; 
            height: auto;
            margin-top: 10px;
            display: none;
            position: relative;
        }

        #uploadedImage {
            width: 100%;
            height: auto;
        }

        /* Стили для заставки загрузки */
        #loadingOverlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 18px;
            font-weight: bold;
            display: none; /* Скрыта по умолчанию */
        }

        #loadingSpinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3498db;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 2s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Стили для кнопки сброса */
        #resetButton {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(255, 255, 255, 0.7);
            border: 1px solid #ccc;
            border-radius: 50%;
            width: 25px;
            height: 25px;
            font-size: 18px;
            color: #333;
            cursor: pointer;
            text-align: center;
        }