/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
body {
  margin: 0;
  min-height: 100vh;
  background: #f4f1ec;
  color: #1d1d1f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.panel {
  background: #fff;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
}

h1,
h2 {
  margin: 0 0 18px;
  line-height: 1.15;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 20px;
}

.export-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input[type="url"] {
  min-width: 0;
  height: 44px;
  border: 1px solid #c8c2b9;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
}

input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #1f6f78;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.download-pdf-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  background: #1f6f78;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pdf-export { margin: 18px 0; }

.export-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e2da;
  margin: -8px 0 18px;
}

.export-progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: #1f6f78;
  animation: export-progress 1.25s ease-in-out infinite;
}

.export-progress.is-complete span { width: 100%; animation: none; }
.export-progress.is-failed span { width: 100%; animation: none; background: #8a1f11; }

@keyframes export-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(275%); }
}

@media (prefers-reduced-motion: reduce) {
  .export-progress span { animation: none; width: 65%; }
}

.export-preview {
  display: block;
  width: 100%;
  height: min(70vh, 820px);
  min-height: 520px;
  border: 1px solid #dedbd4;
  border-radius: 8px;
  background: #fff;
}

.export-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 16px;
}

.export-page-link {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #1f6f78;
  font-weight: 700;
}

.copy-link-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #c8c2b9;
  border-radius: 6px;
  background: #fff;
  color: #1f6f78;
  cursor: pointer;
}

.copy-link-button:hover {
  background: #f4f1ec;
}

.copy-link-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.alert {
  grid-column: 1 / -1;
  color: #8a1f11;
}

.export-list {
  display: grid;
  gap: 8px;
}

.export-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px;
  border: 1px solid #ebe7df;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.export-row span,
.source {
  overflow-wrap: anywhere;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ebe7df;
  border-bottom: 1px solid #ebe7df;
  padding: 14px 0;
  margin: 18px 0;
}

.page-footer-nav {
  margin-top: 18px;
}

.page-footer-nav a {
  color: #1f6f78;
  font-weight: 700;
}

.is-hidden {
  display: none;
}

@media (max-width: 640px) {
  .export-form,
  .export-row {
    grid-template-columns: 1fr;
  }
}
