/* MudDrawer sets overflow-y:auto only, which forces the browser to compute overflow-x as auto too (CSS spec), so collapsed nav item labels wider than the mini width trigger an internal x-scrollbar; clip it explicitly */
.mud-drawer {
    overflow-x: hidden;
}

.mud-layout {
    overflow-x: hidden;
}

/* Custom Padding */
.p-16 {
    padding-left: 16px !important;
}

/* PDF Viewer */
.pdf-learning-material-viewer {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 70vh;
    min-height: 0;
}

.pdf-viewer-toolbar {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.pdf-viewer-container {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: auto;
    padding: 24px;
}

.pdf-page-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.pdf-page {
    display: block;
    max-width: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Before blazor takes over ensure loading mathces theme colors */
html,
body,
#app {
    min-height: 100%;
    margin: 0;
}

html,
body {
    background-color: #ffffff;
}

@media (prefers-color-scheme: dark) {
    html,
    body {
        background-color: #121212;
    }
}