* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f3f5f7;
    font-family: Arial, sans-serif;
    color: #222;
}

.page {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
}

h1 {
    margin-bottom: 5px;
}

.description {
    margin-top: 0;
    color: #666;
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;
    margin-top: 25px;
}

#viewer {
    position: relative;
    width: 100%;
    height: 650px;
    background: #20242a;
    border-radius: 12px;
    overflow: hidden;
}

#viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#empty-message {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-size: 18px;
    z-index: 2;
}

.panel {
    background: white;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.panel h2 {
    margin-top: 0;
    font-size: 20px;
}

.upload-button {
    display: block;
    padding: 15px;
    background: #222;
    color: white;
    text-align: center;
    border-radius: 7px;
    cursor: pointer;
}

.file-name {
    margin-top: 15px;
    padding: 12px;
    background: #f5f5f5;
    font-size: 14px;
    word-break: break-all;
}

.dimension-row {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
}

.dimension-row:last-child {
    border-bottom: none;
}

@media (max-width: 800px) {

    .workspace {
        grid-template-columns: 1fr;
    }

    #viewer {
        height: 450px;
    }

}
.upload-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 7px;
    font-size: 14px;
    display: none;
}

.upload-status.loading {
    display: block;
    background: #fff3cd;
    color: #664d03;
}

.upload-status.success {
    display: block;
    background: #d1e7dd;
    color: #0f5132;
}

.upload-status.error {
    display: block;
    background: #f8d7da;
    color: #842029;
}