/* ==========================================================================
   Alpha-Ecostar Ventures — shared shell for the free PDF utility tools
   (pdf-to-word.html · word-to-pdf.html · jpg-to-pdf.html · pdf-unlocker.html)

   Every colour comes from a local token defined below. Brand: #03487f (primary navy),
   #f59e0b (accent amber), Inter (body) + Poppins (headings).
   ========================================================================== */

:root {
  --pt-surface: #ffffff;
  --pt-surface-2: #f8fafc;
  --pt-surface-3: #eef2f7;
  --pt-border: #e2e8f0;
  --pt-border-strong: #cbd5e1;
  --pt-text: #1e293b;
  --pt-ink: #0f172a;
  --pt-muted: #475569;
  --pt-brand: #03487f;
  --pt-brand-dark: #02365f;
  --pt-accent: #f59e0b;
  --pt-success: #10b981;
  --pt-error: #ef4444;
  --pt-radius: 14px;
  --pt-shadow: 0 6px 20px rgba(15, 23, 42, .07);
  --pt-shadow-lg: 0 14px 34px rgba(15, 23, 42, .12);
}

/* ---------------------------------------------------------------- layout */
.pt-section {
  padding: 2rem 1rem 3.5rem;
  background: var(--pt-surface-2);
}

.pt-container {
  max-width: 900px;
  margin: 0 auto;
}

.pt-wide {
  max-width: 1000px;
}

.pt-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.pt-badge {
  display: inline-block;
  background: var(--pt-accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}

.pt-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--pt-text);
  margin: 0 0 .4rem;
}

.pt-subtitle {
  color: var(--pt-muted);
  margin: 0;
  font-size: 1.08rem;
  font-weight: 500;
}

.pt-intro {
  max-width: 640px;
  margin: 1.25rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--pt-border);
  color: var(--pt-muted);
  font-size: .95rem;
  line-height: 1.75;
}

/* ----------------------------------------------------------------- cards */
.pt-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow);
  padding: 1.5rem;
  color: var(--pt-text);
}

.pt-card + .pt-card {
  margin-top: 1.25rem;
}

.pt-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pt-text);
  margin: 0 0 .35rem;
}

.pt-card-note {
  color: var(--pt-muted);
  font-size: .9rem;
  margin: 0 0 1rem;
}

/* -------------------------------------------------------------- dropzone */
.pt-dropzone {
  display: block;
  width: 100%;
  border: 2px dashed var(--pt-border-strong);
  border-radius: var(--pt-radius);
  background: var(--pt-surface);
  padding: 2.25rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.pt-dropzone:hover {
  border-color: var(--pt-brand);
  background: rgba(3, 72, 127, .03);
}

.pt-dropzone:focus-visible {
  outline: 3px solid var(--pt-accent);
  outline-offset: 3px;
}

.pt-dropzone.is-dragover {
  border-color: var(--pt-brand);
  background: rgba(3, 72, 127, .07);
  transform: translateY(-2px);
}

.pt-dropzone-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: .75rem;
}

.pt-dropzone-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pt-text);
  margin: 0 0 .3rem;
}

.pt-dropzone-hint {
  color: var(--pt-muted);
  font-size: .9rem;
  margin: 0;
}

.pt-dropzone-link {
  color: var(--pt-brand);
  font-weight: 600;
  text-decoration: underline;
}

/* ------------------------------------------------------- options / fields */
.pt-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.pt-field label,
.pt-field-label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--pt-text);
  margin-bottom: .35rem;
}

.pt-field select,
.pt-field input[type="text"],
.pt-field input[type="password"],
.pt-field input[type="number"],
.pt-field textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--pt-border);
  border-radius: 10px;
  background: var(--pt-surface);
  color: var(--pt-text);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
}

.pt-field select:focus,
.pt-field input:focus,
.pt-field textarea:focus {
  outline: none;
  border-color: var(--pt-brand);
  box-shadow: 0 0 0 3px rgba(3, 72, 127, .12);
}

.pt-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.pt-checkline {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .92rem;
  color: var(--pt-muted);
  margin-top: .85rem;
}

.pt-checkline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: .15rem 0 0;
  accent-color: var(--pt-brand);
  flex: 0 0 auto;
}

.pt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.35rem;
}

.pt-actions .btn {
  min-height: 48px;
}

.pt-actions--center {
  justify-content: center;
}

