/* 이미지 일괄 처리 전용 스타일 */

/* 파이프라인 설정 */
.pipeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.step-toggle input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.step-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.step-options {
  padding-left: 1.5rem;
}

.step-options.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.step-options select,
.step-options input[type="number"] {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
}

.step-options input[type="number"] {
  width: 80px;
}

.unit {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.step-options input[type="range"] {
  width: 180px;
  accent-color: var(--primary);
}

#quality-value {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 3ch;
}

/* btn-clear override: padding difference */
.btn-clear {
  padding: 0.5rem 0.75rem;
}

/* results-header override: flex-wrap + gap */
.results-header {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-summary {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
}

.results-actions {
  display: flex;
  gap: 0.5rem;
}

/* result-item overrides: slightly different padding/sizes */
.result-item {
  padding: 0.75rem 1rem;
}

.result-item .thumb {
  width: 44px;
  height: 44px;
}

.result-item .filename {
  font-size: 0.85rem;
}

.result-item .sizes {
  font-size: 0.78rem;
}

.result-item .savings {
  font-size: 0.78rem;
}

.result-item .btn-download {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

/* 반응형 */
@media (max-width: 480px) {
  .step-options input[type="range"] {
    width: 140px;
  }
}
