/* 设置cesium容器全屏 */
html,
body,
#cesiumContainer {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* 侧边栏样式 */
#sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    transform: translateX(-2500px);
    /* 初始隐藏 */
    z-index: 1000;
}

/* 侧边栏显示时的样式 */
#sidebar.active {
    transform: translateX(0);
}

/* 切换按钮样式 */
#sidebarToggle {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #007BFF;
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    transition: background-color 0.3s ease;
}

#sidebarToggle:hover {
    background-color: #0056b3;
}

/* 美化按钮 */
#sidebar button {
    width: 100%;
    padding: 10px 15px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #28a745;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#sidebar button:hover {
    background-color: #218838;
}

/* 文本样式 */
#sidebar text {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    opacity: 0.8;
}

#updateButton.pause {
    background-color: #dc3545;
}

#updateButton.resume {
    background-color: #28a745;
}

#sidebar button.active {
    background-color: #218838;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 防止侧边栏覆盖Cesium界面元素 */
.cesium-viewer .cesium-credit {
    display: none;
}

/* 模型位移微调按钮 */
.offset-row {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin: 6px 0;
}

#sidebar .offset-row button {
    width: auto;
    flex: 1;
    padding: 6px 2px;
    margin: 0;
    font-size: 14px;
}

#offsetValue {
    font-family: monospace;
    font-size: 12px;
}
