/* Additional custom styles for PDF Translator */

[x-cloak] {
    display: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#source-pdf-canvas,
#translated-pdf-canvas {
    max-width: 100%;
    height: auto;
}

/* Smooth scrollbar for tabs */
.overflow-x-auto::-webkit-scrollbar {
    height: 4px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.text-preview-html {
    color: #1f2937;
    line-height: 1.6;
}

.text-preview-html h1,
.text-preview-html h2,
.text-preview-html h3,
.text-preview-html h4,
.text-preview-html h5,
.text-preview-html h6 {
    color: #111827;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.text-preview-html h1 {
    font-size: 1.875rem;
}

.text-preview-html h2 {
    font-size: 1.5rem;
}

.text-preview-html h3 {
    font-size: 1.25rem;
}

.text-preview-html p,
.text-preview-html ul,
.text-preview-html ol,
.text-preview-html table {
    margin-bottom: 1rem;
}

.text-preview-html ul,
.text-preview-html ol {
    padding-left: 1.5rem;
}

.text-preview-html ul {
    list-style: disc;
}

.text-preview-html ol {
    list-style: decimal;
}

.text-preview-html table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.text-preview-html th,
.text-preview-html td {
    border: 1px solid #d1d5db;
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.text-preview-html th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.text-preview-text {
    line-height: 1.6;
    word-break: break-word;
}
