@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import 'site-custom.css';

:root,
[data-bs-theme="light"] {
    --neutral-layer-1: #f8f9fa;
    --neutral-layer-2: #ffffff;
    --neutral-layer-4: #f1f3f5;
    --neutral-foreground-rest: #212529;
    --neutral-foreground-hint: #6c757d;
    --neutral-foreground-hover: #000000;
    --neutral-stroke-rest: #ced4da;
    --neutral-stroke-divider-rest: #dee2e6;
    --neutral-fill-stealth-rest: #e9ecef;
    --accent-fill-rest: #0d6efd;
    --fill-color: #ffffff;
    --error: #dc3545;
    --type-ramp-minus-1-font-size: 0.75rem;
    --type-ramp-base-font-size: 0.875rem;
    --type-ramp-base-line-height: 1.4;
    --type-ramp-plus-1-font-size: 1rem;
    --type-ramp-plus-1-line-height: 1.5;
    --design-unit: 4;
}

[data-bs-theme="dark"] {
    --neutral-layer-1: #121417;
    --neutral-layer-2: #1c1f24;
    --neutral-layer-4: #0f1114;
    --neutral-foreground-rest: #e9ecef;
    --neutral-foreground-hint: #adb5bd;
    --neutral-foreground-hover: #ffffff;
    --neutral-stroke-rest: #495057;
    --neutral-stroke-divider-rest: #343a40;
    --neutral-fill-stealth-rest: #2b3035;
    --accent-fill-rest: #0d6efd;
    --fill-color: #1c1f24;
    --error: #ea868f;
}

@font-face {
    font-family: 'MV Faseyha';
    src: url('../fonts/MV_Faseyha.otf') format('opentype');
}

@font-face {
    font-family: 'MV Waheed';
    src: url('../fonts/mv_waheed.otf') format('opentype');
}

.toast-container,
.toast-container.app-toasts {
    /* Above Bootstrap modals */
    z-index: 200000 !important;
    position: fixed !important;
    pointer-events: none;
}

.toast-container.app-toasts .toast {
    pointer-events: auto;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, 'MV Faseyha';
    height: 100%;
    overflow: hidden;
    background-color: var(--neutral-layer-1);
    color: var(--neutral-foreground-rest);
}

.app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.app-footer {
    height: 30px;
    font-size: var(--type-ramp-minus-1-font-size);
    background: var(--neutral-layer-4);
    flex-shrink: 0;
}

.body-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    background: var(--neutral-layer-1);
    min-width: 0;
}


/* Elegant Global Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--neutral-stroke-rest);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-fill-rest);
}

body:has(.loading-progress)::after {
    content: "";
    background-image: url("/logo.svg");
    background-position: right bottom;
    background-size: 50%;
    background-repeat: no-repeat;
    opacity: 0.2;
    top: 0;
    left: 0;
    bottom: 15px;
    right: 15px;
    position: absolute;
    z-index: -1;
}

blockquote p:last-child {
    margin-bottom: 0;
}

.home div[sm="4"],
.home div[sm="6"],
.home div[sm="8"] {
    border-bottom: 1px solid var(--neutral-stroke-divider-rest) !important;
}

.siteheader {
    background-color: var(--neutral-layer-1) !important;
    --fill-color: var(--neutral-layer-1) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--neutral-stroke-divider-rest) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 0 !important;
    isolation: isolate;
    padding: 0;
    height: 52px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.siteheader-inner {
    padding: 0 16px;
    height: 100%;
    gap: 8px;
    min-width: 0;
}

.siteheader-actions {
    gap: 8px;
    min-width: 0;
}

.siteheader > a,
.siteheader .navbar-brand {
    color: var(--neutral-foreground-rest);
    display: flex;
    align-items: center;
}

.siteheader .logo {
    width: auto;
    height: 28px;
    max-width: 120px;
    object-fit: contain;
    mix-blend-mode: difference;
}

.siteheader .env-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0.28em 0.55em;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.siteheader .user-avatar {
    width: 32px;
    height: 32px;
    font-size: .85rem;
}

.siteheader .user-name {
    max-width: 160px;
}

.account-dropdown {
    min-width: 280px;
}

/* Menu Toggle Button styling */
.menu-toggle-btn {
    transition: transform 0.2s ease;
}
.menu-toggle-btn:hover {
    transform: scale(1.05);
}

