/*!
 * ==========================================================
 *  Image Converters Hub CSS — v2.0
 * ==========================================================
 *  REPLACES: image-converters-v1.css (do not load both)
 *
 *  Contains:
 *  - [SECTION 1]  All v1 base styles (preserved from v1)
 *  - [SECTION 2]  Dark theme overrides for tool wrapper
 *  - [SECTION 3]  Two-column grid layout
 *  - [SECTION 4]  Upload area (light theme, inside dark wrapper)
 *  - [SECTION 5]  Options panel — container & typography
 *  - [SECTION 6]  Options panel — quality slider
 *  - [SECTION 7]  Options panel — resize tabs
 *  - [SECTION 8]  Options panel — scale slider sub-panel
 *  - [SECTION 9]  Options panel — custom dimensions sub-panel
 *  - [SECTION 10] Options panel — preset grid sub-panel
 *  - [SECTION 11] Convert button
 *  - [SECTION 12] Controls area (dark theme)
 *  - [SECTION 13] File list — dark theme, thumbnails, meta info
 *  - [SECTION 14] File size comparison — color-coded indicators
 *  - [SECTION 15] Options collapse/expand & summary badge
 *  - [SECTION 16] Re-convert button
 *  - [SECTION 17] Responsive — tablet (<=1024px)
 *  - [SECTION 18] Responsive — mobile (<=768px)
 * ==========================================================
 */

/* ==========================================================
   [SECTION 1] BASE STYLES (from v1 — preserved verbatim)
   ========================================================== */

.uct-image-converter {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 820px;
  margin: 0 auto;
}

.uct-image-converter * {
  box-sizing: border-box;
}

/* HEADER / INTRO AREA */

.uct-image-converter_heading {
  text-align: center;
  margin-bottom: 24px;
}

.uct-image-converter_heading h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.uct-image-converter_description {
  color: #555;
  font-size: 15px;
}

/* UPLOAD AREA */

