.container {
  width: 100%;
  margin: 0 auto;
  max-width: 700px;
  padding: 2rem;
}

.color-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;

  svg {
    height: 100px;
    cursor: pointer;
  }

  svg.ghost {
    height: 200px;
  }
}

.color-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

input[type="color"] {
  width: 100%;
  height: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}

input[type="color"]:hover {
  transform: scale(1.02);
}

.colorspace-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

select {
  width: 50%;
  padding: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  margin: 0 auto;
}

.slider-container {
  margin-bottom: 2rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.slider-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  outline: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.result {
  overflow: hidden;
}

.color-code {
  padding: 2rem;
  font-size: 1.5rem;
  color: #ffffff;
  word-wrap: break-word;
  text-align: center;
}
