/* style.css */
body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: #0d1117; color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; display: flex; justify-content: center; align-items: center;
}

#container {
    position: relative; width: 100%; height: 100%;
    max-width: 1920px; max-height: 1080px;
    background: #000; border-radius: 12px; overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); display: flex;
    flex-direction: column; transition: background-color 0.4s ease;
}

#courseware-footer {
    position: absolute; bottom: 0; left: 0; width: 100%; 
    padding: 10px 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); 
    background: #fdf6e3; color: #555555; font-size: 0.85rem; text-align: center; 
    border-top: 1px solid #d1d5db; z-index: 9999 !important; pointer-events: none;
}

/* Modals & Overlays - FIXED position prevents screen squishing */
#overlay, #login-overlay, #dashboard-overlay, #headsup-overlay, #welcome-overlay, #subscription-modal, #superadmin-overlay, #trial-modal, #celebration-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9000; 
    width: 100vw; height: 100vh;
    background: rgba(13, 11, 15, 0.95); display: flex; justify-content: center;
    align-items: center; flex-direction: column; text-align: center;
}
#superadmin-overlay { z-index: 9500; }
#celebration-modal { z-index: 9999; }

.login-box, .dashboard-box, .headsup-box, .welcome-box {
    background: #161b22; padding: 40px; border-radius: 12px; border: 1px solid #30363d;
    width: 600px; max-width: 90%; box-shadow: 0 10px 30px rgba(0,0,0,0.5); box-sizing: border-box;
}
.login-box { width: 400px; }

