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

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

body.light-mode {
    background-color: #f5f5f5;
    color: #333;
}

#info {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.light-mode #info {
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

#controls-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 15px;
    color: white;
    z-index: 100;
    transition: all 0.3s ease;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.light-mode #controls-panel {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.control-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

#toggle-controls {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.8rem;
}

.light-mode #toggle-controls {
    color: #333;
}

.control-item {
    margin-bottom: 10px;
}

.control-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.control-item input {
    width: 100%;
    margin-top: 5px;
}

.global-controls {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.light-mode .global-controls {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

button {
    background-color: #4a4a4a;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.light-mode button {
    background-color: #e0e0e0;
    color: #333;
}

button:hover {
    background-color: #606060;
}

.light-mode button:hover {
    background-color: #d0d0d0;
}

.planet-label {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
    z-index: 10;
    transform: translate(-50%, -100%);
}

.light-mode .planet-label {
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.planet-label.visible {
    opacity: 1;
}

.camera-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #controls-panel {
        width: 100%;
        bottom: 0;
        right: 0;
        border-radius: 10px 10px 0 0;
        max-height: 50vh;
    }
    
    #info {
        width: 100%;
        text-align: center;
        top: 5px;
        left: 0;
    }
    
    .control-item {
        margin-bottom: 15px;
    }
}