#tool-body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background-color: #000;
  color: #eee;
}

@media (max-width: 768px) {
  #tool-body .layout {
    flex-direction: column;
  }

  #tool-body .sidebar {
    width: 100%;
  }
}

#tool-body .layout {
  display: flex;
}

#tool-body .sidebar {
  width: 380px;
  flex-shrink: 0;
  background: #111;
  color: #eee;
  padding: 20px;
  box-sizing: border-box;
}

#tool-body .sidebar h3 {
  margin: 10px 0;
  font-size: 1.1rem;
}

#tool-body .control-group {
  margin-bottom: 20px;
  border-bottom: 1px solid #666;
  padding-bottom: 10px;
}

#tool-body .control-group:last-of-type {
  border-bottom: none;
}

#tool-body .control {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

#tool-body .control label {
  flex: 0 0 150px;
  margin-right: 10px;
  font-size: 0.9rem;
  white-space: nowrap;
}

#tool-body .control input[type="range"],
#tool-body .control select,
#tool-body .control input[type="text"] {
  flex: 1;
}

#tool-body .value-label {
  display: inline-block;
  width: 40px;
  text-align: center;
  margin-left: 8px;
  font-size: 0.9rem;
}

#tool-body .main-content {
  flex: 1;
  padding: 20px;
  background: #000;
  color: #eee;
  box-sizing: border-box;
  overflow-x: auto;
}

#tool-body #ascii-art {
  background: #000;
  padding: 10px;
  white-space: pre;
  font-family: Consolas, Monaco, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 12px;
  /*overflow-x: auto;*/
  margin-bottom: 30px;
}

#tool-body button {
  margin-right: 10px;
  padding: 5px 10px;
}

body.light-mode #tool-body {
  background-color: #fff;
  color: #000;
}

body.light-mode #tool-body .sidebar {
  background: #f4f4f4;
  color: #000;
}

body.light-mode #tool-body .main-content {
  background: #fff;
  color: #000;
}

body.light-mode #tool-body #ascii-art {
  background: #fff;
}

#tool-body {
    --scrollbar-track-color: #333;
    --scrollbar-thumb-color: #555;
    --scrollbar-thumb-hover-color: #777;
}
body.light-mode #tool-body{
    --scrollbar-track-color: #f9f9f9;
    --scrollbar-thumb-color: #d5d5d5;
    --scrollbar-thumb-hover-color: #c0c0c0;
}