/* 标准化版本的样式文件 */

body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

#container {
    position: absolute;
    width: 100%;
    height: 100%;
}

#info {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    transition: all 0.3s ease;
    max-width: 200px;
    min-width: 120px;
}

#info.collapsed {
    width: 30px;
    height: 30px;
    padding: 5px;
    overflow: hidden;
}

#info.collapsed .info-content {
    display: none;
}

#info-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#info-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

#controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    color: white;
    z-index: 100;
    transition: all 0.3s ease;
    max-width: 200px;
    min-width: 80px;
    max-height: 70vh;
    overflow-y: auto;
}

#controls.collapsed {
    width: 30px;
    height: 30px;
    padding: 5px;
    overflow: hidden;
    max-height: none;
}

#controls.collapsed .controls-content {
    display: none;
}

#controls-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#controls-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.controls-section {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.controls-section:last-child {
    margin-bottom: 0;
}

.controls-section strong {
    margin-bottom: 5px;
    display: block;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin: 1px 0;
}

button:hover {
    background: #0056b3;
}

.toggle-btn {
    background: #6c757d;
}

.toggle-btn:hover {
    background: #5a6268;
}

.toggle-btn.active {
    background: #28a745;
}

.toggle-btn.active:hover {
    background: #218838;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    z-index: 1000;
}

/* 坐标轴信息样式 */
.coordinate-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100;
}

.coordinate-info .axis {
    margin: 2px 0;
}

.coordinate-info .x-axis {
    color: #ff0000;
    /* 红色 - X轴 */
}

.coordinate-info .y-axis {
    color: #00ff00;
    /* 绿色 - Y轴 */
}

.coordinate-info .z-axis {
    color: #0000ff;
    /* 蓝色 - Z轴 */
}

/* 小车方向控制样式 */
.orientation-control {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 5px;
}

.orientation-control input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

.orientation-control button {
    margin-top: 5px;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.orientation-control button:hover {
    background: #0056b3;
}

.toggle-btn {
    background: #6c757d;
}

.toggle-btn:hover {
    background: #5a6268;
}

.toggle-btn.active {
    background: #28a745;
}

.toggle-btn.active:hover {
    background: #218838;
}

/* 路径缩放控制样式 */
.scale-control {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 8px;
}

.scale-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.scale-item label {
    font-size: 12px;
}

.scale-item input[type="range"] {
    width: 100%;
    margin: 3px 0;
}

.scale-control button {
    margin-top: 8px;
    padding: 5px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.scale-control button:hover {
    background: #218838;
}

/* 小车高度控制样式 */
.height-control {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    gap: 5px;
}

.height-control input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

.height-control button {
    margin-top: 5px;
    padding: 5px 10px;
    background: #fd7e14;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.height-control button:hover {
    background: #dc6502;
}