/* Shared PDF tools UI — matches Smart Link Toolkit look */
.pdt-hero {
  padding: 48px 0 20px;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}
.pdt-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.pdt-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #10172f;
  letter-spacing: -0.02em;
}
.pdt-hero p {
  margin: 0 auto;
  max-width: 700px;
  color: #5c6478;
  font-size: 17px;
  line-height: 1.7;
}
.pdt-wrap { padding: 24px 0 64px; background: #f7f8fc; }
.pdt-card {
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(17, 24, 47, 0.06);
  box-sizing: border-box;
}
.pdt-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.pdt-privacy strong { font-weight: 800; }
.pdt-drop {
  border: 2px dashed #cfd5e6;
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  background: #fafbff;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.pdt-drop.is-dragover {
  border-color: #E53935;
  background: #fff5f5;
}
.pdt-drop h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #10172f;
  font-weight: 800;
}
.pdt-drop p { margin: 0 0 16px; color: #5c6478; font-size: 14px; }
.pdt-drop input[type="file"] { display: none; }
.pdt-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  color: #fff !important;
  line-height: 1.2;
  transition: opacity .2s, transform .2s;
}
.pdt-btn:hover { opacity: .92; transform: translateY(-1px); }
.pdt-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.pdt-btn-primary { background: linear-gradient(135deg, #ef5350, #c62828); box-shadow: 0 8px 18px rgba(229,57,53,.22); }
.pdt-btn-green { background: #2e7d32; }
.pdt-btn-blue { background: #1565c0; }
.pdt-btn-gray { background: #455a64; }
.pdt-btn-dark { background: #10172f; }
.pdt-btn-outline {
  background: #fff;
  color: #10172f !important;
  border: 1.5px solid #cfd5e6;
}
.pdt-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.pdt-section { margin-top: 20px; }
.pdt-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #10172f;
}
.pdt-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pdt-info-item {
  background: #f7f8fc;
  border: 1px solid #e8ebf5;
  border-radius: 10px;
  padding: 10px 12px;
}
.pdt-info-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #5c6478;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.pdt-info-item b {
  display: block;
  font-size: 14px;
  color: #10172f;
  word-break: break-word;
}
.pdt-preview-wrap {
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  background: #fafbff;
  overflow: hidden;
}
.pdt-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f8;
  background: #fff;
}
.pdt-preview-stage {
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  background: #eceff5;
}
.pdt-preview-stage canvas {
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 24px rgba(17,24,47,.12);
  background: #fff;
}
.pdt-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  border-top: 1px solid #eef1f8;
  background: #fff;
}
.pdt-thumb {
  flex: 0 0 auto;
  width: 72px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: #f7f8fc;
  padding: 4px;
  text-align: center;
}
.pdt-thumb.is-active { border-color: #E53935; }
.pdt-thumb canvas { width: 100%; height: auto; display: block; }
.pdt-thumb span { display: block; font-size: 11px; font-weight: 700; color: #5c6478; margin-top: 4px; }
.pdt-field { margin-bottom: 12px; }
.pdt-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #384057;
  margin-bottom: 6px;
}
.pdt-field select,
.pdt-field input[type="text"],
.pdt-field input[type="number"],
.pdt-field textarea {
  width: 100%;
  border: 1.5px solid #d8deea;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #18213a;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}
.pdt-field textarea { min-height: 80px; resize: vertical; }
.pdt-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pdt-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
}
.pdt-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #18213a;
  cursor: pointer;
}
.pdt-progress {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f8fc;
  border: 1px solid #e8ebf5;
}
.pdt-progress.is-visible { display: block; }
.pdt-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #e8ebf5;
  overflow: hidden;
}
.pdt-progress-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #ef5350, #c62828);
  transition: width .2s;
}
.pdt-progress-text {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #384057;
}
.pdt-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #10172f;
  min-height: 22px;
}
.pdt-status b { color: #E53935; }
.pdt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pdt-table th,
.pdt-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f8;
  vertical-align: top;
}
.pdt-table th {
  width: 34%;
  color: #5c6478;
  font-weight: 700;
  background: #fafbff;
}
.pdt-table td { color: #10172f; word-break: break-word; }
.pdt-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.pdt-badge.ok { background: #e8f5e9; color: #2e7d32; }
.pdt-badge.bad { background: #ffebee; color: #c62828; }
.pdt-badge.warn { background: #fff8e1; color: #f57f17; }
.pdt-file-list { list-style: none; margin: 0; padding: 0; }
.pdt-file-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #e8ebf5;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fafbff;
}
.pdt-file-list .meta { font-size: 13px; color: #384057; font-weight: 600; }
#img-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 991px) {
  #img-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  #img-gallery { grid-template-columns: 1fr; }
}
.pdt-recent {
  margin-top: 12px;
  display: none;
}
.pdt-recent.is-visible { display: block; }
.pdt-recent button {
  margin: 4px 6px 0 0;
}
.pdt-result-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f7f8fc;
  border: 1px solid #e8ebf5;
  font-size: 14px;
  line-height: 1.6;
  color: #18213a;
  white-space: pre-wrap;
}
.pdt-toc { list-style: none; margin: 0; padding: 0; }
.pdt-toc ul { list-style: none; margin: 4px 0 4px 18px; padding: 0; }
.pdt-toc li { margin: 4px 0; }
.pdt-toc a {
  color: #1565c0;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.pdt-toc a:hover { text-decoration: underline; }
.pdt-hidden { display: none !important; }
.pdt-warn {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #f57f17;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 991px) {
  .pdt-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdt-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .pdt-card { padding: 16px; }
  .pdt-info-grid,
  .pdt-options-grid { grid-template-columns: 1fr; }
  .pdt-btn { width: 100%; }
}
