.word-to-pdf-body {
    background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.12), transparent 32%),
                radial-gradient(circle at 80% 0%, rgba(34, 197, 94, 0.12), transparent 28%),
                #f4f6fb;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

.word-to-pdf-wrapper {
    padding-bottom: 64px;
}

.word-to-pdf-hero {
    padding: 72px 0 36px;
    color: #0f172a;
}

.word-to-pdf-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
}

.word-to-pdf-hero .lead {
    color: #475569;
    max-width: 720px;
}

.word-to-pdf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(120deg, #22c55e, #3b82f6);
    color: #f8fafc;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.24);
}

.word-to-pdf-hero-actions .btn {
    padding: 12px 18px;
    font-weight: 600;
}

.word-to-pdf-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.word-to-pdf-hero-actions .btn-outline-light {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #fff;
}

.word-to-pdf-hero-actions .btn-outline-light:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.word-to-pdf-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #475569;
    font-size: 13px;
}

.word-to-pdf-hero-highlights span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.word-to-pdf-hero-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.word-to-pdf-hero-list {
    color: #475569;
    padding-left: 0;
    list-style: none;
    margin: 0;
    display: grid;
    gap: 10px;
}

.word-to-pdf-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: #94a3b8;
}

.word-to-pdf-hero-list li {
    font-size: 14px;
    line-height: 1.4;
}

.word-to-pdf-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    height: 100%;
}

.word-to-pdf-tool {
    margin-top: 12px;
    margin-bottom: 40px;
}

.word-to-pdf-drop {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 18px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.word-to-pdf-drop:hover,
.word-to-pdf-drop.word-to-pdf-drop--active {
    border-color: #22c55e;
    background: #ecfdf3;
}

.word-to-pdf-drop-inner {
    text-align: center;
    color: #475569;
}

.word-to-pdf-drop-inner i {
    font-size: 32px;
    margin-bottom: 6px;
    color: #22c55e;
}

.word-to-pdf-file-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 12px;
    margin: 14px 0;
}

.word-to-pdf-status {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.word-to-pdf-status--success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.word-to-pdf-status--warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fed7aa;
}

.word-to-pdf-status--info {
    background: #e0f2fe;
    color: #1e3a8a;
    border-color: #bfdbfe;
}

.word-to-pdf-status--error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* --- UPDATED PREVIEW STYLES --- */
.word-to-pdf-preview {
    min-height: 400px;
    max-height: 600px;
    background: #e2e8f0; /* Darker bg to make page pop */
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 20px;
    overflow: auto; /* Enable scrollbars for the container */
    color: #0f172a;
    display: block; /* Ensure block layout */
    text-align: center; /* Center the paper */
}

/* The wrapper generated by docx-preview */
.word-to-pdf-preview .docx-wrapper {
    background: transparent !important;
    padding: 0 !important;
    display: inline-block !important; /* Allow centering */
    width: auto !important;
}

/* The actual paper page */
.word-to-pdf-preview .docx {
    background: #ffffff;
    color: #0f172a;
    padding: 40px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Drop shadow for paper effect */
    margin-bottom: 20px;
    width: auto !important;
    min-width: 600px; /* Force minimum width to prevent squashing */
}

/* Fix text colors inside the preview */
.word-to-pdf-preview .docx p,
.word-to-pdf-preview .docx span, 
.word-to-pdf-preview .docx h1,
.word-to-pdf-preview .docx h2,
.word-to-pdf-preview .docx h3,
.word-to-pdf-preview .docx h4 {
    color: inherit;
}

.word-to-pdf-preview .word-to-pdf-placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px;
    background: #ffffff;
    color: #64748b;
    display: inline-block;
}

/* --- END UPDATED PREVIEW STYLES --- */

.word-to-pdf-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 16px;
    color: #475569;
}

.word-to-pdf-tips ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.word-to-pdf-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.word-to-pdf-shortcuts span {
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
}

.word-to-pdf-pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.word-to-pdf-pill {
    background: #f8fafc;
    color: #475569;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #e2e8f0;
}

.word-to-pdf-library {
    padding: 18px 0 8px;
}

.word-to-pdf-library .word-to-pdf-card {
    background: #ffffff;
}

.word-to-pdf-history-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    height: 100%;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.word-to-pdf-history-card h6 {
    margin-bottom: 6px;
}

.word-to-pdf-history-meta {
    color: #475569;
    font-size: 12px;
    margin-bottom: 8px;
}

.word-to-pdf-history-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.word-to-pdf-faq {
    padding: 24px 0 12px;
}

.word-to-pdf-more {
    padding: 18px 0 32px;
}

.word-to-pdf-more .tool-chip {
    height: 100%;
}

.word-to-pdf-hero-card .btn-outline-primary {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.5);
}

.word-to-pdf-hero-card .btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.word-to-pdf-steps,
.word-to-pdf-benefits,
.word-to-pdf-usecases,
.word-to-pdf-optimization {
    padding: 18px 0;
}

.word-to-pdf-optimization .word-to-pdf-card h6 {
    font-size: 15px;
}

@media (max-width: 992px) {
    .word-to-pdf-hero {
        padding-top: 36px;
    }

    .word-to-pdf-file-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .word-to-pdf-hero-actions {
        flex-direction: column;
    }

    .word-to-pdf-hero-card {
        margin-top: 12px;
    }
    
    /* Ensure preview is scrollable on mobile */
    .word-to-pdf-preview .docx {
        min-width: auto !important; 
        width: 100% !important;
    }
}