.uct-upload-area,
.uct-raw-upload-area {
  background: #f9f9f9;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.uct-upload-area.drag-over,
.uct-raw-upload-area.drag-over {
  border-color: #c0392b;
  background: #fff5f5;
}

.uct-upload-area h3,
.uct-raw-upload-area h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.uct-upload-area p,
.uct-raw-upload-area p {
  margin: 4px 0;
  color: #6b7280;
}

/* PRIMARY ACTION BUTTONS */

.uct-dropdown-container {
  position: relative;
  display: inline-block;
  margin-top: 12px;
}

.uct-split-btn-group {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
}

.uct-btn-main {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 12px 35px;
  cursor: pointer;
  font-size: 1.2rem;
}

.uct-btn-main:hover {
  background: #a93226;
}

.uct-btn-arrow {
  background: #c0392b;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.uct-btn-arrow:hover {
  background: #a93226;
}

.uct-btn-arrow svg {
  color: #fff;
}

/* BUTTON BORDER RESET — Remove Hello Elementor default border radius */

.uct-image-converter button,
.uct-image-converter .uct-btn-main,
.uct-image-converter .uct-btn-arrow,
.uct-image-converter .uct-action-btn,
.uct-image-converter .uct-secondary-btn {
  border-radius: 0;
}

/* DROPDOWN MENU */

.uct-dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 220px;
  display: none;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.uct-dropdown-menu.show {
  display: block;
}

.uct-dropdown-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.uct-dropdown-item svg {
  width: 18px;
  height: 18px;
  color: #555;
}

.uct-dropdown-item:hover {
  background: #f3f4f6;
}

/* HELPER & CONTEXT TEXT */

.uct-helper-text {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
}

/* TRUST INDICATORS */

.uct-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.uct-trust-strip span {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
}

/* TOOL CONTROLS */

.uct-controls-area {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  justify-content: center;
}

.uct-action-btn {
  background: #c0392b;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.uct-action-btn:hover {
  background: #a93226;
}

.uct-secondary-btn {
  background: #e5e7eb;
  color: #111;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.uct-secondary-btn:hover {
  background: #d1d5db;
}

/* FILE LIST & PROGRESS */

.uct-file-list {
  margin-top: 16px;
}

.uct-file-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.uct-file-name {
  font-weight: 600;
  font-size: 14px;
}

.uct-file-status {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.uct-file-progress-bar {
  background: #e5e7eb;
  height: 6px;
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.uct-file-progress-fill {
  background: #c0392b;
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
}

.uct-action-area {
  margin-top: 10px;
}

.uct-image-converter_download-link {
  display: inline-block;
  margin-top: 6px;
  color: #c0392b;
  text-decoration: none;
  font-weight: 500;
}

.uct-image-converter_download-link:hover {
  text-decoration: underline;
}

/* OUTPUT & PRIVACY NOTES */

.uct-output-note,
.uct-privacy-note {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-top: 14px;
}

/* MODAL SYSTEM */

.uct-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.uct-modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  overflow: hidden;
}

.uct-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uct-modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.uct-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.uct-modal-body {
  padding: 16px;
}

.uct-modal-info {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
}

.uct-modal-note {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
}

.uct-input-field {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.uct-modal-footer {
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ERROR STATES */

.uct-error-msg,
.uct-error-text {
  color: #c0392b;
  font-size: 13px;
}

/* UTILITY CLASSES */

.uct-hidden {
  display: none !important;
}

.uct-hidden-input {
  display: none;
}

/* Aspect lock icon toggle via CSS — locked state shows lock, hides unlock */
.uct-aspect-lock.locked .unlock-icon {
  display: none;
}

.uct-aspect-lock.locked .lock-icon {
  display: block;
}

.uct-aspect-lock:not(.locked) .lock-icon {
  display: none;
}

.uct-aspect-lock:not(.locked) .unlock-icon {
  display: block;
}

/* ==========================================================
   [SECTION 2] DARK THEME OVERRIDES FOR TOOL WRAPPER
   ========================================================== */

.uct-image-converter {
  /*background: #0f1219;*/
  padding: 24px;
  border-radius: 16px;
  max-width: 1200px;
}

/* Heading text — white on dark */
.uct-image-converter_heading h1 {
  color: #ffffff;
}

.uct-image-converter_description {
  color: #9ca3af;
}

/* Output & privacy notes — white on dark */
.uct-output-note,
.uct-privacy-note {
  color: #9ca3af;
}

/* ==========================================================
   [SECTION 3] TWO-COLUMN GRID LAYOUT
   ========================================================== */

.uct-converter-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: stretch;
}

.uct-converter-main {
  display: flex;
  flex-direction: column;
}

.uct-converter-main .uct-upload-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.uct-converter-sidebar {
  display: flex;
  flex-direction: column;
}

.uct-converter-sidebar .uct-options-panel {
  flex: 1;
}

.uct-converter-sidebar .uct-convert-btn {
  flex-shrink: 0;
}

/* ==========================================================
   [SECTION 4] UPLOAD AREA (dark theme to match wrapper)
   ========================================================== */

.uct-upload-area {
  background: #1a1f2e;
  border: 2px dashed #3a4258;
  border-radius: 12px;
}

.uct-upload-area.drag-over {
  border-color: #4a90ff;
  background: rgba(74, 144, 255, 0.06);
}

.uct-upload-area h3 {
  color: #ffffff;
}

.uct-upload-area p {
  color: #9ca3af;
}

.upload-icon {
  color: #9ca3af;
  margin-bottom: 12px;
}

.uct-upload-area .upload-icon svg {
  color: #9ca3af;
}

/* Trust strip — dark variant inside dark upload area */
.uct-upload-area .uct-trust-strip span {
  background: #252d3f;
  border-color: #3a4258;
  color: #9ca3af;
}

/* Helper text inside dark upload area */
.uct-upload-area .uct-helper-text {
  color: #6b7280;
}

/* Drop text (max file size) */
.uct-image-converter_drop-text {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
}

/* ==========================================================
   [SECTION 5] OPTIONS PANEL — CONTAINER & TYPOGRAPHY
   ========================================================== */

.uct-options-panel {
  background: #1a1f2e;
  border-radius: 12px;
  padding: 24px;
  margin: 0;
  color: #ffffff;
}

.uct-options-panel *,
.uct-options-panel *::before,
.uct-options-panel *::after {
  box-sizing: border-box;
}

.uct-options-section {
  margin-bottom: 24px;
}

.uct-options-section:last-child {
  margin-bottom: 0;
}

.uct-options-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.uct-options-section-label svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

/* Options panel links */
.uct-options-panel a {
  color: #4a90ff;
  text-decoration: none;
}

.uct-options-panel a:hover {
  text-decoration: underline;
}

/* ==========================================================
   [SECTION 6] OPTIONS PANEL — QUALITY SLIDER
   ========================================================== */

.uct-quality-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uct-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uct-slider-track {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #3a4258;
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.uct-slider-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4a90ff;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin-top: 0;
}

.uct-slider-track::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4a90ff;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.uct-slider-track::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
}

.uct-slider-track::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #3a4258;
}

.uct-slider-value {
  min-width: 44px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #4a90ff;
}

.uct-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
}

