#universe-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  cursor: grab;
}

#universe-container.dragging {
  cursor: grabbing;
}

#space-map {
  position: absolute;
  top: 0;
  left: 0;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 100%);
}

/* Controls */
#controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#controls button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  backdrop-filter: blue(10px);
}

#controls button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

#zoom-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Info Panel/Modal */
#info-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 10000;
  backdrop-filter: blue(20px);
  transition: all 0.3s ease;
  animation: panelSlideIn 0.3s ease-out;
  min-width: 30%;
}

@media (max-width: 768px) {
  .info-panel {
    min-width: 95%;
  }
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale (1);
  }
}
@keyframes panelSlideOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale (0.8);
  }
}

#info-panel.hidden {
  visibility: hidden;
  animation: panelSlideOut 0.3s ease;
  animation-fill-mode: forwards;
}

#close-panel {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 300;
}

#close-panel:hover {
  background: rgba(255, 255, 255, 0.1);
}
