/* renderjs-color-picker.css */
.square-color-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-picker {
  position: relative;
  width: 100%;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  touch-action: none;
}

/* 颜色渐变层 */
.hue-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 16.67%,
    #00ff00 33.33%,
    #00ffff 50%,
    #0000ff 66.67%,
    #ff00ff 83.33%,
    #ff0000 100%
  );
}

.white-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
}

.black-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, #000000 100%);
}

/* 颜色指示器 */
.color-indicator {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.indicator-ring {
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  background: transparent;
}

/* 颜色显示区域 */
.color-display {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.selected-color {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-value {
  font-family: monospace;
  font-size: 14px;
  color: #333333;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  flex: 1;
  text-align: center;
}