/* ============================================================
   i-Pulse360 User Guide — Master Stylesheet
   Brand: Navy #1a237e | Teal #00897b | Red #c62828
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
    --navy: #1a237e;
    --navy-light: #283593;
    --teal: #00897b;
    --teal-light: #26a69a;
    --red: #c62828;
    --red-light: #ef5350;
    --gold: #f9a825;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #2c3e50;
    --text-light: #637381;
    --border: #e2e8f0;
    --sidebar-w: 300px;
    --topbar-h: 64px;
    --toc-w: 240px;
    --radius: 12px;
    --accent-gradient: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    --shadow: 0 2px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
    --transition: all .25s ease;
}

/* === RESET === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: var(--transition)
}

a:hover {
    color: var(--navy)
}

img {
    max-width: 100%;
    height: auto
}

ul,
ol {
    padding-left: 1.5em
}

/* === RTL BODY MODE === */
body.lang-ur #sidebar .nav-category,
body.lang-ur #sidebar .nav-item>a,
body.lang-ur #sidebar .nav-sub a {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', serif
}

body.lang-ur #sidebar .nav-item>a .arrow {
    margin-left: 0;
    margin-right: auto
}

body.lang-ur #sidebar .nav-item>a .nav-icon {
    margin-left: 10px;
    margin-right: 0
}

body.lang-ur #sidebar .nav-sub {
    padding-left: 0;
    padding-right: 20px
}

body.lang-ur #sidebar .nav-sub a {
    padding: 7px 30px 7px 20px
}

body.lang-ur #main .content-card p,
body.lang-ur #main .content-card li,
body.lang-ur #main .module-header .subtitle,
body.lang-ur #main .tip-box p,
body.lang-ur #main .warning-box p,
body.lang-ur #main .info-box p {
    font-family: 'Noto Nastaliq Urdu', serif;
    direction: rtl;
    text-align: right;
    line-height: 2.2
}

body.lang-ur #main .module-header h1 {
    direction: rtl;
    text-align: right;
    font-family: 'Noto Nastaliq Urdu', serif
}

body.lang-ur #main .breadcrumb {
    direction: rtl
}

body.lang-ur #main .step-item {
    padding: 16px 60px 16px 20px
}

body.lang-ur #main .step-item::before {
    left: auto;
    right: 16px
}

body.lang-ur .toc-page {
    direction: rtl;
    text-align: right
}

body.lang-ur .toc-page h1 {
    font-family: 'Noto Nastaliq Urdu', serif
}

body.lang-ur .toc-category-title {
    font-family: 'Noto Nastaliq Urdu', serif
}

body.lang-ur .toc-sub {
    padding-left: 0;
    padding-right: 40px
}

body.lang-ur .toc-sub a {
    border-left: none;
    border-right: 2px solid var(--border)
}

body.lang-ur .role-card p,
body.lang-ur .role-card h3 {
    font-family: 'Noto Nastaliq Urdu', serif
}

/* === URDU FONT === */
.urdu,
[lang="ur"] {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    direction: rtl;
    text-align: right;
    line-height: 2.2;
    font-size: 1.05em
}

/* ============================================================
   COVER PAGE
   ============================================================ */
#cover-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, #0d1b5e 40%, #0a1445 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#cover-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 137, 123, .15) 0%, transparent 70%);
    animation: coverPulse 8s ease-in-out infinite;
}

@keyframes coverPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .5
    }

    50% {
        transform: scale(1.2);
        opacity: .8
    }
}

#cover-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(198, 40, 40, .1) 0%, transparent 60%);
}

.cover-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 20px
}

.cover-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px
}

.cover-logos img {
    height: 110px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .3));
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    padding: 8px;
    transition: var(--transition)
}

.cover-logos img:hover {
    transform: scale(1.08)
}

.cover-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #b3e5fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.cover-tagline {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .7);
    margin-bottom: 48px;
    letter-spacing: 1px
}

.cover-doc-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 3px
}

.cover-version {
    font-size: .9rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 50px
}

.cover-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap
}

.cover-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.cover-btn.primary {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 137, 123, .4)
}

.cover-btn.primary:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 137, 123, .5)
}

.cover-btn.secondary {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px)
}

.cover-btn.secondary:hover {
    background: rgba(255, 255, 255, .2);
    transform: translateY(-2px)
}

.cover-heartbeat {
    display: inline-block;
    color: var(--red-light);
    animation: heartbeat 1.5s ease-in-out infinite
}

@keyframes heartbeat {
    0% {
        transform: scale(1)
    }

    14% {
        transform: scale(1.15)
    }

    28% {
        transform: scale(1)
    }

    42% {
        transform: scale(1.1)
    }

    70% {
        transform: scale(1)
    }
}

