/* Solar System Asteroid Belt Simulation Styles */

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

body {
    background-color: #0a0a15;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Main canvas container */
#canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#main-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#main-canvas:active {
    cursor: grabbing;
}

/* Time Control Panel */
#time-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(20, 25, 40, 0.9);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#time-panel label {
    color: #aabbcc;
    font-size: 12px;
    white-space: nowrap;
}

#time-panel #time-scale-value {
    color: #ffffff;
    font-family: monospace;
    min-width: 40px;
    display: inline-block;
}

#time-panel input[type="range"] {
    width: 120px;
    height: 6px;
    background: rgba(100, 150, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

#time-panel input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #44aaff;
    border-radius: 50%;
    cursor: pointer;
}

#time-panel input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #44aaff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Minimap */
#minimap-canvas {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(100, 150, 255, 0.5);
    border-radius: 4px;
    cursor: pointer;
}

/* Delta-V Control Panel */
#deltav-panel {
    position: absolute;
    top: 220px;
    right: 10px;
    width: 280px;
    background: rgba(20, 25, 40, 0.9);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: opacity 0.3s, transform 0.3s;
}

#deltav-panel.hidden {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

#deltav-panel h3 {
    margin-bottom: 12px;
    color: #88aaff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(100, 150, 255, 0.3);
    padding-bottom: 8px;
}

/* Control groups */
.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    color: #aabbcc;
    font-size: 12px;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(100, 150, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #44aaff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #66ccff;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #44aaff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.value-display {
    display: inline-block;
    min-width: 50px;
    text-align: right;
    color: #ffffff;
    font-family: monospace;
    font-size: 12px;
}

/* Quick direction buttons */
.direction-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 8px;
}

.direction-buttons button {
    padding: 6px 8px;
    background: rgba(100, 150, 255, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 4px;
    color: #aabbcc;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.direction-buttons button:hover {
    background: rgba(100, 150, 255, 0.4);
    color: #ffffff;
}

/* Orbital info display */
.info-section {
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
}

.info-label {
    color: #8899aa;
}

.info-value {
    color: #ffffff;
    font-family: monospace;
}

.info-row.projected .info-value {
    color: #ffaa44;
}

.info-row.escape .info-value {
    color: #ff6644;
    font-weight: bold;
}

/* Apply button */
#deltav-apply {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #2266aa, #44aaff);
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#deltav-apply:hover:not(:disabled) {
    background: linear-gradient(135deg, #3377bb, #55bbff);
    transform: translateY(-1px);
}

#deltav-apply:disabled {
    background: rgba(100, 100, 100, 0.3);
    color: #666666;
    cursor: not-allowed;
}

/* Section dividers */
.section-divider {
    border: none;
    border-top: 1px solid rgba(100, 150, 255, 0.2);
    margin: 12px 0;
}

/* Projected info section */
#projected-info {
    min-height: 20px;
}

/* Title bar for panel */
.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 25, 40, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 150, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 150, 255, 0.5);
}
