/* Hide Divi theme vertical lines created by gutter system */
#main-content .container:before {
    display: none !important;
}

/* Hide vertical lines for all gutter types and responsive breakpoints */
@media (min-width: 981px) {
    .et_pb_gutter.et_pb_gutters1.et_right_sidebar #main-content .container:before,
    .et_pb_gutter.et_pb_gutters2.et_right_sidebar #main-content .container:before,
    .et_pb_gutter.et_pb_gutters3.et_right_sidebar #main-content .container:before,
    .et_pb_gutter.et_pb_gutters4.et_right_sidebar #main-content .container:before,
    .et_pb_gutter.et_pb_gutters1.et_left_sidebar #main-content .container:before,
    .et_pb_gutter.et_pb_gutters2.et_left_sidebar #main-content .container:before,
    .et_pb_gutter.et_pb_gutters3.et_left_sidebar #main-content .container:before,
    .et_pb_gutter.et_pb_gutters4.et_left_sidebar #main-content .container:before {
        display: none !important;
    }
}

/* Hide vertical lines for all responsive breakpoints */
@media (max-width: 980px) {
    #main-content .container:before {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #main-content .container:before {
        display: none !important;
    }
}

@media (max-width: 480px) {
    #main-content .container:before {
        display: none !important;
    }
}

