/* Controls Styles */
.tools-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.tool-section {
  margin-bottom: 20px;
}

/* Brush size controls */
.brush-sizes {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.brush-size {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background-color: var(--secondary-color);
}

.brush-size.active {
  border-color: var(--selected-color);
  background-color: var(--primary-color);
}

.brush-size.small::after,
.brush-size.medium::after,
.brush-size.large::after {
  content: "";
  display: block;
  background-color: black;
  border-radius: 50%;
  margin: auto;
}

.brush-size.small::after {
  width: 6px;
  height: 6px;
}

.brush-size.medium::after {
  width: 12px;
  height: 12px;
}

.brush-size.large::after {
  width: 18px;
  height: 18px;
}

/* Actions buttons */
.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

/* Color palette */
.color-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 15px;
  max-height: 300px;
  overflow-y: auto;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: transform 0.1s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-swatch.active {
  border-color: black;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--selected-color);
}

.color-swatch.transparent {
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%),
                    linear-gradient(-45deg, #ccc 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #ccc 75%),
                    linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

/* Custom color picker */
.custom-color {
  display: flex;
  align-items: center;
  gap: 10px;
}

#custom-color-picker {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive control layout */
@media (max-width: 767px) {
  .color-palette {
    grid-template-columns: repeat(6, 1fr);
  }
}