.siteheader .search {
    display: flex;
    align-items: center;
    padding-right: 20px;
}

.siteheader .links {
    padding-right: 10px;
    display: flex;
    align-items: center;
}

.siteheader .notifications {
    display: flex;
    align-items: center;
}

.siteheader .settings {
    padding-right: 6px;
    display: flex;
    align-items: center;
    margin-left: 0;
    margin-right: 10px;
}

.siteheader .notifications,
.siteheader .settings,
.siteheader .auth-buttons {
    color: var(--neutral-foreground-rest);
}

/* Subtle micro-animations for header actions */
.siteheader .notifications .btn,
.siteheader .settings .btn,
.siteheader .auth-buttons .login-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.siteheader .notifications .btn:hover,
.siteheader .settings .btn:hover,
.siteheader .auth-buttons .login-link:hover {
    transform: translateY(-1px);
    opacity: 0.85;
}

[dir="rtl"] .siteheader .settings {
    padding: 0 0 0 6px;
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .siteheader .search {
    padding-left: 20px;
    padding-right: 0;
}

[dir="rtl"] .siteheader .links {
    padding-left: 10px;
}

.search-result-icon {
    vertical-align: middle;
}

/* Modern Body & Sidebar Layout */
.body-stack {
    flex-direction: row;
    flex: 1 1 auto;
    height: calc(100vh - 52px - 30px); /* header and footer height */
    height: calc(100dvh - 52px - 30px);
    overflow: hidden;
    min-height: 0;
}

.app-footer {
    background: var(--neutral-layer-4);
    color: var(--neutral-foreground-rest);
    border-top: 1px solid var(--neutral-stroke-divider-rest);
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: var(--type-ramp-minus-1-font-size);
    height: 30px;
    flex-shrink: 0;
}

.app-footer-inner {
    min-width: 0;
    height: 100%;
}

.app-footer a {
    color: var(--accent-fill-rest);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.app-footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.mobile-menu-backdrop {
    display: none;
}

/* Sidebar Styling */
nav.sitenav {
    height: 100%;
    overflow-y: auto;
    background: var(--neutral-layer-2);
    border-right: 1px solid var(--neutral-stroke-divider-rest);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    scrollbar-width: thin;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    z-index: 10;
    box-sizing: border-box;
    padding: 0 !important;
}

nav.sitenav fluent-nav-menu,
nav.sitenav .fluent-nav-menu,
nav.sitenav fluent-nav-link,
nav.sitenav .fluent-nav-link,
nav.sitenav fluent-nav-group,
nav.sitenav .fluent-nav-group {
    margin: 0 !important;
    padding: 0 !important;
}

/* Desktop layout using flex flow for content spacing and absolute positioning for overlays on hover */
@media (min-width: 768px) {
    .body-stack {
        position: relative;
        transition: padding-left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    /* When layout is collapsed, add padding to parent stack to reserve space, 
       and make sitenav absolute */
    .body-stack.menu-collapsed {
        padding-left: 60px;
    }
    
    .body-stack.menu-collapsed nav.sitenav {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
    
    /* When layout is collapsed and hovered, expand the absolute sitenav container */
    .body-stack.menu-collapsed nav.sitenav.hover-expanded {
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
        box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
        z-index: 100;
    }
    
    /* When collapsed and not hovered, hide all text/headers and collapse buttons */
    .body-stack.menu-collapsed nav.sitenav:not(.hover-expanded) h2,
    .body-stack.menu-collapsed nav.sitenav:not(.hover-expanded) .nav-text,
    .body-stack.menu-collapsed nav.sitenav:not(.hover-expanded) .custom-nav-text,
    .body-stack.menu-collapsed nav.sitenav:not(.hover-expanded) .custom-nav-arrow-wrapper {
        display: none !important;
    }
}

nav h2 {
    font-size: var(--type-ramp-plus-1-font-size);
    line-height: var(--type-ramp-plus-1-line-height);
    padding: 15px 16px;
    margin: 0;
    pointer-events: none;
    font-weight: 600;
}

nav h3 {
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    padding: 8px 0;
    margin: 0;
    pointer-events: none;
    font-weight: 500;
}

nav fluent-anchor {
    width: 100%;
    color: var(--fill-color);
}

nav fluent-anchor::part(control) {
    justify-content: start;
    background: var(--accent-fill-rest);
}

.fluent-nav-link.notactive .fluent-nav-text {
    font-weight: 500 !important;
}

/* Content Container Styling */
.content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

ul.news {
    padding-left: 0;
    list-style-type: none;
}

ul.news li {
    display: flex;
    gap: calc(var(--design-unit) * 2px);
    align-items: center;
    padding-bottom: calc(var(--design-unit) * 2px);
}

.news a {
    font-size: var(--type-ramp-plus-1-font-size);
    line-height: var(--type-ramp-plus-1-line-height);
    font-weight: 600;
    text-decoration: none;
}

#body-content,
.body-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    background: var(--neutral-layer-1);
    min-width: 0;
}

aside {
    padding: 1.5rem 1rem;
    top: 0px;
    height: 100vh;
    position: sticky;
    width: 18rem;
    max-height: 100%;
    overflow-y: auto;
}

#color {
    margin-right: 10px;
    margin-left: 0;
}

[dir="rtl"] #color {
    margin-left: 10px;
    margin-right: 0;
}


label {
    color: var(--neutral-foreground-rest);
    cursor: pointer;
}

.shell,
.sourceCode {
    background: var(--neutral-stroke-layer-rest);
    padding: 7px;
}

code {
    background: var(--neutral-stroke-layer-rest);
}

.demopanel {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}

.highlighted {
    background-color: var(--accent-stroke-control-active);
}

.highlighted>td {
    color: var(--neutral-fill-inverse-rest);
}


kbd {
    padding: 0.10rem 0.25rem;
    font-size: 0.875em;
    color: var(--neutral-foreground-rest);
    background-color: var(--neutral-fill-secondary-rest);
    border-radius: 0.25rem;
    border: 1px solid var(--accent-fill-rest);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
    color: var(--neutral-foreground-rest);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    border: 1px dashed var(--error);
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNDgnIGhlaWdodD0nNDgnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIG92ZXJmbG93PSdoaWRkZW4nIGZpbGw9JyNCQzJGMzInPjxwYXRoIGQ9J00yNCA0YTIwIDIwIDAgMSAwIDAgNDAgMjAgMjAgMCAwIDAgMC00MFptMCA5Yy42OSAwIDEuMjUuNTYgMS4yNSAxLjI1djEyLjVhMS4yNSAxLjI1IDAgMSAxLTIuNSAwdi0xMi41YzAtLjY5LjU2LTEuMjUgMS4yNS0xLjI1Wm0wIDIxYTIgMiAwIDEgMSAwLTQgMiAyIDAgMCAxIDAgNFonPjwvcGF0aD48L3N2Zz4=") no-repeat 1rem/1.8rem;
    padding: 1rem 1rem 1rem 3.7rem;
}

.blazor-error-boundary::before {
    content: "An error has occurred: "
}

/* Loading progress indicator */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

#logo-anim path:nth-child(1) {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    stroke-width: 1.25em;
    fill: #682A7B;
    fill-opacity: 0.1;
    animation: line-anim 2s ease forwards, fill-anim 1s ease forwards 1.5s;
}

