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

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  overflow: hidden;
  height: 100vh;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
}

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

.ui-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  z-index: 10;
  max-width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.ui-panel.collapsed {
  transform: translateX(-280px);
}

.toggle-btn {
  position: absolute;
  top: 20px;
  right: -40px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 10px 10px 0;
  color: white;
  padding: 10px 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.panel-title {
  font-size: 18px;
  font-weight: bold;
  color: #4fc3f7;
}

.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.control-group {
  margin-bottom: 20px;
}

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

.control-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}

.pause-btn {
  background: #4fc3f7;
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pause-btn:hover {
  background: #29b6f6;
  transform: translateY(-2px);
}

.pause-btn.paused {
  background: #ff6b6b;
}

.planet-control {
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.planet-control:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.planet-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #4fc3f7;
}

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

.speed-slider {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.speed-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: #4fc3f7;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.speed-slider::-webkit-slider-thumb:hover {
  background: #29b6f6;
  transform: scale(1.2);
}

.speed-value {
  font-size: 12px;
  color: #b0b0b0;
  min-width: 35px;
  text-align: right;
}

.info-panel {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 15px;
  z-index: 10;
  max-width: 300px;
  display: none;
}

.info-title {
  font-size: 16px;
  font-weight: bold;
  color: #4fc3f7;
  margin-bottom: 10px;
}

.info-content {
  font-size: 14px;
  color: #b0b0b0;
}

.light-theme {
  background: linear-gradient(135deg, #f0f0f0 0%, #e3f2fd 50%, #bbdefb 100%);
  color: #333;
}

.light-theme .ui-panel,
.light-theme .info-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .planet-control {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .planet-name,
.light-theme .panel-title,
.light-theme .control-title,
.light-theme .info-title {
  color: #1976d2;
}

.light-theme .speed-value {
  color: #666;
}

.light-theme .toggle-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

@media (max-width: 768px) {
  .ui-panel {
      max-width: 280px;
      padding: 15px;
  }
  
  .info-panel {
      max-width: 250px;
  }
}

@media (max-width: 480px) {
  .ui-panel {
      top: 10px;
      left: 10px;
      max-width: calc(100vw - 80px);
  }
  
  .info-panel {
      bottom: 10px;
      right: 10px;
      max-width: calc(100vw - 40px);
  }
}