/* Gabung PDF — responsive UI */

#mergePdfApp, #mergePdfApp * { box-sizing: border-box; }

#mergePdfApp {
  --mp-ink: #172033;
  --mp-muted: #68758b;
  --mp-line: #e4e9f1;
  --mp-soft: #f6f8fc;
  --mp-blue: #315bea;
  --mp-blue-dark: #2449c7;
  --mp-green: #13845b;

  width: min(100% - 32px, 920px);
  margin: 32px auto 56px;
  color: var(--mp-ink);
}

#mergePdfApp [hidden] { display: none !important; }

#mergePdfApp button, #mergePdfApp input { font: inherit; }

#mergePdfApp button { -webkit-tap-highlight-color: transparent; }

.merge-hero { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }

.merge-hero-icon { display: grid; place-items: center; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 18px; color: var(--mp-blue); background: #edf2ff; }

.merge-hero-icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.merge-hero-copy { min-width: 0; }

.merge-eyebrow, .merge-step-label { display: block; color: var(--mp-blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }

.merge-hero h1 { margin: 3px 0 8px; color: var(--mp-ink); font-size: clamp(26px, 4vw, 36px); line-height: 1.16; letter-spacing: -.04em; font-weight: 800; }

.merge-hero p { max-width: 690px; margin: 0; color: var(--mp-muted); font-size: 15px; }

.merge-trust-row { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 13px; color: #526078; font-size: 12px; font-weight: 650; }

.merge-trust-row span { display: inline-flex; align-items: center; gap: 7px; }

.merge-trust-row i { width: 7px; height: 7px; border-radius: 50%; background: #16a36a; }

.merge-card { background: #fff; border: 1px solid var(--mp-line); border-radius: 22px; box-shadow: 0 12px 38px rgba(27, 44, 82, .055); }

.merge-workspace { padding: clamp(18px, 4vw, 32px); }

.merge-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 30px 18px; text-align: center; border: 1.5px dashed #b9c6dc; border-radius: 17px; background: linear-gradient(145deg, #fbfcff, #f7f9ff); cursor: pointer; outline: none; transition: border-color .18s, background .18s, transform .18s; }

.merge-dropzone:hover, .merge-dropzone:focus-visible, .merge-dropzone.is-dragging { border-color: var(--mp-blue); background: #f0f4ff; }

.merge-dropzone:focus-visible { box-shadow: 0 0 0 4px rgba(49, 91, 234, .14); }

.merge-upload-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 15px; color: var(--mp-blue); border-radius: 20px; background: #e9efff; }

.merge-upload-icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.merge-dropzone h2, .merge-section-heading h2, .merge-progress-panel h2, .merge-success-panel h2 { margin: 0; color: var(--mp-ink); font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.025em; }

.merge-dropzone > p { margin: 7px 0 19px; color: var(--mp-muted); font-size: 14px; }

.merge-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: 11px; font-size: 13px !important; line-height: 1.2; font-weight: 750 !important; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }

.merge-btn:active { transform: translateY(1px); }

.merge-btn:focus-visible { outline: 3px solid rgba(49,91,234,.22); outline-offset: 2px; }

.merge-btn:disabled { opacity: .55; cursor: not-allowed; }

.merge-btn-primary { color: #fff; background: var(--mp-blue); box-shadow: 0 5px 12px rgba(49,91,234,.18); }

.merge-btn-primary:hover { background: var(--mp-blue-dark); }

.merge-btn-light { color: #344158; background: #fff; border-color: #dce3ee; }

.merge-btn-light:hover { background: #f6f8fc; border-color: #bdc9dc; }

.merge-btn-success { color: #fff; background: var(--mp-green); box-shadow: 0 5px 12px rgba(19,132,91,.15); }

.merge-btn-success:hover { background: #0f704d; }

.merge-file-rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

.merge-file-rules span { padding: 5px 9px; border: 1px solid #e4e9f2; border-radius: 7px; color: #65728a; background: #fff; font-size: 11px; font-weight: 650; }

.merge-privacy-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; color: #718096; text-align: center; font-size: 12px; }

.merge-privacy-note svg { flex: 0 0 16px; width: 16px; height: 16px; stroke: #14815a; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.merge-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f1d39b; border-radius: 11px; color: #875314; background: #fff8e9; font-size: 13px; }

.merge-alert.is-error { color: #a12d37; background: #fff1f2; border-color: #f3c5ca; }

.merge-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }

.merge-section-heading h2 { margin-top: 4px; }

.merge-section-heading p { margin: 5px 0 0; color: var(--mp-muted); font-size: 13px; }

.merge-summary { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid #e6ebf4; border-radius: 13px; background: var(--mp-soft); }

.merge-summary-item { display: flex; flex-direction: column; gap: 1px; color: var(--mp-muted); font-size: 11px; }

.merge-summary-number { color: var(--mp-ink); font-size: 17px; font-weight: 800; line-height: 1.2; }

.merge-summary-divider { width: 1px; height: 30px; background: #dfe5ef; }

.merge-summary-tip { margin-left: auto; color: #738097; font-size: 11px; }

.merge-file-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }

.merge-file-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--mp-line); border-radius: 13px; background: #fff; }

.merge-pdf-icon { display: grid; place-items: center; width: 38px; height: 42px; border-radius: 9px; color: #d84953; background: #fff0f0; font-size: 10px; font-weight: 900; }

.merge-file-meta { min-width: 0; }

.merge-file-name { overflow: hidden; color: #253148; font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.merge-file-size { margin-top: 2px; color: #8791a3; font-size: 11px; }

.merge-file-actions { display: flex; align-items: center; gap: 5px; }

.merge-icon-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #e2e7ef; border-radius: 9px; color: #536178; background: #fff; cursor: pointer; font-size: 16px; }

.merge-icon-btn:hover { border-color: #b9c7e5; color: var(--mp-blue); background: #f5f7ff; }

.merge-icon-btn:disabled { opacity: .28; cursor: not-allowed; }

.merge-icon-btn.remove { color: #bf3944; }

.merge-footer-actions { display: flex; justify-content: space-between; gap: 10px; padding-top: 20px; margin-top: 18px; border-top: 1px solid #edf0f5; }

.merge-progress-panel, .merge-success-panel { padding: 36px 8px 24px; text-align: center; }

.merge-progress-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 17px; border-radius: 20px; color: var(--mp-blue); background: #edf2ff; }

.merge-progress-icon svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; animation: merge-spin 1.4s linear infinite; }

.merge-progress-panel p, .merge-success-panel p { margin: 8px 0 20px; color: var(--mp-muted); font-size: 13px; }

.merge-progress-track { overflow: hidden; width: min(100%, 480px); height: 8px; margin: 0 auto 8px; border-radius: 99px; background: #e8edf6; }

.merge-progress-track div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #315bea, #6d8bff); transition: width .2s ease; }

.merge-progress-percent { color: #526078; font-size: 12px; font-weight: 800; }

.merge-success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 17px; border-radius: 50%; color: #fff; background: #15976a; font-size: 30px; font-weight: 800; }

.merge-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }

.merge-article-card { margin-top: 24px; padding: clamp(20px, 4vw, 30px); }

.merge-article-heading { display: flex; align-items: flex-start; gap: 13px; padding-bottom: 19px; margin-bottom: 20px; border-bottom: 1px solid #edf0f5; }

.merge-article-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; color: var(--mp-blue); background: #edf2ff; font-size: 20px; }

.merge-article-heading h2 { margin: 4px 0 0; color: var(--mp-ink); font-size: clamp(20px, 3vw, 25px); line-height: 1.3; letter-spacing: -.025em; }

.merge-article-content { color: #48556b; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }

.merge-article-content > :first-child { margin-top: 0; }

.merge-article-content > :last-child { margin-bottom: 0; }

.merge-article-content h2, .merge-article-content h3, .merge-article-content h4 { margin: 1.5em 0 .55em; color: #26334a; line-height: 1.4; }

.merge-article-content p { margin: 0 0 1em; }

.merge-article-content ul, .merge-article-content ol { padding-left: 1.4em; margin: .5em 0 1em; }

.merge-article-content a { color: var(--mp-blue); text-decoration: underline; text-underline-offset: 3px; }

.merge-article-content img, .merge-article-content video, .merge-article-content iframe { max-width: 100%; height: auto; }

.merge-article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }

.merge-article-content th, .merge-article-content td { padding: 8px 10px; border: 1px solid var(--mp-line); text-align: left; }

.merge-bottom-note { margin: 18px 0 0; color: #8a94a6; text-align: center; font-size: 11px; }

@keyframes merge-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {

  #mergePdfApp { width: min(100% - 22px, 920px); margin: 20px auto 36px; }

  .merge-hero { gap: 13px; margin-bottom: 18px; }

  .merge-hero-icon { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; }

  .merge-hero-icon svg { width: 24px; height: 24px; }

  .merge-hero h1 { font-size: 25px; }

  .merge-hero p { font-size: 13px; }

  .merge-trust-row { gap: 6px 12px; font-size: 11px; }

  .merge-card { border-radius: 17px; }

  .merge-workspace { padding: 14px; }

  .merge-dropzone { min-height: 265px; padding: 24px 13px; }

  .merge-dropzone h2 { font-size: 18px; }

  .merge-dropzone > p { max-width: 260px; font-size: 12px; }

  .merge-file-rules { gap: 5px; }

  .merge-file-rules span { font-size: 10px; }

  .merge-privacy-note { align-items: flex-start; font-size: 11px; }

  .merge-section-heading { align-items: flex-start; }

  .merge-section-heading h2 { font-size: 18px; }

  .merge-section-heading p { max-width: 235px; font-size: 12px; }

  .merge-section-heading > .merge-btn { min-height: 38px; padding: 9px 10px; font-size: 11px !important; }

  .merge-summary { gap: 11px; padding: 12px; }

  .merge-summary-tip { display: none; }

  .merge-file-item { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 9px; }

  .merge-pdf-icon { width: 34px; height: 38px; }

  .merge-file-name { font-size: 12px; }

  .merge-file-actions { gap: 3px; }

  .merge-icon-btn { width: 29px; height: 32px; border-radius: 8px; }

  .merge-footer-actions { gap: 8px; }

  .merge-footer-actions .merge-btn { flex: 1; padding: 11px 8px; font-size: 11px !important; }

  .merge-article-card { margin-top: 18px; padding: 19px; }

  .merge-article-content { font-size: 13px; }

}

@media (prefers-reduced-motion: reduce) { #mergePdfApp *, #mergePdfApp *::before, #mergePdfApp *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