/* ============================================================
   TOP BAR
   ============================================================ */
#topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: none;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

body.guide-active #topbar {
    display: flex
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0
}

.topbar-logo img {
    height: 36px;
    width: 36px;
    border-radius: 50%
}

.topbar-logo span {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy)
}

.topbar-logo small {
    font-size: .65rem;
    color: var(--text-light);
    display: block;
    margin-top: -2px
}

#topbar .search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 auto
}

#topbar .search-box input {
    width: 100%;
    padding: 9px 16px 9px 40px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: .875rem;
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

#topbar .search-box input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 137, 123, .1)
}

#topbar .search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: .9rem
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0
}

.lang-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    font-size: .8rem;
}

.lang-toggle button {
    padding: 6px 14px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #fff;
    color: var(--text-light);
    transition: var(--transition)
}

.lang-toggle button.active {
    background: var(--navy);
    color: #fff
}

.topbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    font-size: .9rem;
}

.topbar-btn:hover {
    background: var(--bg);
    color: var(--navy)
}

#hamburger {
    display: none
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--topbar-h));
    background: #fff;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 900;
    display: none;
    transition: transform .3s ease;
}

body.guide-active #sidebar {
    display: block
}

#sidebar::-webkit-scrollbar {
    width: 4px
}

#sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border)
}

.sidebar-header h3 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    font-weight: 700
}

.nav-category {
    padding: 16px 20px 6px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--teal);
    font-weight: 700
}

.nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, .03)
}

.nav-item>a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text);
    font-size: .875rem;
    font-weight: 500;
    transition: var(--transition);
    gap: 10px;
}

.nav-item>a:hover {
    background: rgba(0, 137, 123, .05);
    color: var(--teal)
}

.nav-item>a .nav-icon {
    width: 20px;
    text-align: center;
    color: var(--teal);
    flex-shrink: 0;
    font-size: .9rem
}

.nav-item>a .arrow {
    margin-left: auto;
    transition: transform .2s ease;
    font-size: .7rem;
    color: var(--text-light)
}

.nav-item.open>a .arrow {
    transform: rotate(90deg)
}

.nav-item.active>a {
    background: linear-gradient(90deg, rgba(0, 137, 123, .08), transparent);
    color: var(--teal);
    border-left: 3px solid var(--teal);
    font-weight: 600
}

.nav-sub {
    display: none;
    padding-left: 20px;
    background: rgba(0, 0, 0, .01)
}

.nav-item.open>.nav-sub {
    display: block
}

.nav-sub a {
    display: block;
    padding: 7px 20px 7px 30px;
    font-size: .8rem;
    color: var(--text-light);
    transition: var(--transition)
}

.nav-sub a:hover,
.nav-sub a.active {
    color: var(--teal);
    background: rgba(0, 137, 123, .04)
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
#main {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h));
    padding: 32px 40px 60px;
    display: none;
    max-width: calc(100% - var(--sidebar-w));
}

body.guide-active #main {
    display: block
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-wrap: wrap
}

.breadcrumb a {
    color: var(--teal)
}

.breadcrumb .sep {
    color: var(--border)
}

/* Module Header */
.module-header {
    margin-bottom: 32px
}

.module-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px
}

.module-header .subtitle {
    font-size: 1rem;
    color: var(--text-light)
}

/* Content Cards */
.content-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.content-card:hover {
    box-shadow: var(--shadow-lg)
}

.content-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg)
}

.content-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy-light);
    margin: 18px 0 8px
}

.content-card p,
.content-card li {
    font-size: .92rem;
    line-height: 1.8;
    color: var(--text)
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-left: 4px solid var(--teal);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.tip-box .tip-title {
    font-weight: 700;
    color: var(--teal);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
    border-left: 4px solid var(--red);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.warning-box .warn-title {
    font-weight: 700;
    color: var(--red);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e3f2fd, #e8eaf6);
    border-left: 4px solid var(--navy);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin: 16px 0;
}

.info-box .info-title {
    font-weight: 700;
    color: var(--navy);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px
}

/* Steps */
.steps {
    counter-reset: step
}

.step-item {
    position: relative;
    padding: 16px 20px 16px 60px;
    margin-bottom: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    counter-increment: step;
}

.step-item::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    background: var(--teal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.role-badge.admin {
    background: #e8eaf6;
    color: var(--navy)
}

.role-badge.teacher {
    background: #e0f2f1;
    color: var(--teal)
}

.role-badge.parent {
    background: #fce4ec;
    color: #ad1457
}

.role-badge.student {
    background: #fff3e0;
    color: #e65100
}

.role-badge.accountant {
    background: #f3e5f5;
    color: #7b1fa2
}

/* Chapter Nav */
.chapter-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border)
}

.chapter-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    background: var(--bg);
    font-weight: 600;
    font-size: .875rem;
    transition: var(--transition);
}

