/* Novel Reader Styles */
.novel-reader-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--dark-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transition: width 0.3s ease;
    z-index: 1001;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

/* Header */
.reader-header {
    position: sticky;
    top: 0;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0.75rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.header-left .back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.header-left .back-btn:hover {
    background: var(--gray-200);
    color: var(--primary-color);
}

.back-text {
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-center {
    flex: 1;
    text-align: center;
}

.chapter-info .chapter-number {
    font-size: 0.9rem;
    color: var(--light-color);
    font-weight: 500;
}

.chapter-info .chapter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 2px;
}

.header-right {
    display: flex;
    gap: 0.5rem;
}

.reader-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reader-btn:hover {
    background: var(--gray-200);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Main Content */
.reader-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Chapter Navigation */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-200);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    flex: 1;
    max-width: 300px;
}

.nav-btn:not(.disabled):hover {
    border-color: var(--primary-color);
    background: var(--gray-300);
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.1);
}

.nav-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.next-btn {
    flex-direction: row-reverse;
    text-align: right;
}

.nav-info .nav-label {
    font-size: 0.85rem;
    color: var(--light-color);
    margin-bottom: 2px;
}

.nav-info .nav-title {
    font-weight: 500;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chapter Content */
.chapter-content {
    background: var(--gray-200);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chapter-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.chapter-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--light-color);
}

.chapter-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.chapter-meta i {
    color: var(--primary-color);
}

/* Chapter Text */
.chapter-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    max-width: none;
}

.chapter-text h1,
.chapter-text h2,
.chapter-text h3,
.chapter-text h4 {
    margin: 2rem 0 1rem 0;
    color: var(--text-color);
}

.chapter-text h1 { font-size: 1.75rem; }
.chapter-text h2 { font-size: 1.5rem; }
.chapter-text h3 { font-size: 1.25rem; }
.chapter-text h4 { font-size: 1.1rem; }

.chapter-text p {
    margin: 1.5rem 0;
    text-align: justify;
}

.chapter-text strong {
    font-weight: 600;
    color: var(--text-color);
}

.chapter-text em {
    font-style: italic;
}

/* End of Chapter */
.chapter-end {
    background: var(--gray-200);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.end-content h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-weight: 600;
}

.end-content p {
    color: var(--light-color);
    margin: 0 0 2rem 0;
}

.end-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--gray-200);
    box-shadow: none;
    z-index: 1002;
    transition: right 0.3s ease, box-shadow 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.active {
    right: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-200);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--light-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-sidebar:hover {
    background: var(--gray-300);
    color: var(--text-color);
}

.sidebar-content {
    padding: 1.5rem;
}

/* Settings Sidebar */
.setting-group {
    margin-bottom: 2rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
}

.font-size-controls,
.line-height-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gray-300);
    padding: 0.75rem;
    border-radius: 8px;
}

.setting-btn {
    background: var(--gray-200);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.setting-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#font-size-display,
#line-height-display {
    font-weight: 600;
    color: var(--text-color);
    min-width: 50px;
    text-align: center;
}

.theme-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-200);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
    font-size: 0.9rem;
}

.theme-btn:hover,
.theme-btn.active {
    border-color: var(--primary-color);
    background: rgba(229, 9, 20, 0.1);
    color: var(--primary-color);
}

.theme-btn i {
    font-size: 1.2rem;
}

/* Chapters Sidebar */
.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-300);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

.chapter-item:hover {
    background: var(--gray-400);
    border-color: var(--primary-color);
}

.chapter-item.active {
    background: rgba(229, 9, 20, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chapter-item .chapter-number {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 60px;
}

.chapter-details {
    flex: 1;
}

.chapter-details .chapter-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--light-color);
}

.chapter-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Comments Section */
.comments-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.comments-header h3 {
    margin: 0;
    color: var(--text-color);
}

