* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #111;
    color: white;
    overflow: hidden;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

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

.control-panel {
    position: absolute;
    top: 16px;
    width: 320px;
    background: rgba(21, 21, 21, 0.8);
    border: 1px solid #808080;
    border-radius: 8px;
    padding: 24px;
    backdrop-filter: blur(10px);
    z-index: 10;
    max-height: 80vh;
    overflow-y: auto;
}

.left-panel {
    left: 16px;
}

.right-panel {
    right: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 32px;
    user-select: none;
}

.panel-header:hover {
    opacity: 0.8;
}

.chevron {
    font-size: 20px;
    transition: transform 0.2s;
}

.chevron.collapsed {
    transform: rotate(-90deg);
}

.panel-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.panel-content {
    transition: all 0.3s ease;
}

.panel-content.collapsed {
    display: none;
}

.control-group {
    margin-bottom: 24px;
}

.control-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: normal;
}

.button-group {
    display: flex;
    gap: 8px;
}

.btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #808080;
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    opacity: 0.8;
}

.btn.active {
    background: white;
    color: black;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4A90E2;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4A90E2;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    accent-color: #4A90E2;
}

.planet-list {
    margin-bottom: 32px;
}

.planet-item {
    margin-bottom: 16px;
}

.planet-item label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.moon-info {
    margin-left: 28px;
    font-size: 12px;
    color: #999;
}

.info {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
}

.info p {
    margin-bottom: 4px;
}

/* Scrollbar styling */
.control-panel::-webkit-scrollbar {
    width: 6px;
}

.control-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
