﻿html {
    height: 100%;
    min-width: 320px;
    min-height: 460px;
}

    html body {
        height: 100%;
        overflow: hidden;
    }

        html body .container-fluid.body-content {
            position: absolute;
            display: block;
            top: 60px;
            bottom: 60px;
            right: 0;
            left: 0;
            padding: 0;
            margin: 0;
            overflow-y: auto;
        }

@layer restricted-screen {
    [data-restricted-screen] {
        display: none;
        pointer-events: none;
        z-index: -9999;
    }

    html[data-mode="restricted"] [data-restricted-screen],
    html[data-mode="student"] [data-restricted-screen],
    html[data-mode="testing"] [data-restricted-screen] {
        position: fixed;
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        pointer-events: auto;
        z-index: 20000;
    }

    [data-key="passphrase-overlay"],
    [data-key="pin-overlay"] {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        align-items: center;
        justify-content: center;
        pointer-events: none;
        z-index: 20050;
    }

    [data-key="passphrase-overlay"]:not(.d-none),
    [data-key="pin-overlay"]:not(.d-none) {
        display: flex;
        pointer-events: auto;
    }

    [data-restricted-screen] .restricted-instructions {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        user-select: none;
        text-align: center;
        margin: 0;
        z-index: 20060;
    }
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.registration-alert {
    visibility: hidden;
    position: absolute;
    z-index: 1050;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
}

.company-logo {
    height: 58px;
}

.terms-of-use {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.copyright {
    font-size: 0.9rem;
    cursor: pointer;
}

.privacy {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-link.terms-of-use,
.nav-link.copyright,
.nav-link.privacy {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    cursor: pointer;
}

.navbar-fixed-top,
.navbar-fixed-bottom {
    min-height: 60px;
    position: fixed;
}

.navbar-fixed-top {
    top: 0;
    z-index: 1051;
}

.navbar-fixed-bottom {
    bottom: 0;
    z-index: 999;
}


/* Theme mode toggle modifications */

.theme-mode {
    transition: transform 0.3s ease-in-out;
}

.navigation-toggle {
    color: var(--awb-navbar-text);
    transition: transform 0.5s ease, color 1s ease;
    border: none;
    box-shadow: none;
    background-color: transparent;
}

    .navigation-toggle.expanded {
        transform: rotate(180deg);
    }

.awb-settings-dialog {
    min-width: 340px;
    max-width: 100%;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

    .awb-settings-dialog .settings-group {
        text-wrap: nowrap;
        flex: 1;
        flex-direction: column;
    }

/* Responsive nabvar icons - hide by default */

.d-hamburger-icons {
    display: none !important;
}

.d-icons-default {
    display: none !important;
}

/* Responsive media modification

  xs: 0,
  sm: 576px,
  md: 768px,
  lg: 992px,
  xl: 1200px,
  xxl: 1400px

*/

@media (min-width: 576px) {
    html {
        font-size: 15px;
    }

    .awb-settings-dialog {
        max-width: 95vw;
    }

    .d-hamburger-icons {
        display: none !important;
    }

    .d-icons-default {
        display: block !important;
    }

    #siteIconsNavBarItems {
        display: flex !important;
    }

    #rightNavBarItems {
        display: flex !important;
    }

    /* Ensure no text is displayed on larger screens */
    .hamburger-menu-item span {
        display: none !important;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 16px;
    }

    .company-logo {
        height: 44px;
    }

    .awb-settings-dialog {
        max-width: 100vw;
    }

    .offcanvas {
        width: 100vw !important;
    }

        .offcanvas.pinned {
            width: 100vw !important;
        }

    .d-hamburger-icons {
        display: block !important;
    }

    .d-icons-default {
        display: none !important;
    }

    /* Hamburger button styling */
    .hamburger-icons-dropdown {
        position: relative;
    }

    /* Vertical dropdown menu - hidden by default */
    .hamburger-dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1060;
        background-color: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: 0.375rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        min-width: 200px;
        white-space: nowrap;
    }

        /* Hidden state */
        .hamburger-dropdown-menu.d-none {
            display: none !important;
        }

        /* Visible state */
        .hamburger-dropdown-menu.d-block {
            display: block !important;
        }

    /* Menu items styling */
    .hamburger-menu-item {
        width: 100%;
        text-align: left;
        padding: 0.5rem 1rem !important;
        border: none;
        box-shadow: none;
    }

        .hamburger-menu-item:hover {
            background-color: var(--bs-light);
            color: var(--bs-body-color);
        }

    /* Hide login partial from regular menu on small screens */
    #rightNavBarItems {
        display: none !important;
    }

    /* Adjust login partial styling in hamburger menu */
    .hamburger-dropdown-menu .nav-item {
        display: block;
    }

    .hamburger-dropdown-menu .dropdown-toggle {
        width: 100%;
        text-align: left;
        padding: 0.5rem 1rem !important;
    }

    .hamburger-dropdown-menu .dropdown-menu {
        position: static !important;
        float: none;
        width: 100% !important;
        margin-top: 0 !important;
        box-shadow: none;
        border: none;
    }
}

