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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0d1117;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#app {
  position: relative;
  width: 100%;
  max-width: 1000px;
  padding: 16px;
}

#dish {
  display: block;
  margin: 0 auto;
  background: #161b22;
  border-radius: 50%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

#chart {
  position: absolute;
  top: 24px;
  right: 200px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
  padding: 20px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#sidebar h2 {
  font-size: 16px;
  color: #a8dadc;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#sidebar button {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

#sidebar button:hover {
  background: rgba(168, 218, 220, 0.2);
  border-color: #a8dadc;
}

#sidebar button span {
  color: #7ec8e3;
  font-weight: bold;
}

#btn-pause {
  background: rgba(244, 162, 97, 0.2) !important;
  border-color: #f4a261 !important;
}

.slider-container {
  padding: 8px 0;
}

.slider-container label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.slider-container label span {
  color: #f4a261;
  font-weight: bold;
}

#speed-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

#speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #a8dadc;
  border-radius: 50%;
  cursor: pointer;
}

#hud {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 13px;
  line-height: 1.6;
}

#fps {
  font-family: monospace;
  color: #7ec8e3;
}

#agent-count {
  color: rgba(255, 255, 255, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
