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

body {
    font-family: Arial, sans-serif;
    background: #0c0c0c;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0c0c0c;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.planet-loader {
    width: 80px;
    height: 80px;
    border: 4px solid #4a90e2;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

#main-interface {
    display: none;
    height: 100vh;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #4a90e2;
}

.nav-center {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn.active {
    background: #4a90e2;
    border-color: transparent;
}

.nav-right {
    display: flex;
    gap: 15px;
}

.settings-btn, .fullscreen-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.info-panel {
    position: fixed;
    left: 0;
    top: 70px;
    width: 350px;
    height: calc(100vh - 70px);
    background: rgba(0, 0, 0, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 900;
}

.info-panel.open {
    transform: translateX(0);
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 18px;
    color: #4a90e2;
}

.close-panel {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}

.panel-content {
    padding: 20px;
    height: calc(100% - 80px);
    overflow-y: auto;
}

.body-info {
    color: #cccccc;
    line-height: 1.6;
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 70px;
}

#solar-system-viewer {
    width: 100%;
    height: 100%;
}

.controls-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #cccccc;
    font-size: 14px;
}

.hint-item:last-child {
    margin-bottom: 0;
}

.control-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
}

.control-left, .control-right {
    display: flex;
    gap: 15px;
}

.control-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.time-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
}

.time-control input[type="range"] {
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.playback-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.control-btn.active {
    background: #4a90e2;
    border-color: transparent;
}

.planet-status {
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 800;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-icon {
    font-size: 20px;
}

.status-name {
    font-weight: 500;
    color: #ffffff;
}

.status-activity {
    font-size: 12px;
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 400px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.settings-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    color: #4a90e2;
}

.close-settings {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
}

.settings-content {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    color: #cccccc;
    font-weight: 500;
}

.setting-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
}

.setting-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4a90e2;
} 