/* Match Color Adjustment Modal Styles */

.match-color-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #d8d8d8;
  user-select: none;
}

.match-color-modal {
  width: 680px;
  max-width: 95vw;
  background: #2b2b2b;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px #3e3e3e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.match-color-header {
  padding: 12px 18px;
  background: #333333;
  border-bottom: 1px solid #202020;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-color-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #efefef;
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-color-header .close-btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.match-color-header .close-btn:hover {
  color: #fff;
}

.match-color-body {
  display: flex;
  padding: 16px;
  gap: 18px;
}

.match-color-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-color-preview-box {
  width: 100%;
  height: 220px;
  background: #1a1a1a;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-color-preview-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.match-color-preview-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #aaa;
  pointer-events: none;
}

.match-color-section {
  background: #232323;
  border: 1px solid #383838;
  border-radius: 6px;
  padding: 12px 14px;
}

.match-color-section-title {
  font-size: 12px;
  font-weight: 600;
  color: #4a9eff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-color-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
}

.match-color-control-row:last-child {
  margin-bottom: 0;
}

.match-color-control-row label {
  flex: 0 0 130px;
  color: #ccc;
}

.match-color-slider-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-color-slider-wrap input[type="range"] {
  flex: 1;
  accent-color: #0078d4;
  height: 4px;
  cursor: pointer;
}

.match-color-slider-wrap input[type="number"] {
  width: 52px;
  background: #181818;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 12px;
  text-align: right;
}

.match-color-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  cursor: pointer;
}

.match-color-checkbox-row input[type="checkbox"] {
  accent-color: #0078d4;
  cursor: pointer;
}

.match-color-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-color-source-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-color-select {
  width: 100%;
  background: #181818;
  border: 1px solid #444;
  color: #eee;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.match-color-select:focus {
  outline: none;
  border-color: #0078d4;
}

.match-color-thumb-preview {
  width: 100%;
  height: 100px;
  background: #181818;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.match-color-stats-info {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
  background: #1c1c1c;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #303030;
}

.match-color-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.match-color-btn {
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-align: center;
}

.match-color-btn-primary {
  background: #0078d4;
  color: #fff;
  border-color: #0060aa;
}

.match-color-btn-primary:hover {
  background: #1084df;
}

.match-color-btn-secondary {
  background: #3a3a3a;
  color: #ddd;
  border-color: #4a4a4a;
}

.match-color-btn-secondary:hover {
  background: #484848;
  color: #fff;
}
