/* MTips5s Photoshop Lite - Color Range Dialog Styles */

.color-range-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e0e0e0;
}

.color-range-window {
  width: 440px;
  background: #2b2b2b;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.color-range-header {
  height: 38px;
  background: #1f1f1f;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.color-range-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-range-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
}

.color-range-close:hover {
  color: #fff;
}

.color-range-body {
  padding: 14px;
  display: flex;
  gap: 14px;
}

.color-range-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-range-right {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-range-right button {
  width: 100%;
  padding: 6px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid transparent;
}

.color-range-right .btn-primary {
  background: #007acc;
  color: #fff;
  border-color: #0060a0;
}

.color-range-right .btn-primary:hover {
  background: #0088e0;
}

.color-range-right .btn-secondary {
  background: #3c3c3c;
  color: #ddd;
  border-color: #4a4a4a;
}

.color-range-right .btn-secondary:hover {
  background: #4a4a4a;
  color: #fff;
}

.color-range-form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.color-range-label {
  font-size: 11.5px;
  color: #ccc;
  display: flex;
  justify-content: space-between;
}

.color-range-select {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #3e3e42;
  color: #eee;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 11.5px;
}

.color-range-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-range-slider-row input[type="range"] {
  flex: 1;
  accent-color: #007acc;
  height: 4px;
  cursor: pointer;
}

.color-range-num-input {
  width: 44px;
  background: #1e1e1e;
  border: 1px solid #3e3e42;
  color: #eee;
  padding: 3px 4px;
  text-align: right;
  border-radius: 3px;
  font-size: 11px;
}

/* Eyedropper row */
.color-range-dropper-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.color-range-dropper-btn {
  flex: 1;
  height: 28px;
  background: #333;
  border: 1px solid #444;
  border-radius: 3px;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  cursor: pointer;
}

.color-range-dropper-btn:hover {
  background: #404040;
  color: #fff;
}

.color-range-dropper-btn.active {
  background: #004d80;
  border-color: #007acc;
  color: #fff;
}

/* Preview Box */
.color-range-preview-box {
  width: 100%;
  height: 180px;
  background: #181818;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: crosshair;
}

.color-range-preview-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Radio preview mode row */
.color-range-radio-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 11px;
  color: #ccc;
  margin-top: 2px;
}

.color-range-radio-row label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.color-range-checkbox-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #ccc;
  cursor: pointer;
}
