/* /Components/Layout/MainLayout.razor.rz.scp.css */
[b-aw570nlfn0] .nav-link-active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

#blazor-error-ui[b-aw570nlfn0] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-aw570nlfn0] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-i8bdac5fjc],
.components-reconnect-repeated-attempt-visible[b-i8bdac5fjc],
.components-reconnect-failed-visible[b-i8bdac5fjc],
.components-pause-visible[b-i8bdac5fjc],
.components-resume-failed-visible[b-i8bdac5fjc],
.components-rejoining-animation[b-i8bdac5fjc] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-i8bdac5fjc],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-i8bdac5fjc],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-i8bdac5fjc],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-i8bdac5fjc],
#components-reconnect-modal.components-reconnect-retrying[b-i8bdac5fjc],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-i8bdac5fjc],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-i8bdac5fjc],
#components-reconnect-modal.components-reconnect-failed[b-i8bdac5fjc],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-i8bdac5fjc] {
    display: block;
}


#components-reconnect-modal[b-i8bdac5fjc] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-i8bdac5fjc 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-i8bdac5fjc 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-i8bdac5fjc 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-i8bdac5fjc]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-i8bdac5fjc 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-i8bdac5fjc {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-i8bdac5fjc {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-i8bdac5fjc {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-i8bdac5fjc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-i8bdac5fjc] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-i8bdac5fjc] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-i8bdac5fjc] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-i8bdac5fjc] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-i8bdac5fjc] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-i8bdac5fjc] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-i8bdac5fjc 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-i8bdac5fjc] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-i8bdac5fjc {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Layout/TopBar.razor.rz.scp.css */
[b-q1d1b9exb7] .nav-link-active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
/* /Components/Pages/Chapters/ChapterPage.razor.rz.scp.css */
/* ===== Full-width breakout from MudContainer ===== */
.chapter-fullwidth[b-whiboowiki] {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -24px;
}

/* ===== 2-column flat grid: sidebar | split-panel ===== */
[b-whiboowiki] .chapter-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    padding: 0;
    height: calc(100vh - 64px);
    overflow: hidden;
    position: relative;
    transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[b-whiboowiki] .chapter-grid.sidebar-collapsed {
    grid-template-columns: 0px 1fr;
}

/* ===== Toggle button ===== */
[b-whiboowiki] .sidebar-toggle-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.15s ease;
}

[b-whiboowiki] .sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

[b-whiboowiki] .chapter-grid:not(.sidebar-collapsed) .sidebar-toggle-btn {
    left: 240px;
}

/* ===== Sidebar ===== */
[b-whiboowiki] .chapter-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--mud-palette-surface);
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    min-width: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

[b-whiboowiki] .sidebar-collapsed .chapter-sidebar {
    opacity: 0;
    pointer-events: none;
}

[b-whiboowiki] .sidebar-header {
    padding: 10px 12px 6px;
    position: sticky;
    top: 0;
    background: var(--mud-palette-surface);
    z-index: 1;
}

[b-whiboowiki] .sidebar-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
}

[b-whiboowiki] .sidebar-topics {
    padding: 4px 0;
    overflow-y: auto;
    flex: 1;
}

[b-whiboowiki] .topic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid transparent;
    transition: background 0.1s ease, color 0.1s ease;
}

[b-whiboowiki] .topic-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

[b-whiboowiki] .topic-item.active {
    background: rgba(124, 58, 237, 0.12);
    border-left-color: #7c3aed;
    color: #e2e0ff;
}

[b-whiboowiki] .topic-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

[b-whiboowiki] .topic-status {
    min-width: 24px;
    flex-shrink: 0;
}

/* ===== Sidebar overlay — hidden on desktop ===== */
[b-whiboowiki] .sidebar-overlay {
    display: none;
}

/* ===== Split panel ===== */
[b-whiboowiki] .split-panel {
    height: 100%;
    border-radius: 0 !important;
}

/* ===== Split divider — subtle dark border ===== */
[b-whiboowiki] .split-divider {
    background: rgba(255, 255, 255, 0.08) !important;
    cursor: col-resize;
}

/* ===== Video section ===== */
[b-whiboowiki] .video-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    background: #121212;
}

/* ===== Shared center layout for placeholders ===== */
[b-whiboowiki] .section-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

