/* /var/www/html/assets/css/image-convert.css : 이미지 변환(전용/통합) 페이지 전용 스타일 */

.cv-tool {
  margin-top: 8px;
}

/* 변환 설정 패널 */
.cv-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin: 18px 0 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.cv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cv-field[hidden] { display: none; }

.cv-field label {
  font-size: 0.82rem;
  color: var(--muted);
}

.cv-field select {
  appearance: none;
  width: 100%;
  padding: 9px 34px 9px 10px;
  font-size: 0.9rem;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23f5f5f2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.cv-field select:hover {
  border-color: var(--muted);
}

.cv-field select:focus {
  outline: none;
  border-color: var(--text);
}

/* 드롭다운 목록 항목이 밝은 배경에서 흰 글자로 안 보이는 문제 방지 */
.cv-field select option {
  color: #161616;
  background: #f5f5f2;
}

.cv-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-range-row input[type="range"] {
  flex: 1;
  accent-color: var(--text);
}

.cv-range-row output {
  min-width: 2.2em;
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

/* 상단 도구 바 */
.cv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 6px;
}

.cv-counter {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--muted);
}

.cv-note {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* 이미지 카드 그리드 */
.cv-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.cv-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
}

.cv-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: transparent;
}

.cv-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.cv-status {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}

.cv-status[data-status="done"] { background: #1f7a3d; }
.cv-status[data-status="error"] { background: #a32020; }

.cv-item-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
}

.cv-item-name {
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cv-item-dims {
  font-size: 0.8rem;
  color: var(--muted);
}

.cv-item-body .btn {
  padding: 8px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* 안내/FAQ/관련 링크 영역 */
.cv-guide {
  margin-top: 34px;
}

.cv-guide h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.cv-guide h3 {
  font-size: 0.98rem;
  margin: 16px 0 4px;
}

.cv-guide p,
.cv-guide li {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.cv-guide ol,
.cv-guide ul {
  margin: 0;
  padding-left: 20px;
}

.cv-links {
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.cv-links a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  text-decoration: none;
}

.cv-links a:hover {
  border-color: var(--text);
}

@media (max-width: 520px) {
  .cv-counter { margin-left: 0; width: 100%; }
  .cv-toolbar .btn { flex: 1; }
}
