body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #1e1e1e;
  color: white;
}

.topbar {
  height: 40px;
  background: #2b2b2b;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.topbar button {
  margin-right: 10px;
  background: #3c3c3c;
  color: white;
  border: none;
  padding: 6px 12px;
}

.workspace {
  display: flex;
  height: calc(100vh - 40px);
}

.sidebar {
  width: 200px;
  background: #252526;
  padding: 10px;
}

.part {
  background: #333;
  padding: 8px;
  margin: 8px 0;
  cursor: grab;
  border-radius: 4px;
}

.canvas {
  flex: 1;
  background: #121212;
  position: relative;
  overflow: hidden;
}

.right-panel {
  width: 300px;
  background: #1e1e1e;
  border-left: 1px solid #333;
  padding: 10px;
}

/* Arduino board */
.arduino {
  width: 220px;
  height: 260px;
  background: #1565c0;
  border-radius: 10px;
  padding: 10px;
  position: absolute;
  top: 60px;
  left: 60px;
}

.board-title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 8px;
}

.pin-column {
  position: absolute;
  right: 10px;
  top: 40px;
}

.pin {
  display: flex;
  align-items: center;
  margin: 4px 0;
  font-size: 11px;
}

.pin .dot {
  width: 6px;
  height: 6px;
  background: gold;
  border-radius: 50%;
  margin-right: 6px;
}

.pin .label {
  color: white;
}

/* LED */
.led {
  width: 24px;
  height: 24px;
  background: red;
  border-radius: 50%;
  position: absolute;
  top: 180px;
  left: 420px;
}

/* Button */
.push-button {
  width: 40px;
  height: 40px;
  background: #555;
  border-radius: 6px;
  text-align: center;
  line-height: 40px;
  position: absolute;
  top: 300px;
  left: 420px;
}

/* Wire layer */
#wires {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
