/* Sidebar styling */
.reader-sidebar {
    position: fixed;
    top: 56px; /* Below header */
    right: -480px;
    width: 480px;
    height: calc(100vh - 56px);
    background: linear-gradient(135deg, rgba(210,225,250,0.9) 100%, rgba(50,100,225,0.5) 100%);
    border-left: 1px solid white;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    border-radius: 10px 0 0 0;
    z-index: 2000;
    /* padding: 20px; */
}

.reader-sidebar.open {
    right: 0;
}
  
.view-sidebar-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-radius: 10px 0 0 0;
    height: 60px;
    background: linear-gradient(rgba(50,100,225,1), rgba(50,100,225,0.75));
    border-bottom: 1px solid #ffffff;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.3);
    color: white;
}
  
.view-sidebar-header h3 {
    margin-top: 10px;
    font-size: 22px;
}
  
.sidebar-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}
  
.reader-wrapper {
    transition: margin-left 0.3s ease-in-out;
}
  
.reader-wrapper.shifted {
    margin-left: -300px;
}
  
/* Toolbar styling */
.reader-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.reader-toolbar.light-mode {
    color: #212121;
    background-color: rgb(240,243,253);
    border-bottom: 1px solid #212121;
}

.reader-toolbar.dark-mode {
    color: rgb(240,243,253);
    background-color: #212121;
    border-bottom: 1px solid rgb(240,243,253);
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
}
  
.toolbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.hamburger-button {
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-button.light-mode {
    color: #212121;
}
  
.hamburger-button.dark-mode {
    color: rgb(240,243,253);
}

.reader-controls button {
    padding: 5px 8px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 10px;
    border-radius: 4px;
}
  
.reader-controls.lightmode button {
    color: #212121;
    background-color: rgb(240,243,253);
    border: 1px solid #212121;
}
  
.reader-controls.darkmode button {
    color: rgb(240,243,253);
    background-color: #212121;
    border: 1px solid rgb(240,243,253);
}
  
  
.reader-controls span {
    font-size: 14px;
    margin: 0 5px;
}
  
.mode-toggle {
    display: flex;
    align-items: center;
    margin: 0 10px;
}
  
.mode-button {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 4px;
    margin: 0 2px;
    border-radius: 4px;
}
  
.mode-toggle.light-mode .mode-button.active {
    border-color: #0070f3 !important;
}
  
.mode-toggle.dark-mode .mode-button.active {
    border-color: #0070f3 !important;
}
  
/* Light mode styles */
.mode-toggle.light-mode .mode-button {
    color: #212121;
    background-color: rgb(240,243,253);
    border: 1px solid #212121;
}
  
/* Dark mode styles */
.mode-toggle.dark-mode .mode-button {
    color: rgb(240,243,253);
    background-color: #212121;
    border: 1px solid rgb(240,243,253);
}  

.page-indicator {
    font-size: 16px;
    font-weight: bold;
}

.page-indicator.light-mode {
    color: #212121;
}

.page-indicator.dark-mode {
    color: rgb(240,243,253);
}
  
.reader-content {
    padding: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3); */
    line-height: 2.5;
    width: 800px;
    height: 1000px;
    margin: 0 auto 30px auto;
    border-radius: 15px;
    overflow: hidden;
}

.reader-content.light-mode {
    color: #212121;
    background-color: rgb(240,243,253);
    border: 1px solid #212121;
}

.reader-content.dark-mode {
    color: rgb(240,243,253);
    background-color: #212121;
    border: 1px solid rgb(240,243,253);
}

.chapter-heading {
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    color: inherit; 
}  
  
/* Chapters Section */
.chapters-section {
    margin: 0 auto;
    padding: 20px;
}
  
.chapters-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: rgb(240,243,253);
    border-bottom: 1px solid rgb(240,243,253);
    font-style: italic;
}

.view-panel-header-buttons {
    text-align: right;
    border-bottom: 1px solid white; 
    padding: 15px;
    margin-bottom: 5px;
}

.chapter-module {
    border-radius: 5px;
    margin: 10px 0 30px 0;
    overflow: hidden;
    background-color: white;
    transition: 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
  
.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(rgba(50,100,225,1), rgba(50,100,225,0.75));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
  
.chapter-header h4 {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-style: italic;
    margin: 0;
    font-size: 18px;
    color: white;
}
  
.chapter-toggle {
    font-size: 24px;
    line-height: 1;
    color: white;
}
  
.chapter-table {
    width: 100%;
    border-collapse: collapse;
}
  
.chapter-table th,
.chapter-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}
  
.chapter-table th {
    background-color: #f0f0f0;
}
  
.status-complete {
    color: green;
    font-weight: normal;
}
  