@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --bg-color: #0d0d0d;
  --neon-green: #39ff14;
  --neon-blue: #00ffff;
  --font-color: #e0e0e0;
}

html {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100%;
  font-family: 'Share Tech Mono', monospace;
  background: var(--bg-color);
  color: var(--font-color);
  /* REMOVE flex centering */
  display: block;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 0, 0, 0.1);
  color: #ff5555;
  border: 1px solid #ff5555;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.toast.visible {
  opacity: 1;
  pointer-events: auto;
}

.config-panel {
  position: relative;
  width: 100vw;
  height: auto;
  transition: all 0.5s ease-in-out;
  z-index: 100;
}

.config-panel.closed {
  transform: translateY(-100%);
  pointer-events: none;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.toggle-btn {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 101;
  background: #111;
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  padding: 0.5rem 1rem;
  font-family: 'Share Tech Mono', monospace;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  opacity: 1;
}

.hidden {
  display: none;
}

.container {
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4rem;
  padding: 2rem;
  box-sizing: border-box;
}

.title {
  text-align: center;
  font-size: 2rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green), 0 0 10px var(--neon-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 5px var(--neon-green); }
  50% { text-shadow: 0 0 20px var(--neon-green); }
}

.param-inputs {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 2rem;
}

input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  background: #111;
  color: var(--neon-blue);
  border: 1px dashed var(--neon-blue);
  border-radius: 6px;
  text-align: center;
}


.arrow-label {
  position: absolute;
  top: 0;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
  white-space: nowrap;
}

.log-input {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

textarea {
  min-height: 250px;
  width: 100%;
  background: #111;
  color: #0f0;
  font-size: 1rem;
  border: 1px solid #0f0;
  padding: 1rem;
  resize: vertical;
}

.divider {
  text-align: center;
  font-size: 1rem;
  color: #888;
}

input[type="file"] {
  color: var(--font-color);
  background: #222;
  border: 1px dashed #444;
  padding: 1rem;
  border-radius: 5px;
}

.visualizer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 4rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  height: 0;
  gap: 1rem;
  overflow: hidden;
}

.visualizer.visible {
  opacity: 1;
  pointer-events: auto;
  height: auto;
}

#philosopherCanvas {
  max-width: 1000px;
}

svg {
  background: #0a0a0a;
  border: 1px solid #222;
}

#backToVis {
  top: auto;
  bottom: 0.5rem;
}

#clearStorage {
  left: auto;
  right: 0;
}

.timeline-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.time-chart {
  overflow-x: auto;
  padding-bottom: 1rem;
  white-space: nowrap;
  cursor: grab;
}

.time-chart:active {
  cursor: grabbing;
}

.scroll-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  font-family: 'Share Tech Mono', monospace;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0.7;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator.left {
  left: 0;
}

.scroll-indicator.right {
  right: 0;
}

.player-container {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  z-index: 9999;
  font-family: sans-serif;
}

.seek-bar {
  position: relative;
  height: 8px;
  background: #333;
  cursor: pointer;
}
.seek-progress {
  height: 100%;
  background: limegreen;
  width: 0%;
}
.seek-hover-label {
  position: absolute;
  top: -20px;
  color: white;
  font-size: 10px;
  transform: translateX(-50%);
  pointer-events: none;
  display: none;
}

.controls-row {
  display: flex;
  justify-content: center;
  padding: 8px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.controls button,
.controls select {
  background: #222;
  color: white;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
}

.github-float {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d1117;
  color: #c9d1d9;
  padding: 6px 8px;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  text-decoration: none;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
  border: 1px solid #30363d;
  z-index: 9999;
  transition: all 0.2s ease-in-out;
}
.github-float:hover {
  background: #161b22;
  box-shadow: 0 0 12px #58a6ff;
  transform: scale(1.05);
}

.github-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

