/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-y77n1e28dp] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-y77n1e28dp] {
    flex: 1;
}

.sidebar[b-y77n1e28dp] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-y77n1e28dp] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-y77n1e28dp]  a, .top-row[b-y77n1e28dp]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-y77n1e28dp]  a:hover, .top-row[b-y77n1e28dp]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-y77n1e28dp]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-y77n1e28dp] {
        justify-content: space-between;
    }

    .top-row[b-y77n1e28dp]  a, .top-row[b-y77n1e28dp]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-y77n1e28dp] {
        flex-direction: row;
    }

    .sidebar[b-y77n1e28dp] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-y77n1e28dp] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-y77n1e28dp]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-y77n1e28dp], article[b-y77n1e28dp] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-bz8mkii7gy] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-bz8mkii7gy] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-bz8mkii7gy] {
    font-size: 1.1rem;
}

.bi[b-bz8mkii7gy] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-bz8mkii7gy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-bz8mkii7gy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-bz8mkii7gy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-book-fill-nav-menu[b-bz8mkii7gy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-book-fill' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z'/%3E%3C/svg%3E");
}

.bi-gear-fill-nav-menu[b-bz8mkii7gy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-gear-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}

.nav-item[b-bz8mkii7gy] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-bz8mkii7gy] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-bz8mkii7gy] {
        padding-bottom: 1rem;
    }

    .nav-item[b-bz8mkii7gy]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-bz8mkii7gy]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-bz8mkii7gy]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.app-version[b-bz8mkii7gy] {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    padding: 5px;
}

@media (min-width: 641px) {
    .navbar-toggler[b-bz8mkii7gy] {
        display: none;
    }

    .collapse[b-bz8mkii7gy] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-bz8mkii7gy] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Book/BookStructure.razor.rz.scp.css */
.book-structure-container[b-hw5mi48i1v] {
    max-width: 1200px;
    margin: 0 auto;
}

