/* ===========================================
   Image Convert Module Styles
   =========================================== */

/* --- Upload Area --- */
#ic-upload-area {
  margin: 8px 12px;
  padding: 16px 8px;
  border: 1px dashed #2A2A2A;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
#ic-upload-area:hover {
  border-color: #3A3A3A;
  background: rgba(255,255,255,0.01);
}
#ic-upload-area span {
  font-size: 11px;
  color: #666;
}
#ic-upload-area input[type="file"] {
  display: none;
}

/* --- Image List --- */
#ic-image-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}
#ic-image-list .img-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 4px;
}
#ic-image-list .img-list-item:hover {
  background: rgba(255,255,255,0.03);
}
#ic-image-list .img-list-item.active {
  border: 0.5px solid rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.05);
}
#ic-image-list .img-list-item.selected {
  background: rgba(0,212,255,0.08);
}
#ic-image-list .img-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}
#ic-image-list .img-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#ic-image-list .img-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
#ic-image-list .img-name {
  font-size: 11px;
  color: #E8E8E8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#ic-image-list .img-size {
  font-size: 10px;
  color: #666;
  margin-top: 2px;
}
#ic-image-list .img-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #1A1A1A;
  border: 0.5px solid #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
#ic-image-list .img-list-item.selected .img-checkbox {
  background: #00D4FF;
  border-color: #00D4FF;
}

/* --- List Footer --- */
#ic-list-footer {
  padding: 8px 12px;
  border-top: 0.5px solid #2A2A2A;
  font-size: 11px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#ic-list-footer .footer-value {
  color: #AAA;
}

/* --- Preview Area --- */
#ic-preview-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
#ic-preview-area .preview-row {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  align-items: flex-start;
  justify-content: center;
}
#ic-preview-area .preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 320px;
}
#ic-preview-area .preview-label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
}
#ic-preview-area .preview-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid #2A2A2A;
}
#ic-preview-area .preview-img-wrap.checkerboard {
  background-image:
    linear-gradient(45deg, #1A1A1A 25%, transparent 25%),
    linear-gradient(-45deg, #1A1A1A 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1A1A1A 75%),
    linear-gradient(-45deg, transparent 75%, #1A1A1A 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #222;
}
#ic-preview-area .preview-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
#ic-preview-area .preview-info {
  font-size: 11px;
  color: #666;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Empty State --- */
#ic-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #555;
}
#ic-empty-state.hidden {
  display: none;
}
#ic-empty-state p {
  font-size: 13px;
}

/* --- Format Description --- */
.format-desc {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

/* --- Progress Bar --- */
#ic-progress-bar {
  height: 6px;
  background: #1A1A1A;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
#ic-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #00D4FF, #7B2FFF);
  border-radius: 3px;
  transition: width 0.3s;
}
#ic-progress-text {
  font-size: 11px;
  color: #888;
  text-align: center;
}

/* --- Range Input --- */
#ic-input-quality {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #2A2A2A;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#ic-input-quality::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00D4FF;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,212,255,0.3);
}
#ic-input-quality::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00D4FF;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(0,212,255,0.3);
}

/* --- Color Input --- */
#ic-bg-color {
  width: 36px;
  height: 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}
#ic-bg-color::-webkit-color-swatch-wrapper {
  padding: 0;
}
#ic-bg-color::-webkit-color-swatch {
  border: 0.5px solid #2A2A2A;
  border-radius: 4px;
}
