* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: #202020;
}

#viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#viewer-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#toolbar {
    position: absolute;
    top: 16px;
    left: 16px;

    display: flex;
    gap: 8px;

    padding: 10px;

    border-radius: 6px;
    background: rgba(20, 20, 20, 0.85);
}

button,
.file-button {
    padding: 8px 12px;

    color: white;
    background: #3c3c3c;

    border: 1px solid #666;
    border-radius: 4px;

    cursor: pointer;
    font-size: 14px;
}

button:hover,
.file-button:hover {
    background: #555;
}

#model-info {
    position: absolute;
    left: 16px;
    bottom: 16px;

    min-width: 220px;
    padding: 10px;

    color: white;
    background: rgba(20, 20, 20, 0.85);

    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

#loading-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: white;
    background: rgba(0, 0, 0, 0.65);
}

#loading-progress {
    width: 300px;
}

#drop-message {
    position: absolute;
    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    padding: 20px 32px;

    color: white;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 8px;

    pointer-events: none;
    opacity: 0;
}

#viewer-container.drag-active #drop-message {
    opacity: 1;
}

.hidden {
    display: none !important;
}