body {
  font-family: Arial, sans-serif;
  background-color: #32d1d1;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.app-container {
  background-color: #4ecaab;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  max-width: 800px;
  width: 100%;
  text-align: center;
}

h1 {
  margin-top: 0;
  font-size: 24px;
  color: #ffffff;
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  background-color: #3fb3a3;
  padding: 15px;
  border-radius: 8px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 14px;
}

input[type="color"] {
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

input[type="range"] {
  cursor: pointer;
  width: 100px;
}

select {
  background-color: #298bdb;
  color: #ffffff;
  border: 1px solid #444;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
}

.boards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.board-wrapper {
  background-color: #4bc7dd;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
}

.board-title {
  font-size: 12px;
  color: #000000;
  margin-bottom: 8px;
  font-weight: bold;
}

.matrix-table {
  border-collapse: separate;
  border-spacing: 6px;
  user-select: none;
}

.cell {
  width: 50px;
  height: 50px;
  background-color: #000000;
  border: 2px solid #333333;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  padding: 0;
  display: block;
  transition: border-color 0.15s, transform 0.1s;
}

.cell:hover {
  border-color: #ffffff;
  transform: scale(1.04);
}

.button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.btn.primary {
  background-color: #007bff;
  color: #ffffff;
}

.btn.danger {
  background-color: #dc3545;
  color: #ffffff;
}

.btn:hover {
  opacity: 0.9;
}

textarea {
  width: 100%;
  height: 200px;
  box-sizing: border-box;
  background-color: #0d0d0d;
  color: #00ff66;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  resize: vertical;
}