/* ===== Breadcrumb navigation ===== */
[b-whiboowiki] .video-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 24px 12px 48px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

[b-whiboowiki] .breadcrumb-item {
    cursor: default;
    transition: color 0.15s ease;
}

[b-whiboowiki] .breadcrumb-item:hover {
    color: #7c3aed;
}

[b-whiboowiki] .breadcrumb-item.current {
    color: rgba(255, 255, 255, 0.6);
    cursor: default;
}

[b-whiboowiki] .breadcrumb-item.current:hover {
    color: rgba(255, 255, 255, 0.6);
}

[b-whiboowiki] .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

/* ===== Video player container ===== */
[b-whiboowiki] .video-player-container {
    padding: 0 24px;
    min-width: 600px;
}

[b-whiboowiki] .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

[b-whiboowiki] .video-player {
    width: 100%;
    height: 100%;
    display: block;
}

/* Purple accent on video controls — Webkit */
[b-whiboowiki] .video-player::-webkit-media-controls-timeline {
    accent-color: #7c3aed;
}

[b-whiboowiki] .video-player::-webkit-media-controls-volume-slider {
    accent-color: #7c3aed;
}

/* Purple accent on video controls — Firefox */
[b-whiboowiki] .video-player::-moz-range-thumb {
    background: #7c3aed;
}

[b-whiboowiki] .video-player::-moz-range-progress {
    background: #7c3aed;
}

/* ===== Title & metadata ===== */
[b-whiboowiki] .video-meta {
    padding: 16px 24px 0;
}

[b-whiboowiki] .video-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.3;
}

[b-whiboowiki] .video-subtitle {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== Description area ===== */
[b-whiboowiki] .video-description {
    padding: 12px 24px 0;
}

[b-whiboowiki] .description-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[b-whiboowiki] .description-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

[b-whiboowiki] .show-more-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.15s ease;
}

[b-whiboowiki] .show-more-btn:hover {
    color: #7c3aed;
}

/* ===== Notes placeholder ===== */
[b-whiboowiki] .video-notes-placeholder {
    padding: 0 24px;
}

/* ===== Chat section ===== */
[b-whiboowiki] .chat-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

[b-whiboowiki] .chat-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[b-whiboowiki] .chat-input {
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Mobile: < 960px ===== */
@media (max-width: 959.98px) {
    .chapter-fullwidth[b-whiboowiki] {
        margin-top: -24px;
    }

    [b-whiboowiki] .chapter-grid,
    [b-whiboowiki] .chapter-grid.sidebar-collapsed {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        padding: 0;
        gap: 0;
        overflow-y: auto;
    }

    /* Sidebar: fixed drawer from left */
    [b-whiboowiki] .chapter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 80vw;
        z-index: 1300;
        border-radius: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    box-shadow 0.3s ease;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
    }

    [b-whiboowiki] .chapter-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    [b-whiboowiki] .sidebar-collapsed .chapter-sidebar {
        opacity: 1;
        pointer-events: auto;
    }

    /* Overlay backdrop */
    [b-whiboowiki] .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1299;
        animation: fadeIn-b-whiboowiki 0.25s ease;
    }

    @keyframes fadeIn-b-whiboowiki {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Toggle button repositioned for mobile */
    [b-whiboowiki] .sidebar-toggle-btn {
        position: fixed;
        top: 72px;
        left: 8px;
        z-index: 100;
    }

    [b-whiboowiki] .chapter-grid:not(.sidebar-collapsed) .sidebar-toggle-btn {
        left: 8px;
    }

    /* Split panel stacks vertically on mobile */
    [b-whiboowiki] .split-panel {
        height: auto;
    }

    /* Video section auto-sized on mobile */
    [b-whiboowiki] .video-section {
        height: auto;
        min-height: 200px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    [b-whiboowiki] .video-player-container {
        min-width: 0;
        padding: 0 16px;
    }

    [b-whiboowiki] .chat-section {
        height: calc(60vh - 56px - 36px);
        min-height: 250px;
    }
}

/* ===== Scrollbar ===== */
[b-whiboowiki] .sidebar-topics::-webkit-scrollbar {
    width: 4px;
}

[b-whiboowiki] .sidebar-topics::-webkit-scrollbar-track {
    background: transparent;
}

[b-whiboowiki] .sidebar-topics::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

[b-whiboowiki] .sidebar-topics::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
