body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    overflow: hidden; /* Убираем прокрутку */
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 250px;
    background-color: #2a2a2a;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    border-right: 1px solid #444;
}

.sidebar h2 {
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

#mesh-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mesh-list li {
    padding: 8px;
    border-radius: 4px;
    cursor: default;
}

#mesh-list li:hover {
    background-color: #3a3a3a;
}

.main-content {
    flex-grow: 1;
    position: relative; /* Для позиционирования оверлея */
}

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

#c {
    display: block;
    width: 100%;
    height: 100%;
}

#upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#upload-overlay.hidden {
    display: none;
}

#upload-button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
}

#upload-button:hover {
    background-color: #0056b3;
}