body {
    margin: 0;
    padding: 0;
    font-family: Arial;
    background: #f5f5f5;
}

.container {
    width: 1000px;
    margin: 30px auto;
}

h1 {
    text-align: center;
}

.upload-box {
    background: white;
    border: 2px dashed #999;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.upload-box.dragover {
    border-color: #007bff;
}

.upload-box input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

button {
    width: 100%;
    height: 50px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

#preview {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

#result {
    margin-top: 30px;
}

.result-card {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.text-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.ocr-text {
    font-size: 18px;
}

.ocr-score {
    color: gray;
    margin-top: 5px;
}

.error {
    color: red;
}
.canvas-wrapper {

    margin-top: 20px;

    border: 1px solid #ddd;

    overflow: auto;

    background: white;
}

canvas {

    cursor: crosshair;

    display: block;
}

.toolbar {

    margin-top: 20px;

    display: flex;

    gap: 10px;
}

.result-item {

    background: white;

    padding: 20px;

    margin-top: 20px;

    border-radius: 10px;
}