/* -------------------------------------------------------------- progress */
.pt-progress {
  margin-top: 1.35rem;
}

.pt-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: .9rem;
  color: var(--pt-muted);
  margin-bottom: .45rem;
}

.pt-progress-label {
  font-weight: 500;
}

.pt-progress-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--pt-text);
}

.pt-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--pt-surface-3);
  overflow: hidden;
}

.pt-progress-bar {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pt-brand) 0%, #2f8fd6 100%);
  transition: width .25s ease;
}

/* ---------------------------------------------------------------- status */
.pt-status {
  margin-top: 1.15rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--pt-border-strong);
  background: var(--pt-surface-3);
  color: var(--pt-text);
  font-size: .93rem;
  line-height: 1.6;
}

.pt-status--info { border-left-color: var(--pt-brand); }
.pt-status--working { border-left-color: var(--pt-accent); }
.pt-status--error { border-left-color: var(--pt-error); background: rgba(239, 68, 68, .08); }
.pt-status--success { border-left-color: var(--pt-success); background: rgba(16, 185, 129, .1); }

.pt-status a { font-weight: 600; }

/* ------------------------------------------------------------ file lists */
.pt-file-list,
.pt-results {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.pt-file-item,
.pt-result-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem 0;
  border-top: 1px solid var(--pt-border);
}

.pt-file-item:first-child,
.pt-result-item:first-child { border-top: none; }

.pt-file-icon {
  font-size: 1.4rem;
  line-height: 1.2;
  flex: 0 0 auto;
}

.pt-file-body {
  flex: 1 1 auto;
  min-width: 0;
}

.pt-file-name {
  font-weight: 600;
  color: var(--pt-text);
  font-size: .95rem;
  word-break: break-word;
  margin: 0;
}

.pt-file-meta {
  color: var(--pt-muted);
  font-size: .85rem;
  margin: .2rem 0 0;
}

.pt-file-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .6rem;
}

.pt-pill {
  display: inline-block;
  background: var(--pt-surface-3);
  border: 1px solid var(--pt-border);
  color: var(--pt-muted);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  padding: .18rem .65rem;
  margin: .35rem .35rem 0 0;
}

.pt-mini-btn {
  border: 1px solid var(--pt-border);
  background: var(--pt-surface);
  color: var(--pt-text);
  border-radius: 9px;
  padding: .45rem .85rem;
  font-size: .85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.pt-mini-btn:hover {
  border-color: var(--pt-brand);
  color: var(--pt-brand);
  background: rgba(3, 72, 127, .05);
}

.pt-mini-btn--danger:hover {
  border-color: var(--pt-error);
  color: var(--pt-error);
  background: rgba(239, 68, 68, .07);
}

.pt-mini-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- preview */
.pt-preview {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--pt-surface-3);
  border: 1px solid var(--pt-border);
  border-radius: 12px;
  max-height: 440px;
  overflow: auto;
}

.pt-preview pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Inter', ui-monospace, 'Courier New', monospace;
  font-size: .88rem;
  line-height: 1.65;
  color: var(--pt-text);
  margin: 0;
}

.pt-canvas-page {
  display: block;
  margin: 0 auto 1rem;
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--pt-border);
  border-radius: 6px;
  box-shadow: var(--pt-shadow);
}

.pt-canvas-page:last-child { margin-bottom: 0; }

/* ---------------------------------------------------- image gallery grid */
.pt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.pt-thumb {
  position: relative;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: 12px;
  padding: .5rem;
  cursor: grab;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pt-thumb:hover {
  border-color: var(--pt-brand);
  box-shadow: var(--pt-shadow);
}

.pt-thumb.is-dragging {
  opacity: .55;
  transform: scale(.97);
  cursor: grabbing;
}

.pt-thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--pt-surface-3);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pt-thumb-index {
  position: absolute;
  top: .35rem;
  left: .35rem;
  z-index: 2;
  background: var(--pt-brand);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .35rem;
}

