body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1e1e1e;
  color: #ccc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header, footer {
  text-align: center;
  padding: 1rem;
  background: #2a2a2a;
  color: #fff;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

header p, footer p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.controls {
  padding: 1rem;
  background: #333;
  border-radius: 8px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-section, .day-controls, .rotation-control {
  margin-bottom: 0.5rem;
}

.control-section summary {
  font-size: 1.1rem;
  padding: 0.5rem;
  background: #4d8c4d;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.control-section[open] summary {
  background: #5ea65e;
}

.control-section label, .day-controls button, .day-controls select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
}

.control-section input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
}

.day-controls {
  justify-content: space-between;
}

.day-controls button {
  background: #4d8c4d;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.day-controls button:hover {
  background: #5ea65e;
}

.day-controls select {
  padding: 0.5rem;
  background: #444;
  color: #ccc;
  border: none;
  border-radius: 4px;
}

.rotation-control input[type="range"] {
  width: 100%;
  accent-color: #4d8c4d;
  padding: 0.5rem 0;
}

button {
  width: 100%;
  padding: 0.8rem;
  background: #4d8c4d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #5ea65e;
}

#vizContainer {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.chakra-wedge {
  fill-opacity: 0.6;
  stroke: #fff;
  stroke-width: 1;
}

.chakra-wedge.highlight {
  fill-opacity: 1;
}

.line, .angle-line {
  stroke-width: 3;
}

.center-info {
  font-size: 14px;
  fill: #fff;
  text-anchor: middle;
  alignment-baseline: middle;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.2rem;
  }

  .controls {
    margin: 0.5rem;
  }

  .control-section summary {
    font-size: 1rem;
  }

  .control-section label, .day-controls button, .day-controls select {
    font-size: 0.9rem;
    padding: 0.3rem;
  }

  button {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  svg {
    max-width: 100%;
  }
}