/* ==========================================================
   [SECTION 7] OPTIONS PANEL — RESIZE TABS
   ========================================================== */

.uct-resize-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.uct-resize-tab {
  flex: 1;
  padding: 10px 12px;
  background: #1e2538;
  border: 1px solid #3a4258;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.uct-resize-tab svg {
  width: 18px;
  height: 18px;
}

.uct-resize-tab:hover {
  border-color: #4a90ff;
  color: #e2e8f0;
}

.uct-resize-tab.active {
  background: rgba(74, 144, 255, 0.08);
  border-color: #4a90ff;
  color: #ffffff;
}

/* ==========================================================
   [SECTION 8] OPTIONS PANEL — SCALE SLIDER SUB-PANEL
   ========================================================== */

.uct-resize-subpanel {
  background: #252d3f;
  border: 1px solid #3a4258;
  border-radius: 10px;
  padding: 18px;
  display: none;
}

.uct-resize-subpanel.active {
  display: block;
}

.uct-resize-subpanel-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.uct-scale-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uct-scale-slider .uct-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uct-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9ca3af;
  padding: 0 2px;
}

/* ==========================================================
   [SECTION 9] OPTIONS PANEL — CUSTOM DIMENSIONS SUB-PANEL
   ========================================================== */

.uct-dimensions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uct-dimensions-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uct-dimensions-input label {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.uct-dimensions-input input {
  width: 100%;
  padding: 10px 12px;
  background: #1e2538;
  border: 1px solid #3a4258;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.uct-dimensions-input input::placeholder {
  color: #555e73;
}

.uct-dimensions-input input:focus {
  border-color: #4a90ff;
}

.uct-aspect-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #1e2538;
  border: 1px solid #3a4258;
  border-radius: 10px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 18px;
  transition: all 0.2s ease;
  margin-top: 18px;
  flex-shrink: 0;
}

.uct-aspect-lock svg {
  width: 24px;
  height: 24px;
}

.uct-aspect-lock:hover {
  border-color: #4a90ff;
  color: #4a90ff;
}

.uct-aspect-lock.locked {
  background: rgba(74, 144, 255, 0.12);
  border-color: #4a90ff;
  color: #4a90ff;
}

/* ==========================================================
   [SECTION 10] OPTIONS PANEL — PRESET GRID SUB-PANEL
   ========================================================== */

.uct-preset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.uct-preset-header .uct-aspect-lock {
  margin-top: 0;
}

.uct-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.uct-preset-grid::-webkit-scrollbar {
  width: 5px;
}

.uct-preset-grid::-webkit-scrollbar-track {
  background: #1e2538;
  border-radius: 3px;
}

.uct-preset-grid::-webkit-scrollbar-thumb {
  background: #3a4258;
  border-radius: 3px;
}

.uct-preset-card {
  background: #1e2538;
  border: 1px solid #3a4258;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uct-preset-card:hover {
  border-color: #4a90ff;
}

.uct-preset-card.selected {
  background: rgba(74, 144, 255, 0.08);
  border-color: #4a90ff;
}

