/* FileRenamer — seluruh aturan dibatasi pada .fr-app agar tidak mengganggu alat lain */
.fr-app {
  --fr-ink: #172033;
  --fr-muted: #64748b;
  --fr-line: #e2e8f0;
  --fr-primary: #2563eb;
  --fr-primary-dark: #1d4ed8;
  --fr-soft: #f8fafc;
  --fr-radius: 18px;
  color: var(--fr-ink);
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  box-sizing: border-box;
}
.fr-app *, .fr-app *::before, .fr-app *::after { box-sizing: border-box; }
.fr-app h1 { line-height: 1.2; letter-spacing: -.035em; }
.fr-app h2, .fr-app h4, .fr-app h5 { line-height: 1.35; }
.fr-app button, .fr-app input, .fr-app textarea, .fr-app select { font: inherit; }
.fr-app button { cursor: pointer; }
.fr-app button:focus-visible, .fr-app input:focus-visible,
.fr-app textarea:focus-visible, .fr-app select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}
.fr-app textarea, .fr-app input[type="text"], .fr-app select {
  min-width: 0;
  max-width: 100%;
}
.fr-app #dataInput {
  width: 100%; min-height: 210px; resize: vertical;
  border: 1px solid #d7dfeb; border-radius: 13px;
  background: #f8fafc; padding: 13px 14px; line-height: 1.6;
  transition: border-color .2s, box-shadow .2s;
}
.fr-app #dataInput:focus { border-color: var(--fr-primary); box-shadow: 0 0 0 4px rgba(37,99,235,.09); outline: 0; }
.fr-app #dropArea {
  border-color: #b8c7dc; background: linear-gradient(145deg,#f8fbff,#f5f8fc);
  transition: background .2s, border-color .2s, transform .2s;
}
.fr-app #dropArea:hover, .fr-app #dropArea.dragover {
  border-color: var(--fr-primary); background: #eff6ff;
}
.fr-app #dropArea.dragover { transform: scale(1.005); }
.fr-app #tabelMapping { width: 100%; border-collapse: separate; border-spacing: 0; }
.fr-app #tabelMapping th { background: #f1f5f9; color: #334155; white-space: nowrap; }
.fr-app #tabelMapping td, .fr-app #tabelMapping th { padding-block: 11px; border-bottom: 1px solid #edf1f6; vertical-align: middle; }
.fr-app #tabelMapping tbody tr:hover { background: #f8fbff; }
.fr-app .renamer-thumb {
  display: block; width: 44px !important; height: 44px !important;
  object-fit: cover; border-radius: 10px !important;
  border: 1px solid #e2e8f0; background: #f1f5f9;
}
.fr-app .renamer-autocomplete-wrapper { position: relative; width: 100%; }
.fr-app .renamer-autocomplete-wrapper input {
  display: block; width: 100%; min-height: 39px; padding: 8px 10px;
  border: 1px solid #d5deea; border-radius: 10px; background: #fff;
  color: #1e293b; font-size: 13px;
}
.fr-app .renamer-autocomplete-wrapper input:focus { border-color: var(--fr-primary); outline: 0; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.fr-app .renamer-autocomplete-list {
  display: none; position: absolute; top: calc(100% + 5px); left: 0; right: 0;
  max-height: 230px; overflow: auto; z-index: 30;
  background: #fff; border: 1px solid #dbe3ef; border-radius: 12px;
  box-shadow: 0 14px 35px rgba(15,23,42,.14); padding: 5px;
}
.fr-app .renamer-autocomplete-item { padding: 9px 10px !important; border-radius: 7px; font-size: 13px; color: #334155; cursor: pointer; }
.fr-app .renamer-autocomplete-item:hover { background: #eff6ff; color: #1d4ed8; }
.fr-app .fr-status-success { color: #047857; font-weight: 700; white-space: pre-line; }
.fr-app .fr-status-error { color: #dc2626; font-weight: 700; white-space: pre-line; }
.fr-app #btnProses:disabled { opacity: .58; cursor: not-allowed; }
.fr-app #btnTambahGambar, .fr-app #btnProses { min-height: 42px; }
.fr-app .fr-guide-card { height: 100%; }
.fr-app img { max-width: 100%; }
@media (max-width: 640px) {
  .fr-app { padding-inline: 12px; padding-top: 20px; }
  .fr-app #dataInput { min-height: 170px; }
  .fr-app #tabelMapping { min-width: 520px; }
  .fr-app .fr-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .fr-app #btnTambahGambar, .fr-app #btnProses { min-height: 38px; padding-inline: 9px; font-size: 11px; }
  .fr-app .fr-guide-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fr-app *, .fr-app *::before, .fr-app *::after { transition-duration: .01ms !important; }
}
