* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #eef1f5;
  font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
  font-size: 14px;
  color: #222;
}

.app {
  width: 650px;
  max-width: calc(100vw - 24px);
  margin: 40px 0;
  padding: 24px 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 4px solid transparent; /* 드롭 강조 시 색만 토글 (레이아웃 흔들림 방지) */
}

.app.drop-active { border-color: #0066cc; }

h1 { font-size: 20px; margin: 0 0 4px; }

.privacy-note { margin: 0 0 18px; color: #667; font-size: 12.5px; }

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.row-label { width: 100px; flex-shrink: 0; font-weight: 600; }

#fileNameBox { flex: 1; min-width: 200px; }

input[type="text"], select {
  padding: 6px 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

input[type="text"]:disabled { background: #f0f0f0; color: #999; }

button {
  padding: 6px 14px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #f7f7f7;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

button:hover:not(:disabled) { background: #ececec; }
button:disabled { opacity: 0.5; cursor: default; }

button.primary {
  background: #4caf50;
  border-color: #43a047;
  color: #fff;
  font-weight: 600;
  padding: 8px 22px;
}

button.primary:hover:not(:disabled) { background: #43a047; }

.hint { margin: 2px 0 12px; color: #0066cc; font-size: 12.5px; font-weight: 600; }

.status-area { margin-top: 18px; text-align: center; }

/* 상태 문구 겸 알림 배너. 두 줄 높이를 예약해 배너 등장/소멸 시 아래 버튼이 움직이지 않게 함 */
#statusText {
  margin: 0 0 8px;
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre-line;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.status-wait { color: #1565c0; }
.status-run { color: #2e7d32; }
.notice-success { color: #1b5e20; background: #e8f5e9; border-color: #a5d6a7; }
.notice-error { color: #b71c1c; background: #fdecea; border-color: #ef9a9a; }
.notice-warn { color: #7a4f01; background: #fff4e5; border-color: #ffcc80; }

.progress-track {
  height: 8px;
  background: #e3e6ea;
  border-radius: 4px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0;
  background: #4caf50;
  transition: width 0.15s;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 4px;
}

footer {
  margin-top: 16px;
  text-align: center;
  color: #99a;
  font-size: 11.5px;
}

footer a { color: inherit; }

/* 사용법 / FAQ 안내 섹션 */
.guide {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e3e6ea;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}

.guide h2 { font-size: 15px; margin: 14px 0 6px; color: #222; }
.guide ol { margin: 0; padding-left: 20px; }
.guide dl { margin: 0; }
.guide dt { font-weight: 600; margin-top: 8px; }
.guide dd { margin: 2px 0 0 0; color: #555; }