.comments-toggle {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-toggle:hover {
    background: var(--primary-dark);
}

.comments-content {
    background: var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-placeholder {
    text-align: center;
    color: var(--light-color);
    padding: 2rem;
}

.comments-placeholder i {
    font-size: 3rem;
    color: var(--light-color);
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Theme Variations */
/* Light Theme - Blue and White */
.novel-reader-body.light-theme {
    background: #f0f4f8;
    color: #1e293b;
}

.light-theme .reader-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #e2e8f0;
}

.light-theme .chapter-content {
    background: #ffffff;
    color: #1e293b;
    border-color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.light-theme .chapter-header {
    border-bottom-color: #e2e8f0;
}

.light-theme .content-title,
.light-theme .chapter-text,
.light-theme .chapter-text h1,
.light-theme .chapter-text h2,
.light-theme .chapter-text h3,
.light-theme .chapter-text h4,
.light-theme .chapter-text strong {
    color: #1e293b;
}

.light-theme .chapter-meta,
.light-theme .nav-info .nav-label {
    color: #64748b;
}

.light-theme .chapter-meta i {
    color: #3b82f6;
}

.light-theme .chapter-info .chapter-number {
    color: #64748b;
}

.light-theme .chapter-info .chapter-title {
    color: #1e293b;
}

.light-theme .back-btn {
    color: #1e293b;
}

.light-theme .back-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.light-theme .nav-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

.light-theme .nav-btn:not(.disabled):hover {
    background: #f8fafc;
    border-color: #3b82f6;
}

.light-theme .nav-info .nav-title {
    color: #1e293b;
}

.light-theme .chapter-end {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.light-theme .end-content h3 {
    color: #1e293b;
}

.light-theme .end-content p {
    color: #64748b;
}

.light-theme .btn-primary {
    background: #3b82f6;
}

.light-theme .btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.light-theme .btn-outline {
    background: transparent;
    color: #1e293b;
    border-color: #e2e8f0;
}

.light-theme .btn-outline:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

.light-theme .sidebar {
    background: #ffffff;
    border-left-color: #e2e8f0;
}

.light-theme .sidebar.active {
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.light-theme .sidebar-header {
    background: #ffffff;
    border-bottom-color: #e2e8f0;
}

.light-theme .sidebar-header h3 {
    color: #1e293b;
}

.light-theme .close-sidebar {
    color: #64748b;
}

.light-theme .close-sidebar:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.light-theme .setting-group label {
    color: #1e293b;
}

.light-theme .font-size-controls,
.light-theme .line-height-controls {
    background: #f8fafc;
}

.light-theme .setting-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

.light-theme .setting-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.light-theme #font-size-display,
.light-theme #line-height-display {
    color: #1e293b;
}

.light-theme .theme-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}

.light-theme .theme-btn:hover,
.light-theme .theme-btn.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.light-theme .chapter-item {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

.light-theme .chapter-item:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.light-theme .chapter-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.light-theme .chapter-item .chapter-number {
    color: #3b82f6;
}

.light-theme .chapter-details .chapter-title {
    color: #1e293b;
}

.light-theme .chapter-stats {
    color: #64748b;
}

.light-theme .comments-header h3 {
    color: #1e293b;
}

.light-theme .comments-toggle {
    background: #3b82f6;
}

.light-theme .comments-toggle:hover {
    background: #2563eb;
}

.light-theme .comments-content {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.light-theme .comments-placeholder {
    color: #64748b;
}

.light-theme .comments-placeholder i {
    color: #cbd5e1;
}

.light-theme .reader-btn {
    border-color: #e2e8f0;
    color: #1e293b;
}

.light-theme .reader-btn:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Sepia Theme */
.sepia-theme {
    background: #f7f3e9;
    color: #5c4b37;
}

.sepia-theme .reader-header {
    background: rgba(247, 243, 233, 0.95);
    border-bottom-color: rgba(92, 75, 55, 0.2);
}

.sepia-theme .chapter-content {
    background: #f5f1e8;
    color: #5c4b37;
    border-color: rgba(92, 75, 55, 0.2);
    box-shadow: 0 2px 12px rgba(92, 75, 55, 0.1);
}

.sepia-theme .chapter-header {
    border-bottom-color: rgba(92, 75, 55, 0.2);
}

.sepia-theme .content-title,
.sepia-theme .chapter-text,
.sepia-theme .chapter-text h1,
.sepia-theme .chapter-text h2,
.sepia-theme .chapter-text h3,
.sepia-theme .chapter-text h4,
.sepia-theme .chapter-text strong {
    color: #5c4b37;
}

.sepia-theme .chapter-meta,
.sepia-theme .nav-info .nav-label {
    color: #8b7355;
}

.sepia-theme .chapter-meta i {
    color: #a0826d;
}

.sepia-theme .chapter-info .chapter-number {
    color: #8b7355;
}

.sepia-theme .chapter-info .chapter-title {
    color: #5c4b37;
}

.sepia-theme .back-btn {
    color: #5c4b37;
}

.sepia-theme .back-btn:hover {
    background: #f0ede3;
    color: #a0826d;
}

.sepia-theme .nav-btn {
    background: #f5f1e8;
    border-color: rgba(92, 75, 55, 0.2);
    color: #5c4b37;
}

.sepia-theme .nav-btn:not(.disabled):hover {
    background: #f0ede3;
    border-color: #a0826d;
}

.sepia-theme .nav-info .nav-title {
    color: #5c4b37;
}

.sepia-theme .chapter-end {
    background: #f0ede3;
    border-color: rgba(92, 75, 55, 0.2);
}

.sepia-theme .end-content h3 {
    color: #5c4b37;
}

.sepia-theme .end-content p {
    color: #8b7355;
}

.sepia-theme .btn-primary {
    background: #a0826d;
}

.sepia-theme .btn-primary:hover {
    background: #8b7355;
    box-shadow: 0 4px 12px rgba(160, 130, 109, 0.3);
}

.sepia-theme .btn-outline {
    background: transparent;
    color: #5c4b37;
    border-color: rgba(92, 75, 55, 0.2);
}

.sepia-theme .btn-outline:hover {
    background: rgba(92, 75, 55, 0.05);
    border-color: #a0826d;
    color: #a0826d;
}

.sepia-theme .sidebar {
    background: #f5f1e8;
    border-left-color: rgba(92, 75, 55, 0.2);
}

.sepia-theme .sidebar.active {
    box-shadow: -4px 0 20px rgba(92, 75, 55, 0.2);
}

.sepia-theme .sidebar-header {
    background: #f5f1e8;
    border-bottom-color: rgba(92, 75, 55, 0.2);
}

.sepia-theme .sidebar-header h3 {
    color: #5c4b37;
}

.sepia-theme .close-sidebar {
    color: #8b7355;
}

.sepia-theme .close-sidebar:hover {
    background: #f0ede3;
    color: #5c4b37;
}

.sepia-theme .setting-group label {
    color: #5c4b37;
}

.sepia-theme .font-size-controls,
.sepia-theme .line-height-controls {
    background: #f0ede3;
}

.sepia-theme .setting-btn {
    background: #f5f1e8;
    border-color: rgba(92, 75, 55, 0.2);
    color: #5c4b37;
}

.sepia-theme .setting-btn:hover {
    border-color: #a0826d;
    color: #a0826d;
}

.sepia-theme #font-size-display,
.sepia-theme #line-height-display {
    color: #5c4b37;
}

.sepia-theme .theme-btn {
    background: #f5f1e8;
    border-color: rgba(92, 75, 55, 0.2);
    color: #5c4b37;
}

.sepia-theme .theme-btn:hover,
.sepia-theme .theme-btn.active {
    border-color: #a0826d;
    background: rgba(160, 130, 109, 0.1);
    color: #a0826d;
}

.sepia-theme .chapter-item {
    background: #f0ede3;
    border-color: rgba(92, 75, 55, 0.2);
    color: #5c4b37;
}

.sepia-theme .chapter-item:hover {
    background: #ebe7dd;
    border-color: #a0826d;
}

.sepia-theme .chapter-item.active {
    background: rgba(160, 130, 109, 0.1);
    border-color: #a0826d;
    color: #a0826d;
}

.sepia-theme .chapter-item .chapter-number {
    color: #a0826d;
}

.sepia-theme .chapter-details .chapter-title {
    color: #5c4b37;
}

.sepia-theme .chapter-stats {
    color: #8b7355;
}

.sepia-theme .comments-header h3 {
    color: #5c4b37;
}

.sepia-theme .comments-toggle {
    background: #a0826d;
}

.sepia-theme .comments-toggle:hover {
    background: #8b7355;
}

.sepia-theme .comments-content {
    background: #f5f1e8;
    border-color: rgba(92, 75, 55, 0.2);
    box-shadow: 0 2px 12px rgba(92, 75, 55, 0.1);
}

.sepia-theme .comments-placeholder {
    color: #8b7355;
}

.sepia-theme .comments-placeholder i {
    color: #c8b8a8;
}

.sepia-theme .reader-btn {
    border-color: rgba(92, 75, 55, 0.2);
    color: #5c4b37;
}

.sepia-theme .reader-btn:hover {
    background: #f0ede3;
    border-color: #a0826d;
    color: #a0826d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reader-header {
        padding: 0.5rem 0;
    }

    .header-content {
        padding: 0 0.75rem;
    }

    .back-text {
        max-width: 120px;
    }

    .chapter-info .chapter-number {
        font-size: 0.8rem;
    }

    .chapter-info .chapter-title {
        font-size: 1rem;
    }

    .reader-btn {
        width: 36px;
        height: 36px;
        padding: 0.375rem;
    }

    .reader-main {
        padding: 1rem 0.75rem;
    }

    .chapter-content {
        padding: 1.5rem 1rem;
        margin: 0 0 1rem 0;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .chapter-text {
        font-size: 15px;
    }

    .chapter-text h1 { font-size: 1.5rem; }
    .chapter-text h2 { font-size: 1.3rem; }
    .chapter-text h3 { font-size: 1.15rem; }
    .chapter-text h4 { font-size: 1rem; }

    .chapter-nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-btn {
        max-width: none;
        padding: 0.875rem;
    }

    .sidebar {
        width: 90vw;
        right: -90vw;
    }

    .sidebar-header {
        padding: 1rem;
    }

    .sidebar-content {
        padding: 1rem;
    }

    .chapter-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .chapter-end {
        padding: 1.5rem 1rem;
    }

    .end-actions {
        flex-direction: column;
        width: 100%;
    }

    .end-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .comments-section {
        padding: 0 0.75rem;
    }

    .comments-content {
        padding: 1.5rem 1rem;
    }

    .comments-toggle {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
.reader-btn:focus,
.nav-btn:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .reader-header,
    .chapter-nav,
    .chapter-end,
    .comments-section,
    .sidebar,
    .sidebar-overlay {
        display: none !important;
    }
    
    .chapter-content {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}
/* Enable text selection on mobile for novel chapters */
@media (max-width: 768px) {
    .chapter-text,
    .chapter-text p,
    .chapter-text *,
    .chapter-content,
    .novel-content {
        user-select: text !important;
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
    }
}
