body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #00000a;
    color: #ffffff;
    overflow: hidden;
}

canvas {
    display: block;
}

#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

#title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

#controls-container {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    width: 280px;
    transition: all 0.3s ease;
}

#controls-container:hover {
    background: rgba(20, 20, 30, 0.98);
    border-color: rgba(255, 255, 255, 0.15);
}

#info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 320px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.planet-info {
    margin-bottom: 10px;
}

.planet-info h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.2rem;
}

.planet-info p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #ccc;
}

.control-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.control-row button {
    flex: 1;
    min-width: 0;
}

.view-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.view-options-grid button {
    width: 100%;
    justify-self: stretch;
}

.control-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #e0e0e0;
    margin-bottom: 4px;
}

button {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    min-height: 40px;
    white-space: nowrap;
    flex: 1;
}

button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #2563eb;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    border-color: #059669;
}

.control-section {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.control-section:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.control-section h4 {
    margin: 0 0 16px 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    margin: 8px 0;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: #3b82f6;
    border-radius: 50%;
    margin-top: -6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

select {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 8px;
}

select option {
    background: #1a1a2e;
    color: #ffffff;
}

#tooltip {
    position: absolute;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    pointer-events: none;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 250px;
}

@media (max-width: 768px) {
    #controls-container { 
        width: 260px;
        top: 10px;
        right: 10px;
    }
    #info-panel {
        width: 280px;
        left: 10px;
        bottom: 10px;
    }
    #title { 
        font-size: 1.8rem;
        top: 10px;
    }
}
