@charset "utf-8";
/* CSS Document */

/* Color Palette Generator */
.color-palette-tool {
  margin: 30px 0 22px;
}

.palette-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 5px;
}

.palette-control h3 {
  margin-top: 0;
}

.color-input-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
}

#colorPicker {
  width: 70px;
  height: 44px;
  padding: 3px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  cursor: pointer;
}

#hexInput,
#schemeSelect {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
  outline: none;
  font-size: 16px;
}

#hexInput {
  font-family: Consolas, monospace;
}

#schemeSelect {
  font-family: Poppins, sans-serif;
  cursor: pointer;
}

#hexInput:hover,
#schemeSelect:hover {
  border-color: #bbb;
}

#hexInput:focus,
#schemeSelect:focus {
  border-color: #0088cc;
}

.color-error {
  min-height: 20px;
  margin: 5px 0 0;
  color: #dc3545;
  font-size: 14px;
}

.palette-results {
  margin-top: 10px;
}

.palette-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
}

.palette-swatch {
  min-width: 0;
  background: #fff;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.palette-swatch-preview {
  width: 100%;
  height: 180px;
}

.palette-swatch-value {
  padding: 10px 5px;
  color: #333;
  background: #fff;
  font-family: Consolas, monospace;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.palette-swatch-value:hover {
  color: #0088cc;
}

.palette-swatch-label {
  display: block;
  margin-top: 2px;
  color: #777;
  font-family: Poppins, sans-serif;
  font-size: 11px;
}

@media screen and (max-width: 767px) {
  .palette-controls {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .palette-swatch-preview {
    height: 130px;
  }
}

@media screen and (max-width: 575px) {
  .color-input-row {
    grid-template-columns: 60px 1fr;
  }

  #colorPicker {
    width: 60px;
  }

  .palette-row {
    grid-template-columns: 1fr;
  }

  .palette-swatch-preview {
    height: 80px;
  }
}