/* Reset and Base Styles */
.text-library-header,
.text-library-content,
.annotations-sidebar,
.book-content-area {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure main content containers don't have height constraints */
#main-content,
#content-area,
#left-area,
article,
.et_pb_section,
.et_pb_row,
.et_pb_column {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Remove any scrollbars from all containers */
.book-reading-layout,
.book-content-section,
.book-content,
.page-text,
.page-content,
.bottom-pagination {
    overflow: visible !important;
    max-height: none !important;
}

/* Contact-us Style Header */
.et_pb_section_0 {
    background: url('https://www.ambedkarmission.org/wp-content/uploads/2025/10/Dr-Ambedkar-Digital-libraray.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 60vh;
    background-color: #f8f9fa;
}

.et_pb_section_0::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.et_pb_section_0 > * {
    position: relative;
    z-index: 2;
}

.et_pb_row_0 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

/* Breadcrumb Navigation in Header */
.et_pb_section_0 .breadcrumb-container {
    background: transparent;
    padding: 20px 0;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    text-align: center;
}

.et_pb_section_0 .breadcrumb-nav {
    font-size: 14px;
}

.et_pb_section_0 .breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.et_pb_section_0 .breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.et_pb_section_0 .breadcrumb-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.et_pb_section_0 .breadcrumb-link:hover {
    color: #007cba;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.et_pb_section_0 .breadcrumb-current {
    color: white;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.et_pb_section_0 .breadcrumb-separator {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 5px;
    font-weight: 500;
}

.et_pb_row_1 {
    text-align: center;
}

.et_pb_text_inner h1 {
    color: white;
    font-size: 3em;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Header */
@media (max-width: 1200px) {
    .et_pb_section_0 {
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    .et_pb_section_0 {
        min-height: 40vh;
    }
}

@media (max-width: 480px) {
    .et_pb_section_0 {
        min-height: 35vh;
    }
}

@media (max-width: 320px) {
    .et_pb_section_0 {
        min-height: 30vh;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.book-detail-content {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.book-detail-content .book-cover {
    flex: 0 0 200px;
}

.book-detail-content .book-cover img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.book-detail-content .book-info {
    flex: 1;
}

.book-detail-content .book-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.8em;
}

.book-author {
    color: #666;
    font-size: 1.1em;
    margin: 0 0 20px 0;
}

.book-description {
    color: #555;
    line-height: 1.6;
    margin: 0 0 25px 0;
}

.book-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 25px 0;
}

.book-meta span {
    background: #f0f0f0;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.book-actions {
    margin-top: 20px;
}

.btn-read {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-read:hover {
    background: #5a6fd8;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .book-detail-content {
        flex-direction: column;
        padding: 20px;
    }
    
    .book-detail-content .book-cover {
        flex: none;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Main Content Container */
#main-content {
    background: #f8f9fa;
    min-height: 100vh;
}

#main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content Area Layout */
#content-area {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#left-area {
    width: 100%;
    background: #ffffff;
}

/* Article Styling */
article {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

/* Page Title Styling */
.entry-title.main_title {
    display: none; /* Hide default page title since we have custom header */
}

/* Main Content Area */
.text-library-content {
    display: flex;
    gap: 30px;
    margin-top: 0;
    padding: 0 20px 40px 20px;
    min-height: auto;
    height: auto;
    overflow: visible;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .text-library-content {
        flex-direction: column;
        gap: 20px;
        overflow: visible;
        height: auto;
    }
    
    .annotations-sidebar {
        order: 2;
    }
    
    .book-content-area {
        order: 1;
    }
    
    /* Adjust book reading layout for tablets */
    .book-reading-layout {
        gap: 10px; /* Further reduced gap */
        padding: 10px; /* Further reduced padding */
        max-width: 100%;
    }
    
    .book-cover-section {
        flex: 0 0 300px; /* Keep original size on tablets */
    }
    
    .book-content {
        font-size: 18px; /* Slightly smaller on tablets */
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments - Full page reading */
    .book-reading-layout {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        max-width: 100%;
        background: #ffffff;
        border-radius: 0;
        box-shadow: none;
    }
    
    .book-header {
        padding: 20px 20px;
    }
    
    .book-header .book-title {
        font-size: 1.8em;
    }
    
    .book-header .book-author {
        font-size: 1em;
    }
    
    .book-content-section {
        padding: 20px 20px;
        max-width: 100%;
    }
    
    .page-text {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .book-cover-section {
        flex: none;
        width: 100%;
        max-width: 280px; /* Optimal size for mobile */
        margin: 0 auto 15px auto; /* Reduced spacing for more text space */
        padding: 15px; /* Reduced padding */
        text-align: center;
    }
    
    .book-content-section {
        padding: 0; /* Remove all padding for maximum space utilization */
        width: 100%;
        margin: 0; /* Remove any margins */
    }
    
    .book-content {
        font-size: 18px; /* Optimal mobile reading size */
        line-height: 1.7; /* Comfortable line spacing */
        color: #2c3e50;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        margin: 0;
        padding: 0;
    }
    
    .page-text {
        padding: 15px 20px; /* Professional padding like reference image - contained look */
        font-size: 18px; /* Consistent with content */
        line-height: 1.7; /* Comfortable reading */
        background: #ffffff;
        border-radius: 6px;
        margin: 0 auto; /* Center the content */
        max-width: 100%; /* Use available width */
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        color: #2c3e50;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for professional look */
        border: none;
    }
    
    .book-info .book-title {
        font-size: 24px; /* Prominent heading like reference image */
        margin-bottom: 12px;
        font-weight: 600;
        color: #2c3e50;
        line-height: 1.3;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .book-info .book-author {
        font-size: 16px; /* Clear secondary text */
        color: #6c757d;
        font-weight: 400;
        margin-bottom: 0;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    /* Ensure proper text block width for readability */
    .book-content-section,
    .page-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Extra small mobile devices - Maintain clean design */
@media (max-width: 480px) {
    .book-reading-layout {
        padding: 0;
        margin: 0;
        gap: 0;
    }
    
    .book-header {
        padding: 15px 15px;
    }
    
    .book-header .book-title {
        font-size: 1.5em;
    }
    
    .book-header .book-author {
        font-size: 0.9em;
    }
    
    .book-content-section {
        padding: 15px 15px;
        max-width: 100%;
    }
    
    .page-text {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* Book Reading Layout - Full Page Reading */
.book-reading-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-width: 100%;
    margin: 0;
    min-height: auto;
    height: auto;
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

/* Book Tools Interface */
.book-tools-interface {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin: 0;
}

.book-tools-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Enhanced Language Translation */
.book-translate-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.language-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: #333;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:hover {
    border-color: #007cba;
}

.language-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.translation-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    font-size: 14px;
}

.translation-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-weight: 500;
}

.reset-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: #5a6268;
}

.reset-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Translation Notice */
.translation-notice {
    margin: 20px 0;
}

.translation-notice div {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

/* Translation Error */
.translation-error {
    margin: 20px 0;
}

.translation-error div {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    color: #721c24;
    line-height: 1.5;
}
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.translate-button {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.translate-button:hover {
    background: #218838;
    transform: translateY(-1px);
}

.translate-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.reset-button {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reset-button:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Animation for loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Search Section */
.book-search-section {
    flex: 1;
    max-width: 400px;
}

.book-search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 4px;
    transition: all 0.3s ease;
}

.book-search-input-group:focus-within {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.book-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 16px;
    font-size: 14px;
    background: transparent;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.book-search-input::placeholder {
    color: #999;
}

.book-search-button {
    background: #007cba;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-search-button:hover {
    background: #005a87;
    transform: scale(1.05);
}

.book-clear-search {
    background: #dc3545;
    border: none;
    border-radius: 16px;
    padding: 4px 8px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.book-clear-search:hover {
    background: #c82333;
    transform: scale(1.05);
}

.book-search-results {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.book-search-results-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.book-search-results-count {
    background: #007cba;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.book-search-results-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-search-result-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.book-search-result-item:hover {
    border-left-color: #007cba;
    background: #e3f2fd;
    transform: translateX(3px);
}

.book-search-result-page {
    font-weight: 600;
    color: #007cba;
    margin-bottom: 6px;
    font-size: 13px;
}

.book-search-result-excerpt {
    color: #555;
    line-height: 1.5;
    font-size: 13px;
}

.book-search-result-excerpt mark {
    background: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 500;
}

/* Book Header */
.book-header {
    background: #f8f9fa;
    padding: 30px 40px;
    border-bottom: 2px solid #e0e0e0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.book-header .book-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.2;
    letter-spacing: -1px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.book-header .book-author {
    font-size: 1.2em;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Remove background patterns for clean look */

.book-cover-section {
    flex: 0 0 300px; /* Back to original size */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 6px;
    padding: 10px; /* Further reduced from 15px to 10px */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    height: auto;
    min-height: auto;
    position: sticky;
    top: 20px;
    border: 1px solid #e8e8e8;
    overflow: visible;
}

.book-cover-container {
    width: 100%;
    max-width: 280px;
    margin-bottom: 15px; /* Reduced from 25px to 15px */
}

.book-cover-image {
    width: 100%;
    height: auto;
    border-radius: 4px; /* Back to original */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Back to original */
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
}

.book-cover-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-cover-placeholder {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.placeholder-text {
    font-size: 16px;
    font-weight: 500;
}

.book-info {
    text-align: center;
    width: 100%;
}

.book-info .book-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.3px;
}

.book-info .book-author {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.book-content-section {
    flex: 1;
    background: #ffffff;
    border-radius: 0;
    padding: 40px 60px;
    box-shadow: none;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    position: relative;
    overflow: visible;
    height: auto;
    min-height: auto;
    max-height: none;
    max-width: 1000px;
    margin: 0 auto;
}

/* Remove background patterns for clean look */

.content-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.content-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.content-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #6c757d;
    margin: 8px 0 0 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-style: italic;
}

/* Alternative header styles for different contexts */
.content-header.book-chapter {
    border-bottom-color: #007cba;
}

.content-header.book-chapter .content-title {
    color: #007cba;
}

.content-header.book-section {
    border-bottom-color: #28a745;
}

.content-header.book-section .content-title {
    color: #28a745;
}

.content-header.book-annotation {
    border-bottom-color: #ffc107;
}

.content-header.book-annotation .content-title {
    color: #ffc107;
}

.nav-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-button:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-button:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Top pagination styles removed */

.page-content {
    margin: 0; /* Remove any margins */
    padding: 0; /* Remove any padding */
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.book-content {
    line-height: 1.9; /* Increased line height for better readability */
    font-size: 20px; /* Increased from 18px to 20px for better readability */
    color: #2c3e50;
    overflow: visible;
    height: auto;
    max-height: none;
}

.page-text {
    background: #ffffff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    font-size: 18px;
    color: #2c3e50;
    overflow: visible;
    height: auto;
    min-height: auto;
    max-height: none;
    text-align: justify;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Netflix-Style Category Sections */
.netflix-category-section {
    margin-bottom: 30px;
}

.netflix-category-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 15px 0;
    padding: 8px 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Wrapper for books row with scroll indicators */
.netflix-books-row-wrapper {
    position: relative;
    padding: 0;
    overflow: visible; /* Allow tooltips to show */
    margin: 0;
}

.netflix-books-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden; /* Keep hidden for horizontal scroll */
    padding: 60px 0 10px 0; /* Extra top padding for tooltips only */
    padding-right: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    align-items: flex-start; /* Align items to top */
    /* Show thin scrollbar */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* Firefox */
    -ms-overflow-style: -ms-autohiding-scrollbar; /* IE and Edge */
}

/* Custom scrollbar for Chrome, Safari, Opera */
.netflix-books-row::-webkit-scrollbar {
    height: 6px;
}

.netflix-books-row::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.netflix-books-row::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.netflix-books-row::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Fade effect on right edge to indicate more content */
.netflix-books-row-wrapper::after {
    content: '';
    position: absolute;
    top: 60px; /* Match the top padding of the row for tooltips */
    right: 0;
    bottom: 10px;
    height: 160px; /* Match book cover height */
    width: 60px;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Hide fade when scrolled to end */
.netflix-books-row-wrapper.scrolled-to-end::after {
    opacity: 0;
}

/* Scroll indicator arrow */
.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-indicator:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.scroll-indicator-right {
    right: 10px;
}

.scroll-indicator-left {
    left: 10px;
}

/* Show scroll indicator when content is scrollable */
.netflix-books-row-wrapper.has-scroll .scroll-indicator-right {
    opacity: 1;
    pointer-events: auto;
}

/* Hide right indicator when scrolled to end */
.netflix-books-row-wrapper.scrolled-to-end .scroll-indicator-right {
    opacity: 0;
    pointer-events: none;
}

.netflix-book-item {
    flex: 0 0 120px;
    cursor: pointer;
    width: 120px;
    max-width: 120px;
    overflow: visible; /* Changed to visible to allow tooltip to show */
    position: relative;
    z-index: 1;
}

.netflix-book-item:hover {
    z-index: 1001; /* Higher z-index on hover to ensure tooltip appears above other items */
    /* No transform, scale, or any visual changes - only tooltip appears */
}

.netflix-book-cover {
    width: 120px;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
    position: relative;
}

.netflix-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.netflix-book-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #6c757d;
    background: #e9ecef;
}

.netflix-book-title {
    font-size: 12px;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 8px;
    text-align: center;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: visible; /* Changed to visible to allow tooltip */
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    max-width: 120px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Hidden by default - only shows in tooltip on hover */
    z-index: 1;
}

/* Explore Button Styles */
.netflix-book-explore {
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netflix-book-explore:hover {
    transform: scale(1.05);
}

/* Subtle pulse animation to draw attention */
@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(102, 126, 234, 0.1);
    }
}

.netflix-explore-content {
    width: 120px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    animation: subtle-pulse 3s ease-in-out infinite;
}

.netflix-book-explore:hover .netflix-explore-content {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(102, 126, 234, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    animation: none; /* Stop pulse on hover */
    transform: scale(1.02);
}

.netflix-explore-icon {
    font-size: 32px;
    color: white;
    margin-bottom: 8px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.netflix-book-explore:hover .netflix-explore-icon {
    transform: translateX(5px);
}

.netflix-explore-text {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.netflix-explore-text-small {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    margin-top: 2px;
}

/* Tooltip for complete book title on hover */
.netflix-book-item:hover .netflix-book-title {
    display: block; /* Show tooltip on hover */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002; /* Higher z-index to ensure it appears above everything */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 11px;
    line-height: 1.4;
    max-width: 200px;
    min-width: 120px;
    word-wrap: break-word;
    text-align: center;
    pointer-events: none; /* Prevent tooltip from interfering with hover */
    opacity: 1;
    visibility: visible;
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Arrow pointing down from tooltip */
.netflix-book-item:hover .netflix-book-title::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.95);
    z-index: 1003;
}

/* Bottom Pagination */
.bottom-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.page-selector-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-selector-bottom label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

#page-select-bottom {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#page-select-bottom:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

#page-select-bottom:hover {
    border-color: #007cba;
}

#page-info-bottom {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    padding: 0 10px;
}

/* Remove background patterns for clean look */

.page-text p {
    margin-bottom: 16px;
    text-align: left;
    position: relative;
}

.page-text p:first-child {
    font-size: 1.05em;
    font-weight: 500;
    color: #2c3e50;
}

.page-text mark {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Responsive Design for Book Reading Layout */
@media (max-width: 1024px) {
    .book-reading-layout {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        overflow: visible;
        max-height: none;
    }
    
    .book-cover-section {
        flex: none;
        position: static;
        max-width: 400px;
        margin: 0 auto;
        overflow: visible;
        max-height: none;
    }
    
    .book-content-section {
        overflow: visible;
        height: auto;
        max-height: none;
    }
    
    .content-header {
        gap: 15px;
    }
    
    .netflix-category-title {
        font-size: 18px;
        padding: 6px 12px;
    }
    
    .netflix-book-item {
        flex: 0 0 100px;
        width: 100px;
        max-width: 100px;
    }
    
    .netflix-book-cover {
        width: 100px;
        height: 140px;
    }
    
    .netflix-book-title {
        font-size: 11px;
        max-width: 100px;
    }
    
    .netflix-book-explore {
        flex: 0 0 100px;
        width: 100px;
        max-width: 100px;
    }
    
    .netflix-explore-content {
        width: 100px;
        height: 140px;
    }
    
    .netflix-explore-icon {
        font-size: 28px;
    }
    
    .netflix-explore-text {
        font-size: 13px;
    }
    
    .netflix-explore-text-small {
        font-size: 10px;
    }
    
    /* Adjust tooltip for tablet */
    .netflix-book-item:hover .netflix-book-title {
        max-width: 180px;
        font-size: 10px;
        top: -35px;
    }
}

@media (max-width: 768px) {
    .book-reading-layout {
        padding: 15px;
        overflow: visible;
        max-height: none;
    }
    
    .book-cover-section {
        padding: 20px;
        overflow: visible;
        max-height: none;
    }
    
    .book-content-section {
        padding: 20px;
        overflow: visible;
        height: auto;
        max-height: none;
    }
    
    .book-info .book-title {
        font-size: 20px;
    }
    
    .book-info .book-author {
        font-size: 14px;
    }
    
    .page-text {
        padding: 20px;
        overflow: visible;
        height: auto;
        max-height: none;
    }
    
    .book-content {
        font-size: 14px;
        overflow: visible;
        height: auto;
        max-height: none;
    }
    
    .netflix-category-title {
        font-size: 16px;
        padding: 5px 10px;
    }
    
    .netflix-book-item {
        flex: 0 0 90px;
        width: 90px;
        max-width: 90px;
    }
    
    .netflix-book-cover {
        width: 90px;
        height: 120px;
    }
    
    .netflix-book-title {
        font-size: 10px;
        max-width: 90px;
    }
    
    .netflix-book-explore {
        flex: 0 0 90px;
        width: 90px;
        max-width: 90px;
    }
    
    .netflix-explore-content {
        width: 90px;
        height: 120px;
    }
    
    .netflix-explore-icon {
        font-size: 24px;
    }
    
    .netflix-explore-text {
        font-size: 12px;
    }
    
    .netflix-explore-text-small {
        font-size: 9px;
    }
    
    /* Adjust tooltip for mobile */
    .netflix-book-item:hover .netflix-book-title {
        max-width: 160px;
        font-size: 9px;
        top: -30px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .book-reading-layout {
        padding: 10px;
        overflow: visible;
        max-height: none;
    }
    
    .book-cover-section {
        padding: 15px;
        overflow: visible;
        max-height: none;
    }
    
    .book-content-section {
        padding: 15px;
        overflow: visible;
        height: auto;
        max-height: none;
    }
    
    .book-info .book-title {
        font-size: 18px;
    }
    
    .page-text {
        padding: 15px;
        overflow: visible;
        height: auto;
        max-height: none;
    }
    
    .book-content {
        overflow: visible;
        height: auto;
        max-height: none;
    }
    
    .nav-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    #page-info {
        font-size: 14px;
    }
    
    .netflix-category-title {
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .netflix-book-item {
        flex: 0 0 80px;
        width: 80px;
        max-width: 80px;
    }
    
    .netflix-book-cover {
        width: 80px;
        height: 100px;
    }
    
    .netflix-book-title {
        font-size: 9px;
        max-width: 80px;
    }
    
    .netflix-book-explore {
        flex: 0 0 80px;
        width: 80px;
        max-width: 80px;
    }
    
    .netflix-explore-content {
        width: 80px;
        height: 100px;
    }
    
    .netflix-explore-icon {
        font-size: 20px;
    }
    
    .netflix-explore-text {
        font-size: 11px;
    }
    
    .netflix-explore-text-small {
        font-size: 8px;
    }
    
    /* Adjust tooltip for extra small mobile */
    .netflix-book-item:hover .netflix-book-title {
        max-width: 140px;
        font-size: 8px;
        top: -25px;
        padding: 5px 8px;
    }
}

.library-nav-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 20px;
    align-items: center;
}

.library-nav-links a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(108, 117, 125, 0.1);
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.library-nav-links a:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
}

.book-title-section {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    margin: 0 auto;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.book-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007cba 0%, #0056b3 100%);
    border-radius: 0 0 4px 4px;
}

.book-title {
    font-size: 3em;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.book-author {
    font-size: 1.3em;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    font-style: normal;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.library-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-tabs {
    display: flex;
    gap: 5px;
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: #f8f9fa;
    color: #007cba;
}

.nav-tab.active {
    background: #007cba;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.navigation-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.section-dropdown {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-dropdown:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.para-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.para-input-group label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.para-input-group input {
    width: 80px;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.para-input-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Main Content Layout */
.text-library-content {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Annotations Sidebar */
.annotations-sidebar {
    flex: 0 0 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    max-height: 80vh;
    overflow-y: auto;
}

.annotations-sidebar h2 {
    font-size: 1.4em;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

.annotation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.annotation-item {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #555;
    border-left: 3px solid transparent;
}

.annotation-item:hover {
    background: #e3f2fd;
    border-left-color: #007cba;
    color: #007cba;
    transform: translateX(5px);
}

/* Book Content Area */
.book-content-area {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 40px;
    max-height: 70vh;
    overflow-y: auto;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

.page-text {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

.page-text p {
    margin-bottom: 20px;
}

.page-text mark {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.nav-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-button:hover:not(:disabled) {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.nav-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#page-info {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Search Results */
.search-results-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 25px;
}

.search-results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.search-results-header h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.search-results-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.search-result-item:hover {
    background: #e3f2fd;
    border-left-color: #007cba;
    transform: translateX(5px);
}

.search-result-page {
    font-weight: 600;
    color: #007cba;
    margin-bottom: 8px;
    font-size: 14px;
}

.search-result-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.search-result-excerpt mark {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Book Selection */
.book-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Search Interface */
.search-interface {
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-container {
    padding: 25px;
}

.search-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
}

.search-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-tab:hover {
    background: #e9ecef;
    color: #007cba;
}

.search-tab.active {
    background: #007cba;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.search-input-container {
    margin-bottom: 20px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 5px;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 16px;
    background: transparent;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: #007cba;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background: #005a87;
    transform: scale(1.05);
}

.clear-search {
    background: #dc3545;
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.clear-search:hover {
    background: #c82333;
    transform: scale(1.05);
}

.search-results {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.search-results-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
}

.search-results-count {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.search-results-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result-item:hover {
    border-left-color: #007cba;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-result-book-title {
    font-weight: 600;
    color: #007cba;
    margin-bottom: 8px;
    font-size: 16px;
}

.search-result-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.search-result-excerpt mark {
    background: #fff3cd;
    color: #856404;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.no-search-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-search-results h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.no-search-results p {
    margin: 0;
    font-size: 14px;
}

/* Additional search result styling */
.search-result-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.search-result-page {
    background: #007cba;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.search-result-author {
    font-style: italic;
}

/* Filter Container */
.filter-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.MuiFormControl-root {
    min-width: 150px;
    position: relative;
}

.MuiFormLabel-root {
    position: absolute;
    top: -8px;
    left: 14px;
    background: white;
    padding: 0 4px;
    font-size: 12px;
    color: #1976d2;
    font-weight: 500;
    z-index: 1;
}

.MuiInputBase-root {
    position: relative;
    border: 1px solid #c4c4c4;
    border-radius: 4px;
    background: white;
    min-height: 40px;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.MuiInputBase-root:hover {
    border-color: #1976d2;
}

.MuiSelect-select {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
}

.MuiSelect-nativeInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.MuiSvgIcon-root {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #666;
    pointer-events: none;
}

.MuiOutlinedInput-notchedOutline {
    display: none;
}

.css-14lo706 {
    display: none;
}

/* Books Section */
section[aria-labelledby="Books"] {
    margin-top: 20px;
}

section[aria-labelledby="Books"] h2 {
    margin-bottom: 24px;
    padding: 8px 16px;
    background: #4f46e5;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: 16px;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.sm\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.lg\:grid-cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gap-x-4 {
    column-gap: 16px;
}

.gap-y-4 {
    row-gap: 16px;
}

/* Book Card Styling */
.group {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.group:hover {
    text-decoration: none;
    color: inherit;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.h-full {
    height: 100%;
}

.overflow-hidden {
    overflow: hidden;
}

.bg-white {
    background-color: white;
}

.rounded-lg {
    border-radius: 8px;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.group-hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.relative {
    position: relative;
}

.w-full {
    width: 100%;
}

.aspect-\[3\/5\] {
    aspect-ratio: 3/5;
}

.bg-slate-200 {
    background-color: #e2e8f0;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.object-cover {
    object-fit: cover;
}

.flex-grow {
    flex-grow: 1;
}

.p-3 {
    padding: 12px;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-800 {
    color: #1f2937;
}

.text-sm {
    font-size: 14px;
    line-height: 20px;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.group-hover\:whitespace-normal:hover {
    white-space: normal;
}

.no-underline {
    text-decoration: none;
}

.text-left {
    text-align: left;
}

/* Responsive Design for Search Interface */
@media (max-width: 768px) {
    .search-container {
        padding: 20px;
    }
    
    .search-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .search-tab {
        border-radius: 0;
        margin-bottom: 2px;
    }
    
    .search-tab:first-child {
        border-radius: 6px 6px 0 0;
    }
    
    .search-tab:last-child {
        border-radius: 0 0 6px 6px;
        margin-bottom: 0;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .search-button {
        padding: 8px 12px;
    }
    
    .clear-search {
        padding: 6px 10px;
    }
    
    /* Book tools responsive */
    .book-tools-interface {
        padding: 12px 15px;
    }
    
    .book-tools-container {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .book-translate-section {
        justify-content: center;
    }
    
    .translate-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .language-select {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .translate-button, .reset-button {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .book-search-section {
        max-width: none;
    }
    
    .book-search-input {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .book-search-button {
        padding: 4px 8px;
    }
    
    .book-clear-search {
        padding: 3px 6px;
    }
    
    .book-search-results {
        padding: 12px;
    }
    
    .book-search-result-item {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 15px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .search-button {
        padding: 6px 10px;
    }
    
    .search-results {
        padding: 15px;
    }
    
    .search-result-item {
        padding: 12px;
    }
}

@media (min-width: 640px) {
    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

.no-books-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.no-books-message h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 1.8em;
}

.no-books-message p {
    color: #666;
    margin: 0 0 25px 0;
    font-size: 16px;
}

.no-books-message .button {
    background: #007cba;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.no-books-message .button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Category View Header */
.category-view-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.category-view-header .back-link {
    display: inline-block;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-view-header .back-link:hover {
    color: #005a87;
    transform: translateX(-3px);
}

.category-view-header h2 {
    font-size: 2em;
    color: #2c3e50;
    margin: 10px 0;
    font-weight: 700;
}

.category-view-header .category-books-count {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.book-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-cover {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-cover {
    font-size: 4em;
    color: #ccc;
}

.book-info {
    padding: 20px;
}

.book-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
    line-height: 1.3;
}

.book-info .author {
    color: #666;
    margin: 0 0 10px 0;
    font-style: italic;
    font-size: 14px;
}

.book-info .pages {
    color: #999;
    margin: 0;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .text-library-content {
        flex-direction: column;
    }
    
    .annotations-sidebar {
        flex: none;
        max-height: 300px;
    }
    
    .book-title {
        font-size: 2em;
    }
    
    .library-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navigation-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .library-nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .navigation-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .page-navigation {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .text-library-header {
        padding: 15px 0;
    }
    
    .book-title-section {
        margin: 0 10px 15px 10px;
        padding: 15px;
    }
    
    .library-controls {
        padding: 0 10px;
    }
    
    .text-library-content {
        padding: 0 10px;
    }
    
    .annotations-sidebar,
    .page-content {
        padding: 3px !important; /* Set padding to 3px as requested */
    }
    
    .page-text {
        font-size: 14px;
    }
}



#page-info {

    font-weight: 600;

    color: #333;

    font-size: 16px;

}



/* Search Results */

.search-results-panel {

    background: white;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

    margin: 20px;

    padding: 25px;

}



.search-results-header {

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 2px solid #e0e0e0;

}



.search-results-header h3 {

    color: #2c3e50;

    margin: 0 0 10px 0;

    font-size: 1.4em;

}



.search-results-header p {

    color: #666;

    margin: 0;

    font-size: 14px;

}



.search-results-list {

    display: flex;

    flex-direction: column;

    gap: 15px;

}



.search-result-item {

    padding: 20px;

    background: #f8f9fa;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.3s ease;

    border-left: 4px solid transparent;

}



.search-result-item:hover {

    background: #e3f2fd;

    border-left-color: #007cba;

    transform: translateX(5px);

}



.search-result-page {

    font-weight: 600;

    color: #007cba;

    margin-bottom: 8px;

    font-size: 14px;

}



.search-result-excerpt {

    color: #555;

    line-height: 1.6;

    font-size: 14px;

}



.search-result-excerpt mark {

    background: #fff3cd;

    color: #856404;

    padding: 2px 4px;

    border-radius: 3px;

    font-weight: 500;

}



/* Book Selection */

.book-selection {

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 20px;

}



.no-books-message {

    text-align: center;

    padding: 60px 20px;

    background: white;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

}



.no-books-message h3 {

    color: #2c3e50;

    margin: 0 0 15px 0;

    font-size: 1.8em;

}



.no-books-message p {

    color: #666;

    margin: 0 0 25px 0;

    font-size: 16px;

}



.no-books-message .button {

    background: #007cba;

    color: white;

    padding: 15px 30px;

    border-radius: 25px;

    text-decoration: none;

    font-weight: 500;

    transition: all 0.3s ease;

    display: inline-block;

}



.no-books-message .button:hover {

    background: #005a87;

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);

}



.books-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 25px;

    margin-top: 30px;

}



.book-card {

    background: white;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    overflow: hidden;

    cursor: pointer;

    transition: all 0.3s ease;

}



.book-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

}



.book-cover {

    height: 200px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f8f9fa;

}



.book-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.default-cover {

    font-size: 4em;

    color: #ccc;

}



.book-info {

    padding: 20px;

}



.book-info h3 {

    margin: 0 0 10px 0;

    color: #2c3e50;

    font-size: 1.2em;

    line-height: 1.3;

}



.book-info .author {

    color: #666;

    margin: 0 0 10px 0;

    font-style: italic;

    font-size: 14px;

}



.book-info .pages {

    color: #999;

    margin: 0;

    font-size: 12px;

}



/* Responsive Design */

@media (max-width: 1024px) {

    .text-library-content {

        flex-direction: column;

    }

    

    .annotations-sidebar {

        flex: none;

        max-height: 300px;

    }

    

    .book-title {

        font-size: 2em;

    }

    

    .library-controls {

        flex-direction: column;

        align-items: stretch;

    }

    

    .navigation-controls {

        justify-content: center;

    }

}



@media (max-width: 768px) {

    .library-nav-links {

        flex-direction: column;

        gap: 10px;

    }

    

    .nav-tabs {

        flex-wrap: wrap;

    }

    

    .navigation-controls {

        flex-direction: column;

        gap: 15px;

    }

    

    .page-content {

        padding: 20px;

    }

    

    .page-navigation {

        padding: 15px 20px;

        flex-direction: column;

        gap: 15px;

    }

    

    .books-grid {

        grid-template-columns: 1fr;

    }

    

    .book-title {

        font-size: 1.8em;

    }

}



@media (max-width: 480px) {

    .text-library-header {

        padding: 15px 0;

    }

    

    .book-title-section {

        margin: 0 10px 15px 10px;

        padding: 15px;

    }

    

    .library-controls {

        padding: 0 10px;

    }

    

    .text-library-content {

        padding: 0 10px;

    }

    

    .annotations-sidebar,

    .page-content {

        padding: 15px;

    }

    

    .page-text {
        font-size: 14px;
    }
}



#page-info {

    font-weight: 600;

    color: #333;

    font-size: 16px;

}



/* Search Results */

.search-results-panel {

    background: white;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

    margin: 20px;

    padding: 25px;

}



.search-results-header {

    margin-bottom: 20px;

    padding-bottom: 15px;

    border-bottom: 2px solid #e0e0e0;

}



.search-results-header h3 {

    color: #2c3e50;

    margin: 0 0 10px 0;

    font-size: 1.4em;

}



.search-results-header p {

    color: #666;

    margin: 0;

    font-size: 14px;

}



.search-results-list {

    display: flex;

    flex-direction: column;

    gap: 15px;

}



.search-result-item {

    padding: 20px;

    background: #f8f9fa;

    border-radius: 8px;

    cursor: pointer;

    transition: all 0.3s ease;

    border-left: 4px solid transparent;

}



.search-result-item:hover {

    background: #e3f2fd;

    border-left-color: #007cba;

    transform: translateX(5px);

}



.search-result-page {

    font-weight: 600;

    color: #007cba;

    margin-bottom: 8px;

    font-size: 14px;

}



.search-result-excerpt {

    color: #555;

    line-height: 1.6;

    font-size: 14px;

}



.search-result-excerpt mark {

    background: #fff3cd;

    color: #856404;

    padding: 2px 4px;

    border-radius: 3px;

    font-weight: 500;

}



/* Book Selection */

.book-selection {

    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 20px;

}



.no-books-message {

    text-align: center;

    padding: 60px 20px;

    background: white;

    border-radius: 12px;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

}



.no-books-message h3 {

    color: #2c3e50;

    margin: 0 0 15px 0;

    font-size: 1.8em;

}



.no-books-message p {

    color: #666;

    margin: 0 0 25px 0;

    font-size: 16px;

}



.no-books-message .button {

    background: #007cba;

    color: white;

    padding: 15px 30px;

    border-radius: 25px;

    text-decoration: none;

    font-weight: 500;

    transition: all 0.3s ease;

    display: inline-block;

}



.no-books-message .button:hover {

    background: #005a87;

    transform: translateY(-2px);

    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);

}



.books-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 25px;

    margin-top: 30px;

}



.book-card {

    background: white;

    border-radius: 12px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    overflow: hidden;

    cursor: pointer;

    transition: all 0.3s ease;

}



.book-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

}



.book-cover {

    height: 200px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f8f9fa;

}



.book-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.default-cover {

    font-size: 4em;

    color: #ccc;

}



.book-info {

    padding: 20px;

}



.book-info h3 {

    margin: 0 0 10px 0;

    color: #2c3e50;

    font-size: 1.2em;

    line-height: 1.3;

}



.book-info .author {

    color: #666;

    margin: 0 0 10px 0;

    font-style: italic;

    font-size: 14px;

}



.book-info .pages {

    color: #999;

    margin: 0;

    font-size: 12px;

}



/* Responsive Design */

@media (max-width: 1024px) {

    .text-library-content {

        flex-direction: column;

    }

    

    .annotations-sidebar {

        flex: none;

        max-height: 300px;

    }

    

    .book-title {

        font-size: 2em;

    }

    

    .library-controls {

        flex-direction: column;

        align-items: stretch;

    }

    

    .navigation-controls {

        justify-content: center;

    }

}



@media (max-width: 768px) {

    .library-nav-links {

        flex-direction: column;

        gap: 10px;

    }

    

    .nav-tabs {

        flex-wrap: wrap;

    }

    

    .navigation-controls {

        flex-direction: column;

        gap: 15px;

    }

    

    .page-content {

        padding: 20px;

    }

    

    .page-navigation {

        padding: 15px 20px;

        flex-direction: column;

        gap: 15px;

    }

    

    .books-grid {

        grid-template-columns: 1fr;

    }

    

    .book-title {

        font-size: 1.8em;

    }

}



@media (max-width: 480px) {

    .text-library-header {

        padding: 15px 0;

    }

    

    .book-title-section {

        margin: 0 10px 15px 10px;

        padding: 15px;

    }

    

    .library-controls {

        padding: 0 10px;

    }

    

    .text-library-content {

        padding: 0 10px;

    }

    

    .annotations-sidebar,

    .page-content {

        padding: 15px;

    }

    
    
    .page-text {

        font-size: 14px;

    }
    
    /* Category view header responsive */
    .category-view-header h2 {
        font-size: 1.5em;
    }
    
    .category-view-header .category-books-count {
        font-size: 14px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

}