.chapter-card[b-hw5mi48i1v] {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.chapter-card:hover[b-hw5mi48i1v] {
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chapter-card[draggable="true"][b-hw5mi48i1v] {
    cursor: move;
}

.chapter-header[b-hw5mi48i1v] {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 6px 6px 0 0;
}

.chapter-number[b-hw5mi48i1v] {
    color: #6f42c1;
    font-weight: 600;
    margin-right: 0.5rem;
}

.chapter-title[b-hw5mi48i1v] {
    color: #212529;
    font-weight: 600;
}

.drag-handle[b-hw5mi48i1v] {
    color: #adb5bd;
    font-size: 1.2rem;
    cursor: grab;
}

.drag-handle:active[b-hw5mi48i1v] {
    cursor: grabbing;
}

.sections-container[b-hw5mi48i1v] {
    padding: 0.5rem 0;
    background: white;
}

.section-item[b-hw5mi48i1v] {
    padding: 0.75rem 1.25rem;
    padding-left: 3rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    cursor: move;
    display: flex;
    align-items: center;
    position: relative;
}

.subsection-item[b-hw5mi48i1v] {
    padding: 0.75rem 1.25rem;
    padding-left: 4.5rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    cursor: move;
    display: flex;
    align-items: center;
    position: relative;
    background: #fafbfc;
}

.subsection-drop-zone[b-hw5mi48i1v] {
    transition: all 0.2s ease;
    position: relative;
}

.subsection-drop-zone.drop-target[b-hw5mi48i1v] {
    min-height: 20px !important;
    background: rgba(157, 92, 255, 0.1);
    border: 2px dashed #9d5cff;
    border-radius: 4px;
    margin: 4px 0;
}

.subsection-drop-zone.drop-target[b-hw5mi48i1v]::before {
    content: '+ Drop here to add as subsection';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #9d5cff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.section-item:hover[b-hw5mi48i1v] {
    background: #f8f9fa;
    border-left-color: #6f42c1;
}

.subsection-item:hover[b-hw5mi48i1v] {
    background: #f1f3f5;
    border-left-color: #9d5cff;
}

.section-number[b-hw5mi48i1v] {
    color: #6c757d;
    font-weight: 500;
    margin-right: 0.5rem;
    min-width: 2rem;
}

.section-title[b-hw5mi48i1v] {
    color: #495057;
}

/* Drag states */
.chapter-card.dragging[b-hw5mi48i1v] {
    opacity: 0.4;
    border-color: #6f42c1;
    transform: scale(0.98);
}

.section-item.dragging[b-hw5mi48i1v],
.subsection-item.dragging[b-hw5mi48i1v] {
    opacity: 0.4;
    background: #e9ecef;
}

.chapter-card:not(.dragging):hover[b-hw5mi48i1v] {
    background: #f8f9ff;
    border-color: #6f42c1;
    border-style: solid;
    border-width: 2px;
    cursor: pointer;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.2);
}

.section-item:not(.dragging):hover[b-hw5mi48i1v] {
    border-left-color: #6f42c1;
    border-left-width: 5px;
    background: #f8f9ff;
    cursor: pointer;
    padding-left: 2.85rem;
}

.subsection-item:not(.dragging):hover[b-hw5mi48i1v] {
    border-left-color: #9d5cff;
    border-left-width: 5px;
    background: #f8f9ff;
    cursor: pointer;
    padding-left: 4.35rem;
}

/* Drop target indicators */
.chapter-card[b-hw5mi48i1v]::before,
.section-item[b-hw5mi48i1v]::before,
.subsection-item[b-hw5mi48i1v]::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

/* Show drop line when this item is the drop target */
.chapter-card.drop-target[b-hw5mi48i1v]::before {
    top: -4px;
    height: 6px;
    background: linear-gradient(90deg, #6f42c1, #9d5cff);
    box-shadow: 0 0 12px rgba(111, 66, 193, 0.8), 0 0 20px rgba(111, 66, 193, 0.4);
    animation: pulse-line-b-hw5mi48i1v 0.6s ease-in-out infinite alternate;
}

.section-item.drop-target[b-hw5mi48i1v]::before {
    top: -3px;
    height: 5px;
    background: linear-gradient(90deg, #6f42c1, #9d5cff);
    left: 3rem;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.8), 0 0 16px rgba(111, 66, 193, 0.4);
    animation: pulse-line-b-hw5mi48i1v 0.6s ease-in-out infinite alternate;
}

.subsection-item.drop-target[b-hw5mi48i1v]::before {
    top: -3px;
    height: 5px;
    background: linear-gradient(90deg, #9d5cff, #b794f6);
    left: 4.5rem;
    box-shadow: 0 0 10px rgba(157, 92, 255, 0.8), 0 0 16px rgba(157, 92, 255, 0.4);
    animation: pulse-line-b-hw5mi48i1v 0.6s ease-in-out infinite alternate;
}

/* Legacy hover states (less prominent now) */
.chapter-card:not(.dragging):hover[b-hw5mi48i1v]::before {
    top: -4px;
    height: 6px;
    background: linear-gradient(90deg, #6f42c1, #9d5cff);
    box-shadow: 0 0 12px rgba(111, 66, 193, 0.8), 0 0 20px rgba(111, 66, 193, 0.4);
    animation: pulse-line-b-hw5mi48i1v 0.6s ease-in-out infinite alternate;
}

.section-item:not(.dragging):hover[b-hw5mi48i1v]::before {
    top: -3px;
    height: 5px;
    background: linear-gradient(90deg, #6f42c1, #9d5cff);
    left: 3rem;
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.8), 0 0 16px rgba(111, 66, 193, 0.4);
    animation: pulse-line-b-hw5mi48i1v 0.6s ease-in-out infinite alternate;
}

.subsection-item:not(.dragging):hover[b-hw5mi48i1v]::before {
    top: -3px;
    height: 5px;
    background: linear-gradient(90deg, #9d5cff, #b794f6);
    left: 4.5rem;
    box-shadow: 0 0 10px rgba(157, 92, 255, 0.8), 0 0 16px rgba(157, 92, 255, 0.4);
    animation: pulse-line-b-hw5mi48i1v 0.6s ease-in-out infinite alternate;
}

@keyframes pulse-line-b-hw5mi48i1v {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}
/* /Pages/Book/Components/BookReader.razor.rz.scp.css */
/* Table of Contents Styles */

.section-list[b-uq5xphnrfe] {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.section-list > li[b-uq5xphnrfe] {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.subsection-list[b-uq5xphnrfe] {
    list-style: none;
    padding-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.subsection-list > li[b-uq5xphnrfe] {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.subsection-list > li > a[b-uq5xphnrfe] {
    color: #6c757d;
}

.subsection-list > li > a:hover[b-uq5xphnrfe] {
    color: #6f42c1;
}

/* Section and Subsection Heading Styles */
.section h2[b-uq5xphnrfe] {
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.subsection h3[b-uq5xphnrfe] {
    font-size: 1.65rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}
