/* /var/www/html/assets/css/pdf.css
   PDF 도구(합치기·나누기·이미지→PDF) 공용 스타일. 브라우저 내 처리 UI.
   업로드 드롭존, 파일 목록, 옵션, 결과 영역. style.css의 .btn 계열을 재사용한다. */

.pdf-tool {
  margin-top: 22px;
}

.pdf-dropzone {
  border: 2px dashed var(--line-dark, rgba(0, 0, 0, 0.18));
  border-radius: 16px;
  background: var(--card, #f7f7f4);
  color: var(--text-dark, #161616);
  padding: 38px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.pdf-dropzone:hover,
.pdf-dropzone:focus-within,
.pdf-dropzone.is-drag {
  border-color: var(--indigo, #8fa0ef);
  background: var(--indigo-soft, #e4e7fb);
}

.pdf-dropzone .pdf-drop-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.pdf-dropzone .pdf-drop-hint {
  color: var(--muted, #6b6b66);
  font-size: 0.9rem;
  margin: 0;
}

.pdf-dropzone input[type="file"] {
  display: none;
}

/* 파일 목록 */
.pdf-files {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-dark, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  background: var(--card, #f7f7f4);
  color: var(--text-dark, #161616);
}

.pdf-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.94rem;
}

.pdf-file-meta {
  color: var(--muted, #6b6b66);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.pdf-file-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.pdf-icon-btn {
  border: 1px solid var(--line-dark, rgba(0, 0, 0, 0.14));
  background: transparent;
  color: var(--text-dark, #161616);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdf-icon-btn:hover {
  background: var(--indigo-soft, #e4e7fb);
  border-color: var(--indigo, #8fa0ef);
}

.pdf-icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* 옵션 영역 */
.pdf-options {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-end;
}

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

.pdf-field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark, #161616);
}

.pdf-field input[type="text"],
.pdf-field select {
  padding: 9px 11px;
  border: 1px solid var(--line-dark, rgba(0, 0, 0, 0.18));
  border-radius: 10px;
  font-size: 0.94rem;
  background: #fff;
  color: #161616;
  min-width: 200px;
}

.pdf-field .pdf-field-hint {
  color: var(--muted, #6b6b66);
  font-size: 0.8rem;
  font-weight: 400;
}

/* 액션 버튼 줄 */
.pdf-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdf-status {
  margin-top: 14px;
  color: var(--muted, #6b6b66);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.pdf-status.is-error {
  color: #d1495b;
}

.pdf-status.is-ok {
  color: #2f9e6f;
}

.pdf-guide {
  margin-top: 34px;
}

.pdf-guide h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

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

.pdf-guide ol,
.pdf-guide ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .pdf-field input[type="text"],
  .pdf-field select {
    min-width: 0;
    width: 100%;
  }
  .pdf-field {
    width: 100%;
  }
}
