/* Styles for Views/Shared/_Layout.cshtml. */
/* Responsive navigation enhancements: desktop layout is unchanged. */
@media (max-width: 760px) {
    body {
        padding-top: 0;
    }

    .top-navbar {
        min-height: 60px;
        height: auto;
        padding: 6px 8px;
        gap: 6px;
        flex-wrap: wrap;
        align-items: center;
    }

    .top-nav-left,
    .nav-right {
        min-width: 0;
    }

    .top-nav-left {
        flex: 1 1 auto;
        gap: 5px;
    }

    .top-nav-left > .logo:first-child img {
        width: 46px;
        height: 46px;
    }

    .top-nav-left .logo-glass,
    .top-nav-left .logo-ops {
        font-size: 18px;
    }

    .demo-notice {
        order: 3;
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .demo-badge {
        font-size: 10px;
        line-height: 1;
    }

    .nav-right {
        flex: 0 0 auto;
        margin-left: auto;
        padding-right: 0 !important;
        gap: 3px;
    }

    /* Hide long desktop navigation labels on phones. */
    .nav-right > .top-nav-item,
    .nav-right > .split-menu,
    .nav-right > .glassops-icons,
    .top-nav-left > .top-nav-item {
        display: none;
    }

    /* Public navigation becomes compact icon buttons. */
    .public-nav-buttons {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .public-nav-buttons .glassops-download {
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        font-size: 0;
    }

    .public-nav-buttons .glassops-download i {
        font-size: 18px;
        margin: 0;
    }

    /* Keep profile/logout usable while saving horizontal space. */
    .nav-right > a[title] {
        width: 36px !important;
        height: 36px !important;
        flex-basis: 36px !important;
    }

    .nav-right > a[title] img {
        width: 36px !important;
        height: 36px !important;
    }

    #logoutForm {
        margin: 0;
    }

    #logout {
        width: 34px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Avoid Bootstrap's fixed desktop container width feeling cramped. */
    body > .container {
        width: 100%;
        max-width: none;
        padding-left: 10px;
        padding-right: 10px;
    }

    body > br {
        display: none;
    }

}

@media (max-width: 420px) {
    .top-navbar {
        padding-left: 5px;
        padding-right: 5px;
    }

    .top-nav-left > .logo:first-child img {
        width: 42px;
        height: 42px;
    }

    .public-nav-buttons .glassops-download {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .public-nav-buttons .glassops-download i {
        font-size: 16px;
    }

}
