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

body {
  background: #000;
  color: #fff;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

#cosmos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#cosmos:active {
  cursor: grabbing;
}

#header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}

#header h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 20px rgba(100, 150, 255, 0.5);
}

.header-actions {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.header-actions button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.header-actions button:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

#info-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  pointer-events: none;
}

#location-info {
  margin-bottom: 12px;
}

.info-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

.info-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

#object-info {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 12px;
}

#object-info:empty {
  display: none;
}

#coordinates {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  pointer-events: auto;
}

#coords-display {
  min-width: 200px;
}

.zoom-label {
  color: rgba(255,255,255,0.4);
}

.zoom-bar {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

#zoom-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a9eff, #a855f7);
  border-radius: 2px;
  transition: width 0.1s;
  width: 50%;
}

#copyCoords {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  transition: color 0.2s;
}

#copyCoords:hover {
  color: #fff;
}

#scale-indicator {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  width: 400px;
  max-height: 500px;
  overflow: hidden;
}

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

.modal-header h2 {
  font-size: 16px;
  font-weight: 500;
}

.close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: #fff;
}

#bookmarks-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
}

.bookmark-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.bookmark-item:hover {
  background: rgba(255,255,255,0.1);
}

.bookmark-name {
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
}

.bookmark-coords {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-family: 'SF Mono', monospace;
}

.bookmark-delete {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}

.bookmark-delete:hover {
  color: #ff6b6b;
}

.empty-bookmarks {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.4);
}

/* Toast */
#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(74, 158, 255, 0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1001;
  transition: opacity 0.3s;
}

#toast.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}