.pt-thumb-name {
  font-size: .78rem;
  color: var(--pt-muted);
  margin: .5rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pt-thumb-actions {
  display: flex;
  gap: .3rem;
  margin-top: .45rem;
  position: relative;
  z-index: 2;
}

.pt-thumb-btn {
  flex: 1 1 0;
  border: 1px solid var(--pt-border);
  background: var(--pt-surface);
  color: var(--pt-text);
  border-radius: 8px;
  font-size: .8rem;
  line-height: 1;
  padding: .4rem 0;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}

.pt-thumb-btn:hover:not(:disabled) {
  border-color: var(--pt-brand);
  color: var(--pt-brand);
}

.pt-thumb-btn:disabled { opacity: .4; cursor: not-allowed; }

.pt-thumb-btn--danger:hover:not(:disabled) {
  border-color: var(--pt-error);
  color: var(--pt-error);
}

/* ------------------------------------------------------ password / notes */
.pt-password-box {
  margin-top: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--pt-border);
  border-left: 4px solid var(--pt-accent);
  border-radius: 12px;
  background: var(--pt-surface-3);
}

.pt-password-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: .6rem;
}

.pt-password-row input {
  flex: 1 1 240px;
  padding: .7rem .85rem;
  border: 1px solid var(--pt-border);
  border-radius: 10px;
  background: var(--pt-surface);
  color: var(--pt-text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.pt-password-row input:focus {
  outline: none;
  border-color: var(--pt-brand);
  box-shadow: 0 0 0 3px rgba(3, 72, 127, .12);
}

.pt-password-row .btn {
  flex: 0 0 auto;
}

.pt-password-hint {
  color: var(--pt-muted);
  font-size: .88rem;
  margin: .7rem 0 0;
}

.pt-note {
  margin-top: 1.15rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: var(--pt-surface-3);
  border: 1px solid var(--pt-border);
  color: var(--pt-muted);
  font-size: .88rem;
  line-height: 1.7;
}

.pt-note strong { color: var(--pt-text); }

.pt-note--warn {
  border-color: rgba(245, 158, 11, .45);
  background: rgba(245, 158, 11, .1);
}

/* ------------------------------------------------------------ SEO blocks */
.pt-seo {
  padding: 2.5rem 1rem;
  background: var(--pt-surface);
}

.pt-seo--alt { background: var(--pt-surface-2); }

.pt-seo h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--pt-text);
  text-align: center;
  margin: 0 0 .5rem;
}

.pt-seo-lead {
  text-align: center;
  color: var(--pt-muted);
  max-width: 620px;
  margin: 0 auto 1.9rem;
}

.pt-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pt-step;
}

.pt-step {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: var(--pt-shadow);
}

.pt-step::before {
  counter-increment: pt-step;
  content: counter(pt-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--pt-brand);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .7rem;
}

.pt-step h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--pt-text);
  margin: 0 0 .45rem;
}

.pt-step p {
  color: var(--pt-muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

.pt-faq {
  max-width: 760px;
  margin: 0 auto;
}

.pt-faq details {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  box-shadow: var(--pt-shadow);
}

.pt-faq summary {
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  color: var(--pt-text);
}

.pt-faq summary:hover,
.pt-faq details[open] summary { color: var(--pt-brand); }

.pt-faq details p {
  margin: .75rem 0 0;
  color: var(--pt-muted);
  font-size: .93rem;
  line-height: 1.7;
}

.pt-faq details p a { color: var(--pt-brand); font-weight: 600; }

.pt-related {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pt-related li { margin: 0; }

.pt-related a {
  display: inline-block;
  padding: .55rem 1.1rem;
  border: 1px solid var(--pt-border);
  border-radius: 999px;
  background: var(--pt-surface);
  color: var(--pt-text);
  font-size: .9rem;
  font-weight: 600;
}

.pt-related a:hover {
  border-color: var(--pt-brand);
  color: var(--pt-brand);
  text-decoration: none;
}

.pt-cta-note {
  text-align: center;
  color: var(--pt-muted);
  font-size: .93rem;
  margin: 1.75rem 0 0;
}

.pt-cta-note a { color: var(--pt-brand); font-weight: 600; }

/* --------------------------------------------------------- responsiveness */
@media (max-width: 768px) {
  .pt-hero h1 { font-size: 1.65rem; }
  .pt-card { padding: 1.15rem; }
  .pt-dropzone { padding: 1.75rem 1rem; }
  .pt-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .pt-password-row .btn { width: 100%; }
}

@media (max-width: 480px) {
  .pt-actions .btn { width: 100%; }
  .pt-options { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- print */
@media print {
  .pt-section,
  .pt-actions,
  .pt-progress,
  .pt-status,
  .pt-dropzone,
  .pt-note,
  .pt-related { display: none !important; }
  .pt-card { box-shadow: none; border-color: #cbd5e1; }
}
