/* Reader styles */
.reader-body {
    background: #f5f0e6;
    margin: 0;
}

.reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #1a5f4a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.reader-back {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
}

.reader-title {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    margin: 0 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reader-controls button {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 0.25rem;
    font-family: inherit;
}

.reader-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.reader-content {
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    font-size: 1.15rem;
    line-height: 2;
    min-height: 60vh;
}

.reader-content h2 {
    color: #1a5f4a;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.reader-pdf {
    width: 100%;
    height: 85vh;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.reader-progress-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0d5c4;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reader-progress-panel input[type=range] { flex: 1; }

.reader-body.dark-theme { background: #1a1a1a; }
.reader-body.dark-theme .reader-content { background: #2d2d2d; color: #e0e0e0; }
.reader-body.dark-theme .reader-progress-panel { background: #2d2d2d; color: #e0e0e0; border-color: #444; }

@media (max-width: 768px) {
    .reader-content { padding: 1.5rem; font-size: 1rem; }
    .reader-toolbar { flex-wrap: wrap; gap: 0.5rem; }
}
