body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #1e1e1e;
  color: white;
}

/* Top toolbar */
.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;
  cursor: pointer;
}

/* Main layout */
.workspace {
  display: flex;
  height: calc(100vh - 40px);
}

/* Left sidebar */
.sidebar {
  width: 200px;
  background: #252526;
  padding: 10px;
}

.part {
  background: #333;
  padding: 8px;
  margin: 8px 0;
  cursor: grab;
  border-radius: 4px;
}

/* Canvas */
.canvas {
  flex: 1;
  background: #121212;
  padding: 10px;
  position: relative;
}

.hint {
  color: #777;
}

/* Code panel */
.code-panel {
  width: 300px;
  background: #1e1e1e;
  border-left: 1px solid #333;
  display: none;
  padding: 10px;
}

/* ===== COMPONENT FIGURES ===== */

/* Arduino board */
.arduino {
  width: 160px;
  height: 90px;
  background: #1565c0;
  border-radius: 8px;
  padding: 8px;
  margin: 10px;
  font-size: 12px;
  position: relative;
}

.arduino::after {
  content: "USB";
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #444;
  padding: 2px 6px;
  font-size: 10px;
}

/* LED */
.led {
  width: 24px;
  height: 24px;
  background: red;
  border-radius: 50%;
  margin: 10px;
}

/* Push Button */
.push-button {
  width: 40px;
  height: 40px;
  background: #555;
  border-radius: 6px;
  text-align: center;
  line-height: 40px;
  font-size: 12px;
  margin: 10px;
}
.push-button:active {
  background: #777;
  transform: scale(0.95);
}