/* Cascading Dropdown menu modifications */

.dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 1060;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: 0;
        border-radius: 0.25rem;
        display: none;
    }

    .dropdown-submenu:hover .dropdown-menu {
        display: block;
    }

.dropdown-menu.show {
    display: block;
}

.navigation-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    width: auto !important;
}

.navbar-brand.no-url,
.nav-link.no-url {
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .navbar-brand.no-url:hover,
    .nav-link.no-url:hover {
        text-decoration: none !important;
        color: var(--bs-primary);
    }

    .navbar-brand.no-url:focus,
    .nav-link.no-url:focus {
        outline: none;
        box-shadow: none;
    }

    .navbar-brand.no-url:focus-visible,
    .nav-link.no-url:focus-visible {
        outline: none;
        box-shadow: none;
    }


/* Center company logo in navbar */
.navbar .company-brand {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

/* Center dropdown menus beneath centered logo */
.centered-dropdown-parent {
    position: relative;
}

    .centered-dropdown-parent .dropdown-menu {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto;
    }

/* Remove visible border when the brand is clicked with mouse,
   but keep focus ring for keyboard users via :focus-visible */
.company-brand:focus:not(:focus-visible),
.company-brand-text:focus:not(:focus-visible),
.company-brand:active,
.company-brand-text:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Make account flyout visually slide/fade from top */
.offcanvas-top {
    margin-top: 60px;
    transition: transform 0.25s ease-in-out, visibility 0.25s linear;
}

/* Small tweak for the hierarchical menu icon size */
[data-key="site-navigation-toggle"] .bi {
    font-size: 1.2rem;
}

/*
           Center-brand layout:
           - Two intrinsic-width columns:
             * logo column sizes to image only
             * texts column sizes to the wider of the two text lines
           - Entire block is centered in the navbar
        */
[data-key="company-brand"] {
    display: block; /* keep structure; inner wrapper will be flex */
    flex-grow: 1;
}

    [data-key="company-brand"] .center-brand-wrapper {
        display: flex;
        justify-content: center; /* center the two columns horizontally */
        align-items: center; /* vertical centering */
        gap: 0.75rem;
        width: 100%;
    }

    [data-key="company-brand"] .center-brand-logo {
        flex: 0 0 auto; /* size to intrinsic (image) width */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    [data-key="company-brand"] .center-brand-texts {
        flex: 0 0 auto; /* intrinsic width = width of wider line */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Prevent wrapping on brand lines and use intrinsic width */
    [data-key="company-brand"] .company-brand-text,
    [data-key="company-brand"] .company-brand-subtext {
        white-space: nowrap;
        display: inline-block;
    }
