/* =========================================================
   Image Converters – Shared Styles
   Platform: UnitConverterTool.com
   Scope: Image Converters & Tools
   ========================================================= */

/* Root container */
.uct-image-converter {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #f8f9fb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

/* Heading */
.uct-image-converter_heading {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

/* Description */
.uct-image-converter_description {
  font-size: 16px;
  color: #555;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Upload section */
.uct-image-converter_upload-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

/* Upload button */
.uct-image-converter_upload-btn {
  background-color: #2f80ed;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.25s ease;
}

.uct-image-converter_upload-btn:hover {
  background-color: #1d6adb;
}

.uct-image-converter_upload-btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Drag & drop hint */
.uct-image-converter_drop-text {
  font-size: 14px;
  color: #777;
  margin-top: 6px;
}

/* Progress container */
.uct-image-converter_progress-container {
  margin: 22px 0;
}

/* Progress bar background */
.uct-image-converter_progress-container::before {
  content: "";
  display: block;
  height: 6px;
  background-color: #e6e6e6;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Progress bar */
.uct-image-converter_progress-bar {
  height: 6px;
  width: 0%;
  background-color: #000000;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Progress text */
.uct-image-converter_progress-text {
  font-size: 14px;
  color: #555;
}

/* Result text */
#uct-result-text {
  margin-top: 16px;
  font-size: 15px;
  color: #333;
}

/* Error messages */
.uct-image-converter_errors {
  margin-top: 16px;
}

.uct-image-converter_error-item {
  background-color: #fdecea;
  color: #b3261e;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 14px;
  text-align: left;
}

/* Download area */
#uct-download-area {
  margin-top: 18px;
}

/* Download links */
.uct-image-converter_download-link {
  display: inline-block;
  margin: 8px;
  padding: 12px 20px;
  background-color: #27ae60;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease;
}

.uct-image-converter_download-link:hover {
  background-color: #000000;
}

/* Clear button */
#uct-clear-btn {
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 6px;
  background-color: #e0e0e0;
  color: #333;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

#uct-clear-btn:hover {
  background-color: #d0d0d0;
}

/* =========================================================
   Optional Controls (Select / Radio / Checkbox)
   ========================================================= */

/* Select dropdown */
.uct-image-converter select {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  margin: 10px 0;
}

/* Format selection row */
.uct-image-converter_format-row {
  margin: 20px 0;
  text-align: center;
}

.uct-image-converter_format-label {
  font-weight: bold;
  margin-right: 10px;
}

.uct-image-converter_format-select {
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Radio & checkbox inputs */
.uct-image-converter input[type="radio"],
.uct-image-converter input[type="checkbox"] {
  margin-right: 6px;
}

/* Drag over state */
.uct-image-converter--drag-over {
  border: 2px dashed #0073aa;
  background-color: rgba(0, 115, 170, 0.05);
}