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

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

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

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

#controls-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
}

#controls-panel h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #4a9eff;
}

#controls-panel h3 {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #7ab8ff;
}

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

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

#distance-slider {
    width: 100%;
    margin-top: 5px;
}

#distance-value {
    color: #4a9eff;
    font-weight: bold;
}

#layer-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-item {
    display: flex;
    align-items: center;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.layer-item input {
    margin-right: 8px;
}

.layer-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
}

.stats {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #999;
}

.stats span {
    color: #4a9eff;
    font-weight: bold;
}

#info-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    max-height: 300px;
    overflow-y: auto;
}

#info-panel h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #4a9eff;
}

#star-info {
    font-size: 13px;
    line-height: 1.6;
}

#star-info p {
    margin-bottom: 8px;
}

#star-info .star-name {
    font-size: 16px;
    font-weight: bold;
    color: #7ab8ff;
    margin-bottom: 10px;
}

#star-info .star-property {
    color: #999;
}

#star-info .star-value {
    color: #fff;
}

/* Scrollbar styling */
#controls-panel::-webkit-scrollbar,
#info-panel::-webkit-scrollbar {
    width: 8px;
}

#controls-panel::-webkit-scrollbar-track,
#info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#controls-panel::-webkit-scrollbar-thumb,
#info-panel::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.5);
    border-radius: 4px;
}

#controls-panel::-webkit-scrollbar-thumb:hover,
#info-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.7);
}

/* Input styling */
input[type="checkbox"] {
    cursor: pointer;
}

input[type="range"] {
    cursor: pointer;
}

/* Star label styling */
.star-label {
    color: #ffffff;
    font-size: 12px;
    font-family: Arial, sans-serif;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 3px;
    user-select: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.star-label div {
    white-space: nowrap;
    line-height: 1.4;
}
