body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #111;
  color: #eee;
  overflow: hidden;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
}

#q-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.control-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  z-index: 10;
  max-width: 350px;
}

h1 {
  margin-top: 0;
  font-size: 1.5em;
}

#startButton {
  padding: 10px 15px;
  background-color: #82eefd;
  color: #111;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.1s;
  width: 100%;
  margin-bottom: 15px;
}

#startButton:hover {
  background-color: #a9f5ff;
}

#startButton:active {
  transform: scale(0.98);
}

#startButton:disabled {
  background-color: #555;
  cursor: not-allowed;
}

#status {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(0,0,0,0.3);
  border-radius: 5px;
  min-height: 1.2em;
}

.note {
  font-size: 0.8em;
  color: #999;
  margin-top: 15px;
  margin-bottom: 0;
}

#log-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 350px;
  height: 200px;
  background: rgba(0,0,0,0.6);
  border-radius: 8px;
  overflow-y: scroll;
  padding: 10px;
  z-index: 2; /* Above canvas */
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
}

#log-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#log-list li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  word-wrap: break-word;
}

#log-list li span {
  color: #888;
  margin-right: 10px;
}

#info-container {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

#controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

#ui-container {
  background: rgba(18, 18, 22, 0.75);
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  max-width: 380px;
  pointer-events: auto; /* Re-enable pointer events for UI */
}

.title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.description {
  font-size: 15px;
  line-height: 1.6;
  color: #a0a0a0;
  margin: 0 0 20px 0;
}

.mode-btn {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid #888;
  background: #222;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.mode-btn.active {
  background: #82eefd;
  color: #222;
  border-color: #82eefd;
  font-weight: bold;
}
.mode-btn:not(.active):hover {
  background: #333;
  color: #82eefd;
  border-color: #82eefd;
} 