/* Filename: /assets/css/compress-pdf.css */

/* Make Compress behave like Merge visually when running */
#compress-pdfForm .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(30%);
}

/* Collapse file area (500ms) - matches the pattern already in styles.css */
#compress-pdfForm .tap-file-info,
#compress-pdfForm .file-list {
  overflow: hidden;
  max-height: 500px;
}

#compress-pdfForm .tap-file-info.is-collapsing,
#compress-pdfForm .file-list.is-collapsing {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin: 0 !important;
  padding: 0 !important;
  transition: max-height .5s ease, opacity .5s ease, transform .5s ease;
}

/* Start Over wrapper injected by JS */
#compress-pdfForm .pdfw-startover-wrap {
  margin-top: 14px;
}


/* =========================================================
   ALIGN FILE LIST + CONTROLS WITH DROP ZONE
   ========================================================= */

#compressShell #compressControls {
  padding-left: 0;
  padding-right: 0;
}

#compressShell .pw-file-list-wrap,
#compressShell .pw-file-list-inner {
  padding-left: 0;
  padding-right: 0;
}

/* Remove inline padding wrapper indentation */
#compressShell #compressControls > div[style*="padding:0 16px"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* =========================================================
   STYLE COMPRESSION DROPDOWN TO MATCH TOOL UI
   ========================================================= */

#compressShell select#compressLevel {
  -webkit-appearance: none;
  appearance: none;

  font: inherit;
  color: #111827;
  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  height: 42px;                /* explicit height to prevent clipping */
  padding: 0 36px 0 14px;      /* no vertical padding */
  line-height: 42px;           /* vertically center text */

  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  min-width: 220px;

  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Custom caret */
#compressShell .field-row {
  position: relative;
}

#compressShell .field-row:has(select#compressLevel)::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .6;
  font-size: 14px;
}

/* Focus state */
#compressShell select#compressLevel:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

/* Label styling */
#compressShell .field-row > div {
  font-weight: 600;
  color: #374151;
}