.uct-preset-name {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.uct-preset-dims {
  font-size: 12px;
  color: #9ca3af;
}

/* ==========================================================
   [SECTION 11] CONVERT BUTTON
   ========================================================== */

.uct-convert-btn {
  width: 100%;
  background: #1a2542;
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.uct-convert-btn:hover {
  background: #243356;
}

.uct-convert-btn:disabled {
  background: #1a1f2e;
  color: #555e73;
  cursor: not-allowed;
}

.uct-convert-btn .uct-convert-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: uct-spin 0.6s linear infinite;
}

@keyframes uct-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================
   [SECTION 12] CONTROLS AREA (dark theme)
   ========================================================== */

.uct-image-converter .uct-controls-area {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.uct-image-converter .uct-action-btn {
  background: #1a2542;
  color: #fff;
  border: 1px solid #2a3348;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.uct-image-converter .uct-action-btn:hover {
  background: #243356;
}

.uct-image-converter .uct-secondary-btn {
  background: #1a1f2e;
  color: #9ca3af;
  border: 1px solid #2a3348;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.uct-image-converter .uct-secondary-btn:hover {
  background: #252d3f;
  color: #ffffff;
}

/* ==========================================================
   [SECTION 13] FILE LIST — DARK THEME, THUMBNAILS, META INFO
   ========================================================== */

.uct-image-converter .uct-file-item {
  background: #1a1f2e;
  border: 1px solid #2a3348;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.uct-file-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.uct-file-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #252d3f;
  border: 1px solid #3a4258;
}

.uct-file-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.uct-image-converter .uct-file-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.uct-file-dimensions {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.uct-image-converter .uct-file-status {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
}

.uct-image-converter .uct-file-progress-bar {
  background: #3a4258;
  height: 6px;
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.uct-image-converter .uct-file-progress-fill {
  background: #4a90ff;
  height: 100%;
  width: 0%;
  transition: width 0.2s ease;
}

.uct-image-converter .uct-image-converter_download-link {
  color: #4a90ff;
  text-decoration: none;
  font-weight: 500;
}

.uct-image-converter .uct-image-converter_download-link:hover {
  text-decoration: underline;
}

/* ==========================================================
   [SECTION 14] FILE SIZE COMPARISON — COLOR-CODED INDICATORS
   ========================================================== */

.uct-file-size-compare {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.uct-size-decreased {
  color: #22c55e;
  font-weight: 600;
}

.uct-size-increased {
  color: #f59e0b;
  font-weight: 600;
}

.uct-size-same {
  color: #9ca3af;
  font-weight: 600;
}

/* ==========================================================
   [SECTION 15] OPTIONS COLLAPSE/EXPAND & SUMMARY BADGE
   ========================================================== */

.uct-options-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0 0 16px 0;
  border-bottom: 1px solid #2d3548;
  margin-bottom: 20px;
  user-select: none;
}

.uct-options-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.uct-options-toggle-left svg {
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.uct-options-toggle-arrow {
  font-size: 13px;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.uct-options-panel.collapsed .uct-options-toggle-arrow {
  transform: rotate(-90deg);
}

.uct-options-panel.collapsed .uct-options-body {
  display: none;
}

.uct-options-panel.collapsed .uct-options-toggle {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.uct-options-summary {
  display: none;
  font-size: 12px;
  color: #9ca3af;
  background: #252d3f;
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 12px;
  white-space: nowrap;
}

.uct-options-panel.collapsed .uct-options-summary {
  display: inline-block;
}

/* ==========================================================
   [SECTION 16] RE-CONVERT BUTTON
   ========================================================== */

.uct-reconvert-btn {
  background: #4a90ff;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.uct-reconvert-btn:hover {
  background: #3b7de0;
}

/* ==========================================================
   [SECTION 17] RESPONSIVE — TABLET (<=1024px)
   ========================================================== */

@media (max-width: 1024px) {
  .uct-converter-layout {
    grid-template-columns: 1fr 320px;
    gap: 16px;
  }
}

/* ==========================================================
   [SECTION 18] RESPONSIVE — MOBILE (<=768px)
   ========================================================== */

@media (max-width: 768px) {
  .uct-image-converter {
    padding: 16px;
  }

  .uct-converter-layout {
    grid-template-columns: 1fr;
  }

  .uct-converter-main .uct-upload-area {
    height: auto;
    min-height: auto;
  }

  .uct-controls-area {
    flex-direction: column;
  }

  .uct-action-btn,
  .uct-secondary-btn,
  .uct-reconvert-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .uct-upload-area,
  .uct-raw-upload-area {
    padding: 24px 16px;
  }

  .uct-options-panel {
    padding: 16px;
  }

  .uct-resize-tabs {
    flex-wrap: wrap;
  }

  .uct-resize-tab {
    flex: 1 1 calc(50% - 4px);
  }

  .uct-preset-grid {
    grid-template-columns: 1fr;
  }

  .uct-dimensions-row {
    flex-direction: column;
    gap: 8px;
  }

  .uct-aspect-lock {
    margin-top: 0;
    align-self: center;
  }

  .uct-file-item-row {
    flex-direction: column;
  }

  .uct-file-thumb {
    width: 100%;
    height: 120px;
  }
}