.chapter-nav a:hover {
    background: var(--teal);
    color: #fff
}

/* Reading Progress */
#progress-bar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    z-index: 1001;
    transition: width .1s linear;
    width: 0
}

/* ============================================================
   TABLE OF CONTENTS PAGE
   ============================================================ */
.toc-page {
    max-width: 900px;
    margin: 0 auto
}

.toc-page h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin-bottom: 32px
}

.toc-category {
    margin-bottom: 28px
}

.toc-category-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--teal);
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-module {
    margin-bottom: 8px
}

.toc-module>a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: var(--card);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    transition: var(--transition);
    gap: 10px;
}

.toc-module>a:hover {
    border-color: var(--teal);
    background: rgba(0, 137, 123, .03);
    color: var(--teal)
}

.toc-module>a .toc-icon {
    color: var(--teal);
    width: 24px;
    text-align: center
}

.toc-module>a .toc-page-num {
    margin-left: auto;
    font-size: .8rem;
    color: var(--text-light)
}

.toc-sub {
    padding-left: 40px;
    margin-top: 4px
}

.toc-sub a {
    display: block;
    padding: 4px 12px;
    font-size: .85rem;
    color: var(--text-light);
    border-left: 2px solid var(--border);
    transition: var(--transition)
}

.toc-sub a:hover {
    color: var(--teal);
    border-color: var(--teal)
}

/* ============================================================
   ROLE SELECTOR
   ============================================================ */
.role-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0
}

.role-card {
    width: 180px;
    padding: 28px 20px;
    background: var(--card);
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.role-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg)
}

.role-card .role-icon {
    font-size: 2.5rem;
    margin-bottom: 12px
}

.role-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px
}

.role-card p {
    font-size: .8rem;
    color: var(--text-light)
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 999;
}

#search-results .sr-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg);
    cursor: pointer;
    transition: var(--transition)
}

#search-results .sr-item:hover {
    background: rgba(0, 137, 123, .05)
}

#search-results .sr-item h4 {
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px
}

#search-results .sr-item p {
    font-size: .78rem;
    color: var(--text-light)
}

#search-results .sr-item mark {
    background: rgba(0, 137, 123, .2);
    color: var(--teal);
    padding: 0 2px;
    border-radius: 2px
}

/* ============================================================
   BOOKMARKS PANEL
   ============================================================ */
#bookmarks-panel {
    position: fixed;
    top: var(--topbar-h);
    right: -320px;
    width: 300px;
    height: calc(100vh - var(--topbar-h));
    background: #fff;
    border-left: 1px solid var(--border);
    z-index: 950;
    transition: right .3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .08);
    overflow-y: auto;
    padding: 20px;
}

#bookmarks-panel.open {
    right: 0
}

#bookmarks-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.bookmark-item {
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition)
}

.bookmark-item:hover {
    background: rgba(0, 137, 123, .08)
}

.bookmark-item h4 {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text)
}

.bookmark-item small {
    font-size: .75rem;
    color: var(--text-light)
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox.show {
    display: flex
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5)
}

#lightbox .close-lb {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px) {
    #sidebar {
        transform: translateX(-100%)
    }

    #sidebar.open {
        transform: translateX(0)
    }

    #main {
        margin-left: 0;
        max-width: 100%;
        padding: 24px 20px 60px
    }

    #hamburger {
        display: flex
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        z-index: 899;
        display: none
    }

    .sidebar-overlay.show {
        display: block
    }
}

@media(max-width:600px) {
    .cover-title {
        font-size: 2rem
    }

    .cover-logos img {
        height: 70px
    }

    .cover-actions {
        flex-direction: column;
        align-items: center
    }

    .role-selector {
        gap: 12px
    }

    .role-card {
        width: 140px;
        padding: 20px 14px
    }

    .chapter-nav {
        flex-direction: column;
        gap: 10px
    }

    .chapter-nav a {
        justify-content: center
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {

    #topbar,
    #sidebar,
    #progress-bar,
    #bookmarks-panel,
    .topbar-actions,
    .chapter-nav,
    #hamburger,
    .sidebar-overlay {
        display: none !important
    }

    #main {
        margin: 0 !important;
        padding: 20px !important;
        max-width: 100% !important
    }

    .content-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid
    }

    body {
        background: #fff
    }

    .cover-content {
        page-break-after: always
    }
}