/* PDF to Word Tool Styles */

.pdf-preview-pane {
  display: flex;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-card);
}

.preview-col {
  flex: 1;
  min-width: 0;
}

.preview-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* PDF thumbnail canvas */
.preview-col-pdf canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
}

/* Extracted text preview */
.text-preview-area {
  max-height: 500px;
  overflow-y: auto;
  padding: 12px;
  font-family: var(--font);
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Disclaimer box */
.disclaimer-box {
  background: rgba(234, 179, 8, .1);
  border: 1px solid rgba(234, 179, 8, .3);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .88rem;
}

.disclaimer-box a {
  color: var(--primary);
  text-decoration: underline;
}

/* Mobile: stack preview panes vertically */
@media (max-width: 768px) {
  .pdf-preview-pane {
    flex-direction: column;
  }

  .preview-col-pdf canvas {
    max-height: 350px;
  }

  .text-preview-area {
    max-height: 300px;
  }
}
