/* Import Sci-Fi Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Share Tech Mono', monospace;
    color: #88ccff;
    user-select: none; /* Text select na ho paye */
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Base Sci-Fi Panel Style */
.sci-fi-panel {
    background: rgba(4, 13, 26, 0.75);
    backdrop-filter: blur(5px);
    border: 1px solid #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.2) inset, 0 0 10px rgba(0, 170, 255, 0.3);
    border-radius: 4px;
    z-index: 10;
    padding: 15px;
    position: absolute;
}

.panel-title {
    margin-top: 0;
    font-size: 1.2rem;
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
    border-bottom: 1px solid #00aaff;
    padding-bottom: 8px;
    letter-spacing: 2px;
}

/* Left Navigation HUD */
#hud-left {
    top: 20px;
    left: 20px;
    width: 200px;
}

#planet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

#planet-list li {
    padding: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

#planet-list li:hover {
    border-left: 2px solid #00ffff;
    background: rgba(0, 170, 255, 0.2);
    text-shadow: 0 0 5px #00ffff;
}

.sci-fi-btn {
    width: 100%;
    background: rgba(0, 170, 255, 0.1);
    color: #00ffff;
    border: 1px solid #00aaff;
    padding: 10px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.sci-fi-btn:hover {
    background: rgba(0, 170, 255, 0.3);
    box-shadow: 0 0 10px #00aaff;
}

/* Right Info Panel HUD */
#info-panel {
    top: 20px;
    right: 20px;
    width: 250px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#info-panel.hidden {
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 170, 255, 0.3);
    padding-bottom: 5px;
}

.data-row span:last-child {
    color: #fff;
    text-shadow: 0 0 4px #fff;
}

/* Bottom Left Speed Controls */
#controls {
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
}

/* Custom Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    width: 100%;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(0, 170, 255, 0.3);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 14px;
    width: 8px;
    background: #00ffff;
    margin-top: -5px;
    cursor: pointer;
    box-shadow: 0 0 8px #00ffff;
}

/* Bottom Center Date Display (Like the image) */
#date-display {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 30px;
    font-size: 1.2rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    font-weight: bold;
    border-left: 3px solid #00ffff;
    border-right: 3px solid #00ffff;
    border-radius: 0;
}

/* Floating 3D Text Labels in Space */
.planet-label {
    color: #00ffff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    text-shadow: 0 0 4px #00ffff;
    pointer-events: none; 
    background: rgba(0, 20, 40, 0.6);
    padding: 2px 6px;
    border: 1px solid rgba(0, 170, 255, 0.4);
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}/* --- Preloader Styling --- */
#loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000511; /* Dark sci-fi background */
    z-index: 9999; /* Sabse upar rakhne ke liye */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 1s ease-in-out;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none; /* Clicks canvas par pass hone dein */
}

.loader-content {
    text-align: center;
    width: 300px;
}

#loader-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    letter-spacing: 3px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

#loader-percentage {
    color: #00aaff;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Radar Spinner Animation */
.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 170, 255, 0.2);
    border-top: 3px solid #00ffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 170, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 0%;
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
    transition: width 0.2s;
}