.png-drop-zone {
  border: 2px dashed #b8c2cc;
  border-radius: 10px;
  padding: 42px 20px;
  background: #f8f9fa;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.png-drop-zone:hover,
.png-drop-zone.is-dragging {
  border-color: #2196f3;
  background: #f1f8ff;
}

.png-drop-icon {
  font-size: 3rem;
  color: #2196f3;
}

.png-file-row {
  border: 1px solid #e6e8eb;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.png-file-preview {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f3f5;
  border: 1px solid #e2e6ea;
  flex: 0 0 54px;
}

.png-file-info {
  min-width: 0;
}

.png-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.png-comparison-card {
  border: 1px solid #e3e7eb;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  height: 100%;
}

.png-comparison-header {
  padding: 12px 14px;
  border-bottom: 1px solid #e8ebee;
  background: #f8f9fa;
}

.png-comparison-image-wrap {
  min-height: 280px;
  background: #eef1f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.png-comparison-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.png-comparison-meta {
  padding: 12px 14px;
}

.png-comparison-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.9rem;
}

.png-comparison-stat + .png-comparison-stat {
  border-top: 1px solid #f0f1f2;
}

.png-comparison-label {
  color: #6c757d;
}

.png-before-after-title {
  position: relative;
}

.png-before-after-title:after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #2196f3;
  margin-top: 8px;
  border-radius: 2px;
}

.png-result-summary {
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  background: #f8f9fa;
}

#pngResults .table td,
#pngResults .table th {
  vertical-align: middle;
}

@media (max-width: 767.98px) {
  .png-drop-zone {
    padding: 30px 15px;
  }

  .png-comparison-image-wrap {
    min-height: 220px;
  }

  .png-comparison-image {
    max-height: 320px;
  }

  #pngResults .table {
    min-width: 720px;
  }
}

/* v1.2: common + per-image quality controls and pre-compression estimates */

.png-common-settings {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
}

.png-common-settings .custom-range,
.png-file-quality .custom-range {
  cursor: pointer;
}

.png-file-row {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.png-file-preview {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  object-fit: cover;
  background: #f8fafc;
}

.png-file-details {
  min-width: 0;
}

.png-file-quality {
  width: 100%;
  margin-top: 10px;
}

.png-estimate-box {
  border-top: 1px solid #edf2f7;
  margin-top: 10px;
  padding-top: 10px;
}

.png-estimate-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 16px;
  font-size: 0.82rem;
}

.png-estimate-stat .label {
  color: #64748b;
}

.png-estimate-stat .value {
  font-weight: 600;
  color: #1e293b;
}

.png-estimate-saving {
  font-weight: 700;
}

.png-estimate-saving.is-saving {
  color: #16a34a;
}

.png-estimate-saving.is-larger {
  color: #d97706;
}

.png-quality-badge {
  min-width: 50px;
  text-align: center;
}

@media (min-width: 768px) {
  .png-file-quality {
    width: 55%;
    margin-left: 76px;
  }
}

@media (max-width: 767.98px) {
  .png-file-preview {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .png-estimate-stat {
    margin-right: 10px;
    margin-bottom: 4px;
  }
}