.login-box input {
    width: 100%; padding: 12px; margin: 10px 0 20px 0; border-radius: 6px;
    border: 1px solid #30363d; background: #0d1117; color: white; box-sizing: border-box;
}
.login-box label { text-align: left; display: block; color: #8b949e; font-size: 0.9rem; }

button.start-btn {
    padding: 15px 40px; font-size: 1.2rem; cursor: pointer; background: #3b82f6;
    color: white; border: none; border-radius: 8px; font-weight: bold;
    transition: transform 0.2s, background 0.3s; width: 100%; margin-top: 10px;
}
button.start-btn:hover { background: #2563eb; transform: scale(1.05); }

button.reset-btn {
    padding: 8px 15px; font-size: 0.9rem; cursor: pointer; background: #da3633;
    color: white; border: none; border-radius: 6px; font-weight: bold; transition: background 0.2s;
}
button.reset-btn:hover { background: #b32624; }

button.nav-btn-secondary {
    padding: 10px 25px; font-size: 1rem; cursor: pointer; background: transparent;
    color: #8b949e; border: 1px solid #8b949e; border-radius: 6px; font-weight: bold;
    transition: all 0.2s; margin-top: 15px; width: 100%;
}
button.nav-btn-secondary:hover { background: #8b949e; color: #0d1117; }

/* Dashboard & Welcome */
#welcome-book-list { max-height: 400px; overflow-y: auto; }
#welcome-book-list button { text-align: left; padding: 15px; border-color: #30363d; color: #c9d1d9; }
#welcome-book-list button:hover { border-color: #58a6ff; color: #58a6ff; background: rgba(88, 166, 255, 0.1); }

.dashboard-instruction {
    color: #8b949e; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.4;
    background: rgba(13, 17, 23, 0.5); padding: 15px; border-radius: 8px; border: 1px solid #30363d;
}
.dashboard-set-row {
    display: flex; justify-content: space-between; align-items: center;
    background: #0d1117; padding: 15px 20px; border-radius: 8px; border: 1px solid #30363d;
    margin-bottom: 10px;
}
.set-name { font-size: 1.2rem; font-weight: bold; color: #58a6ff; text-align: left; flex: 1; }
.set-status { font-size: 0.9rem; font-weight: bold; padding: 5px 10px; border-radius: 12px; margin-right: 15px; }
.status-completed { background: rgba(46, 160, 67, 0.2); color: #3fb950; }
.status-progress { background: rgba(210, 153, 34, 0.2); color: #d29922; }
.status-unlocked { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.status-locked { background: rgba(139, 148, 158, 0.2); color: #8b949e; }

/* Main Workspace & Top Nav */
#nav-header-bar {
    position: absolute; top: 20px; left: 20px; right: 20px; z-index: 8500;
    display: flex; gap: 15px; align-items: center; flex-wrap: wrap;
}

#nav-toggle-btn {
    background: rgba(13, 17, 23, 0.9); color: #58a6ff; border: 2px solid #58a6ff; 
    border-radius: 6px; padding: 10px 15px; font-size: 1.1rem; font-weight: bold; 
    cursor: pointer; transition: 0.2s;
}
#nav-toggle-btn:hover { background: #58a6ff; color: #000; }

#dashboard-toggle-btn {
    background: rgba(46, 160, 67, 0.9); color: #fff; border: 2px solid #2ea043; 
    border-radius: 6px; padding: 10px 15px; font-size: 1.1rem; font-weight: bold; 
    cursor: pointer; transition: 0.2s;
}
#dashboard-toggle-btn:hover { background: #2ea043; }

#subscribe-btn {
    padding: 10px 15px; border-radius: 6px; background: #d29922; color: #fff; 
    border: 2px solid #d29922; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: 0.2s;
}
#subscribe-btn:hover { background: #b07e15; }

/* Custom Dropdown */
.custom-dropdown { position: relative; display: inline-block; user-select: none; }
.dropdown-header { padding: 10px 15px; border-radius: 6px; background: rgba(13, 17, 23, 0.9); color: #58a6ff; border: 2px solid #58a6ff; font-weight: bold; font-size: 1.1rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; text-align: left; }
.dropdown-header:hover { background: rgba(88, 166, 255, 0.1); }
.dropdown-body { position: absolute; top: 110%; left: 0; background: #161b22; border: 1px solid #30363d; border-radius: 6px; width: 320px; max-height: 400px; overflow-y: auto; z-index: 9999; box-shadow: 0 10px 30px rgba(0,0,0,0.8); text-align: left; }
.category-group { margin-bottom: 0; }
.category-header { padding: 12px 15px; background: rgba(0,0,0,0.6); color: #c9d1d9; font-weight: bold; cursor: pointer; border-bottom: 1px solid #30363d; transition: background 0.2s; }
.category-header:hover { background: rgba(88, 166, 255, 0.1); color: #58a6ff; }
.category-book-list { background: #0d1117; }
.book-item { padding: 12px 15px 12px 30px; color: #8b949e; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.02); transition: 0.2s; font-size: 0.95rem; line-height: 1.3; }
.book-item:hover { background: rgba(88, 166, 255, 0.2); color: #3fb950; font-weight: bold; }

#main-workspace { display: flex; width: 100%; height: 100%; flex: 1; flex-direction: row; position: relative; }

/* Bottom Navigation Buttons */
.nav-arrow {
    background: rgba(13, 17, 23, 0.9); color: #58a6ff; border: 2px solid #58a6ff; border-radius: 25px;
    padding: 10px 25px; font-size: 1.1rem; cursor: pointer; font-weight: bold; transition: all 0.2s;
    backdrop-filter: blur(5px); box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.nav-arrow:hover { background: #58a6ff; color: #fff; transform: translateY(-2px); }

#teacher-sidebar {
    display: none; width: 250px; background: #161b22; border-right: 1px solid #30363d;
    height: 100%; overflow-y: auto; padding: 80px 10px 20px 10px; box-sizing: border-box; z-index: 15; position: relative;
}
body.role-teacher #teacher-sidebar { display: block; }
.sidebar-header { color: #c9d1d9; border-bottom: 1px solid #30363d; padding-bottom: 10px; margin-top: 0; font-size: 1.1rem; text-align: center; }
.roster-item { padding: 12px; border-bottom: 1px solid #30363d; cursor: pointer; color: #8b949e; transition: 0.2s; font-size: 0.95rem; word-wrap: break-word; text-align: left; }
.roster-item:hover, .roster-item.active { background: rgba(88, 166, 255, 0.1); color: #58a6ff; }

/* 3D BOOK FLIP SLIDE SYSTEM */
#slides-container { 
    flex: 1; position: relative; width: 100%; height: 100%; 
    background: #fdf6e3; perspective: 2000px; transform-style: preserve-3d; overflow: hidden;
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex;
    flex-direction: column; justify-content: flex-start; align-items: center;
    padding: 100px 100px 120px 100px; /* Increased bottom padding for nav bar */
    box-sizing: border-box; 
    opacity: 0; pointer-events: none; text-align: center; overflow-y: auto;
    backface-visibility: hidden; transform-style: preserve-3d;
    background-color: #fdf6e3; color: #333333; z-index: 5;
}
.slide.active { opacity: 1; pointer-events: auto; }

.flip-next-out { animation: pageTurnNextOut 0.6s forwards cubic-bezier(0.645, 0.045, 0.355, 1); transform-origin: left center; z-index: 10; }
.flip-next-in { animation: pageTurnNextIn 0.6s forwards cubic-bezier(0.645, 0.045, 0.355, 1); transform-origin: right center; z-index: 5; }
.flip-prev-out { animation: pageTurnPrevOut 0.6s forwards cubic-bezier(0.645, 0.045, 0.355, 1); transform-origin: right center; z-index: 10; }
.flip-prev-in { animation: pageTurnPrevIn 0.6s forwards cubic-bezier(0.645, 0.045, 0.355, 1); transform-origin: left center; z-index: 5; }

@keyframes pageTurnNextOut {
    0% { transform: rotateY(0deg) translateZ(0); opacity: 1; filter: brightness(1); }
    50% { filter: brightness(0.8); }
    100% { transform: rotateY(-90deg) translateZ(-100px); opacity: 0; filter: brightness(0.5); }
}
@keyframes pageTurnNextIn {
    0% { transform: rotateY(90deg) translateZ(-100px); opacity: 0; filter: brightness(0.5); }
    50% { filter: brightness(0.8); }
    100% { transform: rotateY(0deg) translateZ(0); opacity: 1; filter: brightness(1); }
}
@keyframes pageTurnPrevOut {
    0% { transform: rotateY(0deg) translateZ(0); opacity: 1; filter: brightness(1); }
    50% { filter: brightness(0.8); }
    100% { transform: rotateY(90deg) translateZ(-100px); opacity: 0; filter: brightness(0.5); }
}
@keyframes pageTurnPrevIn {
    0% { transform: rotateY(-90deg) translateZ(-100px); opacity: 0; filter: brightness(0.5); }
    50% { filter: brightness(0.8); }
    100% { transform: rotateY(0deg) translateZ(0); opacity: 1; filter: brightness(1); }
}

/* Quiz Content (Styled for Paper Theme) */
.quiz-container { width: 100%; max-width: 900px; text-align: left; background: transparent; padding: 20px; box-sizing: border-box; z-index: 20; position: relative; }
.topic-text { font-size: 1.1rem; color: #b07e15; margin-bottom: 15px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.question-text { font-size: 2rem; margin-bottom: 25px; color: #111; font-family: 'Georgia', serif; }

.mcq-option {
    margin-bottom: 12px; padding: 15px 20px; background: #fff;
    border: 1px solid #d1d5db; border-radius: 8px; list-style: none; transition: all 0.2s; cursor: pointer; color: #333; font-size: 1.2rem;
}
.mcq-option:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.05); }
.mcq-option.selected { border-color: #3b82f6; background: rgba(59, 130, 246, 0.15); font-weight: bold; }

.input-field { width: 100%; padding: 15px; font-size: 1.5rem; background: #fff; color: #333; border: 1px solid #d1d5db; border-radius: 8px; margin-bottom: 20px; box-sizing: border-box; z-index: 20; position: relative;}
.input-field:disabled { background: #f3f4f6 !important; color: #9ca3af !important; cursor: not-allowed; }

.submit-btn, .exp-btn, .back-quiz-btn {
    background: #238636; color: white; padding: 12px 30px; border: none; border-radius: 6px; font-size: 1.1rem;
    font-weight: bold; cursor: pointer; margin-top: 20px; margin-right: 15px; transition: background 0.2s; display: inline-block; z-index: 20; position: relative;
}
.submit-btn:hover { background: #2ea043; }
.exp-btn { background: #d29922; display: none; }
.exp-btn:hover { background: #b07e15; }
.back-quiz-btn { background: #3b82f6; margin-bottom: 20px; display: inline-block; }

.quiz-feedback { margin-top: 20px; font-size: 1.3rem; font-weight: bold; display: none; padding: 15px; border-radius: 8px; }
.feedback-correct { background: rgba(46, 160, 67, 0.15); color: #2ea043; border-left: 5px solid #2ea043; }
.feedback-wrong { background: rgba(248, 81, 73, 0.15); color: #d73a49; border-left: 5px solid #d73a49; }

/* Theory Content */
.slide .book-content { display: none; font-family: 'Georgia', serif; color: #333333; width: 100%; max-width: 900px; margin: 0 auto; text-align: left; padding-bottom: 80px; z-index: 20; position: relative;}
body.book-mode .slide > :not(.book-content):not(#nav-controls):not(#question-tracker) { display: none !important; }
body.book-mode .book-content { display: block !important; }

.book-content h2 { color: #111; font-family: 'Segoe UI', sans-serif; font-size: 2.5rem; border-bottom: 2px solid #d1d5db; padding-bottom: 10px; margin-bottom: 25px; text-align: left; }
.book-content h3 { color: #222; font-family: 'Segoe UI', sans-serif; font-size: 1.8rem; margin-top: 30px; margin-bottom: 15px; text-align: left; }
.book-content p { font-size: 1.3rem; line-height: 1.8; margin-bottom: 20px; text-align: left; }
.book-content ul { margin-top: 15px; margin-bottom: 30px; padding-left: 40px; text-align: left; }
.book-content li { margin-bottom: 15px; line-height: 1.6; font-size: 1.3rem; text-align: left; }
.book-content-question { font-size: 1.8rem; margin-bottom: 20px; color: #000; font-weight: bold; text-align: left; }
.book-mcq-option { margin-bottom: 10px; padding: 12px 20px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; list-style: none; font-family: 'Segoe UI', sans-serif; text-align: left; }
.correct-line { display: inline-block; width: 100%; margin: 16px 0; padding: 12px 16px; background: rgba(59,130,246,0.1); border-left: 4px solid #3b82f6; color: #0f172a; border-radius: 8px; font-weight: 600; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; text-align: left; }

/* HUD & Trackers */
#question-tracker { flex-direction: column; align-items: center; width: 100%; margin-bottom: 20px; z-index: 20; position: relative; }
.tracker-circle { 
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid #8b949e; 
    background: transparent; color: #8b949e; display: flex; justify-content: center; 
    align-items: center; font-weight: bold; transition: 0.3s; font-size: 0.95rem;
}
.tracker-circle.answered { border-color: #2ea043; background: #2ea043; color: white; }
.tracker-circle.current { border-color: #3b82f6; background: #3b82f6; color: white; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }

#nav-controls { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 900px; margin-top: 20px; padding: 0 10px; box-sizing: border-box; z-index: 50; margin-bottom: 40px; position: relative;}
.nav-btn { padding: 10px 25px; font-size: 1.1rem; cursor: pointer; background: #fff; color: #58a6ff; border: 2px solid #58a6ff; border-radius: 6px; font-weight: bold; transition: all 0.2s; z-index: 50; position: relative;}
.nav-btn:hover { background: #58a6ff; color: #fff; }
.nav-btn:disabled { border-color: #d1d5db; color: #9ca3af; cursor: not-allowed; background: transparent; }

#top-hud { position: absolute; top: 20px; right: 20px; display: flex; gap: 15px; align-items: flex-start; z-index: 8500; pointer-events: none; }
.timer-display { font-size: 1.5rem; font-weight: bold; color: #d73a49; background: rgba(255,255,255,0.9); padding: 10px 20px; border-radius: 8px; border: 1px solid #d73a49; display: none; pointer-events: auto; }
.score-display { font-size: 1.2rem; font-weight: bold; color: #58a6ff; background: rgba(255,255,255,0.9); padding: 10px 20px; border-radius: 8px; border: 1px solid #30363d; pointer-events: auto; }

/* Side Navigator */
#slide-navigator { position: absolute; top: 0; left: 0; width: 350px; height: 100%; background: rgba(13, 17, 23, 0.98); border-right: 1px solid #30363d; z-index: 8000; transform: translateX(0); transition: transform 0.3s ease; display: flex; flex-direction: column; backdrop-filter: blur(10px); text-align: left; }
#slide-navigator.collapsed { transform: translateX(-100%); }
.nav-header { padding: 80px 15px 15px 15px; font-size: 1.1rem; font-weight: bold; color: #58a6ff; border-bottom: 1px solid #30363d; text-transform: uppercase; text-align: left; transition: color 0.2s; }
.nav-header:hover { color: #fff; text-decoration: none !important; }
#nav-list { list-style: none; padding: 0 0 40px 0; margin: 0; overflow-y: auto; flex: 1; text-align: left; }
.nav-grandparent { padding: 12px 15px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 1.15rem; font-weight: bold; color: #ffffff; background: rgba(0,0,0,0.6); transition: background 0.2s; text-transform: uppercase; letter-spacing: 1px; display: flex; justify-content: space-between; text-align: left; }
.nav-grandparent:hover { background: rgba(88, 166, 255, 0.2); }
.nav-grandparent.locked { color: #8b949e; cursor: not-allowed; }
.nav-week-children { list-style: none; padding-left: 0; margin: 0; display: none; text-align: left; }
.nav-parent { padding: 10px 15px 10px 25px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 1.05rem; font-weight: bold; color: #58a6ff; background: rgba(13, 17, 23, 0.6); transition: background 0.2s; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.nav-parent:hover { background: rgba(88, 166, 255, 0.2); color: #ffffff; }
.nav-day-children { list-style: none; padding-left: 0; margin: 0; display: none; text-align: left; }
.nav-child-item { padding: 10px 15px 10px 40px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.02); font-size: 0.95rem; transition: background 0.2s; color: #8b949e; display: flex; justify-content: flex-start; align-items: center; line-height: 1.3; text-align: left; }
.nav-child-item:hover { background: rgba(88, 166, 255, 0.1); color: #c9d1d9; }
.nav-child-item.active-nav { background: rgba(88, 166, 255, 0.2); color: #3fb950; border-left: 4px solid #3fb950; font-weight: bold; }

/* Celebration Modal */
.celeb-box { background: #161b22; padding: 50px; border-radius: 12px; border: 2px solid #58a6ff; box-shadow: 0 0 40px rgba(88, 166, 255, 0.4); transform: scale(0.8); opacity: 0; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.celeb-box.show { transform: scale(1); opacity: 1; }
.celeb-title { font-size: 3rem; color: #3fb950; margin-bottom: 20px; font-weight: bold; }
.celeb-text { font-size: 1.5rem; color: #c9d1d9; margin-bottom: 30px; line-height: 1.5; }

/* Superadmin Dashboard */
.admin-user-row { background: #0d1117; padding: 15px; border-radius: 8px; border: 1px solid #30363d; margin-bottom: 15px; display: flex; flex-direction: column; gap: 10px; }
.admin-user-info { display: flex; justify-content: space-between; align-items: center; }
.admin-user-email { font-weight: bold; color: #c9d1d9; font-size: 1.1rem; }
.admin-book-checkboxes { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid #30363d; }
.admin-book-checkboxes label { color: #8b949e; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.admin-role-select { padding: 5px 10px; background: #161b22; color: #fff; border: 1px solid #30363d; border-radius: 4px; cursor: pointer; }

/* TOC Accordion specific hover styles */
.toc-accordion-header { transition: color 0.2s; }
.toc-accordion-header:hover { color: #58a6ff !important; }
.toc-accordion-header span:first-child:hover { text-decoration: underline; }

/* Mobile Responsiveness & Strict Left Alignment */
@media screen and (max-width: 1024px), screen and (orientation: portrait) {
    body, html { height: 100dvh !important; width: 100vw !important; overflow: hidden !important; }
    #container { border-radius: 0 !important; width: 100vw !important; height: 100dvh !important; }
    
    #nav-header-bar { top: 10px !important; left: 10px !important; width: calc(100% - 20px) !important; gap: 8px !important; flex-wrap: wrap !important; }
    .dropdown-header { font-size: 0.9rem !important; padding: 8px 10px !important; max-width: 180px !important; }
    .dropdown-body { width: 280px !important; }
    #nav-toggle-btn, #dashboard-toggle-btn, #subscribe-btn, #admin-dashboard-btn { font-size: 0.9rem !important; padding: 8px 10px !important; }
    
    #top-hud { top: 55px !important; right: 10px !important; }
    .score-display, .timer-display { font-size: 1rem !important; padding: 6px 10px !important; }
    
    .slide { padding: 90px 15px 100px 15px !important; }
    .question-text { font-size: 1.5rem !important; line-height: 1.3; }
    .mcq-option, .book-mcq-option { font-size: 1.1rem !important; padding: 10px 15px !important; }
    .submit-btn, .exp-btn, .back-quiz-btn { font-size: 1rem !important; width: 100% !important; margin-right: 0 !important; }
    
    .nav-arrow { padding: 8px 15px; font-size: 1rem; }

    #teacher-sidebar { width: 200px !important; padding-top: 80px !important; }
    .dashboard-box, .headsup-box, .welcome-box { width: 95% !important; padding: 20px !important; }
    .celeb-title { font-size: 2rem !important; }
    .celeb-text { font-size: 1.1rem !important; }

    .book-content { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
    .book-content h2, .book-content h3, .book-content p, .book-content li { text-align: left !important; }
    .book-content h2 { font-size: 1.8rem !important; }
    .book-content h3 { font-size: 1.5rem !important; }
    .book-content p, .book-content li { font-size: 1.1rem !important; }

    /* STRICT TOC LEFT ALIGNMENT */
    .toc-container, .unit-toc-container, .mt-toc-container {
        width: 100% !important; padding: 10px 0 !important; margin: 0 !important; text-align: left !important; box-sizing: border-box !important;
    }
    .toc-main-list, .toc-sub-list {
        width: 100% !important; padding-left: 0 !important; margin-left: 0 !important; text-align: left !important; box-sizing: border-box !important;
    }
    .toc-main-item { width: 100% !important; text-align: left !important; margin-bottom: 25px !important; }
    .toc-main-item > strong { display: block !important; text-align: left !important; padding-left: 5px !important; width: 100% !important; box-sizing: border-box !important; }
    .toc-sub-item { display: block !important; width: 100% !important; text-align: left !important; margin-left: 0 !important; padding-left: 15px !important; box-sizing: border-box !important; }
    .toc-sub-item[style*="padding-left"] { padding-left: 30px !important; }
    .toc-sub-item a { display: inline-block !important; text-align: left !important; width: 100% !important; white-space: normal !important; }
}

/* Table of Contents Styles */
.toc-container { background: transparent; padding: 20px; text-align: left; width: 100%; box-sizing: border-box; }
.toc-main-list { list-style: none; padding-left: 0; margin: 0; text-align: left; }
.toc-main-item { margin-bottom: 25px; text-align: left; }
.toc-main-item strong { font-size: 1.5rem; color: #b07e15; border-bottom: 1px solid #d1d5db; display: block; padding-bottom: 5px; margin-bottom: 15px; text-transform: uppercase; font-family: 'Segoe UI', sans-serif;}
.toc-sub-list { list-style: none; padding-left: 20px; text-align: left; }
.toc-sub-item { margin-bottom: 10px; text-align: left; }
.toc-sub-item a { font-size: 1.3rem; color: #3b82f6; text-decoration: none; transition: color 0.2s; font-family: 'Georgia', serif;}
.toc-sub-item a:hover { color: #2563eb; text-decoration: underline; }

/* Review Hub Page Styles */
.review-hub-container { background: transparent; padding: 20px 0; width: 100%; }
.hub-row {
    display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 15px 20px; border-radius: 8px; border: 1px solid #d1d5db; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.hub-info { display: flex; flex-direction: column; text-align: left; }
.hub-info strong { font-size: 1.4rem; color: #111; font-family: 'Segoe UI', sans-serif; }
.hub-status { font-size: 1rem; color: #8b949e; margin-top: 5px; }
.hub-score { font-size: 1rem; color: #2ea043; font-weight: bold; margin-top: 2px; }
