
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
    color: #202124;
}

.container {
    max-width: 600px;
    margin: 70px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px #00000012;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

button {
    padding: 12px;
    background: #343a40;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #555e68;
}

#preview {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin: 15px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#result {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

#digit {
    font-size: 40px;
}


.drawing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

#drawing-canvas {
    width: 280px;
    height: 280px;
    max-width: 100%;
    background: white;
    border: 2px solid #ced4da;
    border-radius: 10px;
    cursor: crosshair;
    touch-action: none;
}

.drawing-buttons {
    display: flex;
    gap: 10px;
}

.drawing-buttons button {
    min-width: 120px;
}

[hidden] {
    display: none !important;
}

.probability-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 5px;
    height: 220px;
    padding: 20px 5px;
    border-bottom: 1px solid #ced4da;
}

.probability-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.probability-value {
    font-size: 10px;
    margin-bottom: 5px;
    white-space: nowrap;
}

.probability-bar {
    width: 75%;
    min-height: 2px;
    background: #94a3b8;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.probability-max {
    background: #16a34a;
}

.probability-label {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}
