/* --- Layout & Background --- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Orbitron', sans-serif;
  overflow: hidden;
  background-color: black;
}

#gradientSky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to top, #ff007f, #ff9900, #110033);
  z-index: 0;
  pointer-events: none;
  animation: skyPulse 10s ease-in-out infinite;
  opacity: 1;
}

@keyframes skyPulse {
  0%   { filter: brightness(1); }
  50%  { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

body.night #gradientSky {
  background: linear-gradient(to top, #220033, #110011, #000);
}

/* --- Canvas Container --- */
#threeContainer {
  position: relative;
  z-index: 1;
}

/* --- Controls UI --- */
.control-select {
  width: 100%;
  padding: 0.5rem;
  background-color: #111;
  color: white;
  border: 1px solid #555;
  border-radius: 6px;
}

.control-btn {
  padding: 0.5rem;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

/* --- Timeline Bar --- */
#timelineProgress {
  height: 6px;
  background: linear-gradient(to right, magenta, cyan);
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: #ff00ff;
  border-radius: 3px;
}
::selection {
  background: #ff00ff66;
}

/* --- Tab Buttons --- */
.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  background: #1a1a1a;
  color: #ccc;
  border: 1px solid #333;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.tab-button.active {
  background-color: #ff00ff;
  color: white;
}

