@import "../style.css";

/* Compressor Specific Layout Styles */
.compressor-settings-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Drag & Drop Styles representing professional upload portals */
.drop-zone {
  border: 2px dashed var(--border-muted);
  border-radius: 6px;
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  background-color: var(--bg-input);
  transition: var(--transition);
}

.drop-zone:hover, .drop-zone.active {
  border-color: var(--tool-color);
  background-color: rgba(132, 204, 22, 0.05);
}

.drop-desc {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.browse-link {
  color: var(--tool-color);
  text-decoration: underline;
  font-weight: 700;
}

.controls-row-adjuster {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

@media(max-width: 768px) {
  .controls-row-adjuster {
    grid-template-columns: 1fr;
  }
}

.control-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Quality ranges overrides */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--border-muted);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tool-color);
  cursor: pointer;
  transition: var(--transition);
}

/* Comparisons header and statistics cards layouts */
.comparison-ratios-panel {
  display: flex;
  background-color: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
  gap: 2rem;
}

@media(max-width: 600px) {
  .comparison-ratios-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
}

.ratio-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ratio-stat .lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.ratio-stat .val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.highlight-savings .val {
  color: #10b981;
}

.comparison-ratios-panel button {
  margin-left: auto;
}

@media(max-width: 600px) {
  .comparison-ratios-panel button {
    margin-left: 0;
  }
}

/* Split panel heights preview windows scaling */
.img-preview-canvas-holder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-input);
  border: 1px dashed var(--border-muted);
  border-radius: 4px;
  padding: 0.75rem;
  min-height: 250px;
  max-height: 380px;
  overflow: hidden;
}

.img-preview-canvas-holder img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 2px;
  background: repeating-conic-gradient(var(--border-muted) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}