#logo-anim path:nth-child(2) {
    stroke-width: 1.25em;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    fill: #4A81C3;
    fill-opacity: 0.1;
    animation: line-anim 2s ease forwards, fill-anim 3s ease forwards 1.2s;
}

@keyframes line-anim {
    to {
        stroke-dashoffset: 0;
        stroke-width: 0;
    }
}

@keyframes fill-anim {
    from {
        fill-opacity: 0.1;
    }

    to {
        fill-opacity: 1;
    }
}

.loading-progress-text {
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading...");
}

.loading-info {
    margin-top: 1em;
    text-align: center;
    font-size: 1.5em;
}

.loading-info a {
    color: var(--neutral-foreground-rest);
}

.loading-info a:hover {
    color: var(--neutral-foreground-hover);
}

/* Responsive Styles — mobile first additions; desktop rules stay in min-width: 768px blocks */
@media (max-width: 767.98px) {
    .app-shell {
        height: 100dvh;
        max-height: 100dvh;
    }

    .siteheader {
        padding: 0;
        height: 52px;
        flex-shrink: 0;
    }

    .siteheader-inner {
        padding: 0 10px;
        height: 100%;
        gap: 4px;
        min-width: 0;
    }

    .siteheader .navbar-brand {
        margin-right: 0;
        min-width: 0;
        margin-inline-end: 0.25rem;
    }

    .siteheader .logo {
        width: auto;
        height: 22px;
        max-width: 96px;
        object-fit: contain;
    }

    .siteheader .search {
        display: none !important;
    }

    .siteheader-actions {
        gap: 2px;
        min-width: 0;
    }

    .siteheader .settings {
        margin-right: 0;
        padding-right: 0;
        gap: 0;
    }

    .siteheader .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .menu-toggle-btn {
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .body-stack {
        height: calc(100dvh - 52px - 36px);
        position: relative;
        overflow: hidden;
        flex: 1 1 auto;
        min-height: 0;
    }

    /* Off-canvas drawer: closed by default via transform (desktop width rules don't apply here) */
    nav.sitenav {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1040;
        width: min(300px, 86vw) !important;
        min-width: min(300px, 86vw) !important;
        max-width: min(300px, 86vw) !important;
        background: var(--neutral-layer-2);
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18);
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .body-stack.menu-expanded nav.sitenav {
        transform: translateX(0);
    }

    /* Do not use desktop collapsed icon-rail sizing on mobile */
    .body-stack.menu-collapsed nav.sitenav {
        position: absolute;
        left: 0;
        width: min(300px, 86vw) !important;
        min-width: min(300px, 86vw) !important;
        max-width: min(300px, 86vw) !important;
        padding-left: 0;
    }

    .body-stack.menu-collapsed {
        padding-left: 0 !important;
    }

    /* On mobile open drawer, always show full labels (ignore desktop rail-collapsed text hiding) */
    .body-stack.menu-expanded nav.sitenav .custom-nav-text,
    .body-stack.menu-expanded nav.sitenav .custom-nav-arrow-wrapper {
        display: flex !important;
    }

    .body-stack.menu-expanded nav.sitenav .custom-nav-text {
        display: block !important;
    }

    .body-stack.menu-expanded nav.sitenav .custom-nav-link,
    .body-stack.menu-expanded nav.sitenav .custom-nav-group-header {
        justify-content: flex-start;
        padding: 0 10px;
        min-height: 44px;
        height: auto;
    }

    .body-stack.menu-expanded nav.sitenav .custom-nav-icon-wrapper {
        margin-right: 12px;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 52px 0 0 0;
        background: rgba(15, 17, 20, 0.45);
        z-index: 1035;
        -webkit-tap-highlight-color: transparent;
        animation: mobileBackdropIn 0.2s ease both;
    }

    @keyframes mobileBackdropIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .body-content {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow-x: auto;
        box-sizing: border-box;
    }

    .page-transition {
        max-width: 100%;
        min-width: 0;
    }

    /* Compact page chrome */
    .content > .d-flex.flex-column.gap-3 {
        gap: 0.75rem !important;
    }

    .content h1,
    .content h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .content h3 {
        font-size: 1.05rem;
    }

    .content .table {
        font-size: 0.875rem;
    }

    .content .table-responsive,
    .content .card .table-responsive {
        margin-left: -2px;
        margin-right: -2px;
    }

    /* Stack toolbars: title then actions */
    .content .d-flex.justify-content-between.align-items-center {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .content .d-flex.justify-content-between.align-items-center > .btn {
        width: 100%;
    }

    aside {
        padding: 1em 0.75em;
        width: 100%;
    }

    .app-footer {
        height: 36px;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .app-footer-inner {
        min-width: 0;
        height: 100%;
    }

    .app-footer .version {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-dropdown {
        min-width: min(280px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 16px);
        margin-right: 8px;
    }

    /* Forms / dialogs */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .offcanvas.offcanvas-end {
        width: min(380px, 100vw) !important;
    }

    /* KPI tiles denser on narrow phones */
    .kpi-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .kpi-card-value {
        font-size: 1.2rem;
    }

    /* Cookie banner */
    #cookieconsent .btn {
        flex: 1 1 auto;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .siteheader .logo {
        max-width: 72px;
        height: 18px;
    }

    .content {
        padding: 10px;
    }

    .kpi-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet Layout adjustments */
@media (min-width: 768px) and (max-width: 1279px) {
    .content {
        padding: 20px;
    }

    aside {
        padding: 1.5em 0.75em 1em 0.75em;
        width: 100%;
        height: auto !important;
    }
}

/* Surface Duo specific styling */
@media (horizontal-viewport-segments: 2) {
    .siteheader {
        display: grid;
        grid-template-columns: 150px calc(env(viewport-segment-width 0 0) - 160px) 1fr;
        grid-template-rows: 1fr;
        align-items: center;
        padding: 12px 0;
    }

    .siteheader .logo {
        grid-column: 1;
        width: 108px;
        height: 23px;
    }

    main {
        display: grid;
        grid-template-columns: env(viewport-segment-width 0 0) 1fr;
    }

    nav.sitenav {
        grid-column: 1;
        width: env(viewport-segment-width 0 0) !important;
    }

    .content {
        padding-top: 0px;
        margin-inline-start: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
        margin-inline-end: calc(100% - env(viewport-segment-left 1 0));
        width: auto;
    }

    aside {
        grid-area: 2 / 2 / 3 / 3;
        padding: 1.5em 0.75em 1em 0.75em;
        margin-inline-start: calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0));
        margin-inline-end: calc(100% - env(viewport-segment-left 1 0));
        width: auto;
    }
}


@media (min-width: 800px) {
    .fluent-dialog-main {
        --dialog-width: 340px;
    }
}


@media (max-width: 480px) {
    .fluent-dialog-main {
        --dialog-width: 100vw;
    }
}

/*  Responvive Youtube Video

    <div class="youtube-responsive">
      <iframe src="https://www.youtube.com/embed/lUZ5mrg2Q8k" frameborder="0" allowfullscreen></iframe>
    </div>
*/
.youtube-responsive {
    position: relative;
    height: 0;
    padding-top: 56%;
    overflow: hidden;
    max-width: 100%;
}

.youtube-responsive iframe,
.youtube-responsive object,
.youtube-responsive embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-responsive .fluid-vids {
    position: initial !important
}

.youtube-title {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    min-height: 24px;
}

.youtube-thumbnail {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.youtube-thumbnail img {
    width: 100%;
}


@media print {

    pre,
    code {
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }

    body {
        overflow: visible !important;
        height: auto !important;
    }

    .body-content {
        overflow: visible !important;
        max-height: 100% !important;
    }

    h2:nth-of-type(n+2) {
        page-break-before: always !important;
    }


    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid !important;
    }

    .navmenu,
    .siteheader,
    aside {
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .layout>footer {
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    a {
        text-decoration: none;
        color: black;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #555;
    }

    .youtube-title {
        font-weight: bold;
        font-size: 16pt;
        margin-bottom: 5px;
    }

    .youtube-responsive {
        display: none !important;
        /* Hide embedded videos */
    }

    .tab-pane {
        display: block !important;
        visibility: visible !important;
        page-break-inside: avoid !important;
        opacity: 1 !important;
    }

    .tab-pane[hidden],
    .tab-pane:not(.active) {
        display: block !important;
    }

    button {
        display: none !important;
    }

    .content {
        padding: 0 !important;
        border-right: hidden !important;
    }

    .video-link {
        display: block;
        font-size: 12pt;
        color: black;
    }

    img {
        width: auto !important;
        /* Shrinks oversized images */
        max-height: 250px !important;
        /* Limits vertical size */
        display: block;
        /* Prevents inline scaling issues */
    }
}


@media screen {
    .video-link {
        display: none;
    }
}

/* Premium Page Transition Animation */
.page-transition {
    animation: pageFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
    width: 100%;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}