.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.chapter-progress-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background-color: var(--input-bg);
}

.chapter-progress-item {
    background-color: var(--card-bg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.chapter-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.progress-bar-bg {
    height: 6px;
    background-color: var(--input-bg);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.live-preview {
    margin-top: var(--spacing-md); /* Reduced from XL */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    flex: 1; /* Grow to fill space */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    min-height: 300px;
}

/* Paper mode style */
.live-preview.has-content {
    background-color: #FFFFFF;
    color: #000000;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.live-preview.has-content h3 {
    color: #333333;
    border-bottom-color: #EEEEEE;
}

.live-preview.has-content .preview-content {
    color: #1a1a1a;
}

.live-preview h3 {
    padding: var(--spacing-md);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}

.preview-content {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    font-family: var(--font-serif);
    font-size: 1.1rem;
}

.preview-content h2 {
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

.preview-content p {
    margin-bottom: var(--spacing-md);
}