/* Navigation, off-canvas menus, and account controls */
img.navlogo {
    width: 180px;
    max-width: 100%;
    height: auto;
}

.app-navbar {
    min-height: 72px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1030;
}

.app-nav-offcanvas {
    flex-grow: 1;
}

.app-nav-offcanvas .offcanvas-body {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
}

.app-menu-eyebrow {
    color: var(--primary);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.app-nav-offcanvas .offcanvas-header h2 {
    margin: 2px 0 0;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.app-offcanvas-toggle {
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
}

.app-offcanvas-brand {
    display: inline-flex;
    align-items: center;
}

.app-offcanvas-brand img {
    width: 150px;
    max-width: 62vw;
    height: 44px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 991.98px) {
    .app-nav-offcanvas.offcanvas {
        top: 0 !important;
        bottom: 0 !important;
        display: flex !important;
        width: min(88vw, 360px) !important;
        height: 100vh !important;
        height: 100dvh !important;
        color: var(--text-dark);
        background-color: var(--surface-nav, #fff) !important;
    }

    .app-nav-offcanvas .offcanvas-header {
        flex: 0 0 auto;
        padding: 20px;
        border-bottom: 1px solid #e2e8f0;
        background-color: var(--surface-nav, #fff);
    }

    .app-nav-offcanvas .offcanvas-body {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
        padding: 16px;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: var(--surface-nav, #fff) !important;
    }

    .app-nav-offcanvas .app-nav-menu {
        display: flex !important;
        flex: 0 0 auto;
        width: 100%;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .app-nav-offcanvas .app-nav-actions {
        width: 100%;
        margin-top: auto;
    }

    .app-nav-offcanvas .nav-item {
        width: 100%;
    }

    .app-nav-offcanvas .app-nav-link {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        padding: 12px 14px;
        color: var(--text-dark) !important;
        border-radius: var(--radius-sm);
    }

    .app-nav-offcanvas .app-nav-link:hover,
    .app-nav-offcanvas .app-nav-link.active {
        color: var(--primary) !important;
        background: rgba(37, 99, 235, .09);
    }

    .app-nav-offcanvas .dropdown-menu {
        position: static !important;
        width: 100%;
        margin: 4px 0 8px;
        border: 1px solid #e2e8f0;
        box-shadow: none;
        transform: none !important;
    }

    .app-nav-offcanvas .app-nav-actions {
        display: flex !important;
        flex: 0 0 auto;
        align-items: stretch !important;
        flex-direction: column !important;
        padding-top: 14px;
        border-top: 1px solid #e2e8f0;
    }

    .app-nav-offcanvas .app-icon-button,
    .app-nav-offcanvas .app-user-toggle {
        display: flex;
        width: 100%;
        justify-content: flex-start;
    }

    .app-nav-offcanvas .notif-menu {
        position: fixed !important;
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
        width: auto;
        max-height: 75vh;
        margin: 0;
    }
}

@media (min-width: 992px) {
    .app-nav-offcanvas.offcanvas-lg {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        visibility: visible;
        border: 0;
        background: transparent;
        transform: none;
    }

    .app-nav-offcanvas .offcanvas-body {
        flex-direction: row;
    }
}

.app-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
}

.app-nav-menu {
    gap: 6px;
}

.app-nav-link {
    color: #334155;
    font-weight: 650;
    border-radius: 999px;
    padding: 9px 14px !important;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.app-nav-link:hover,
.app-nav-link:focus,
.app-nav-link.active {
    color: #0f766e !important;
    background: rgba(20, 184, 166, .12);
}

.app-nav-link:hover {
    transform: translateY(-1px);
}

.app-admin-menu,
.app-account-menu {
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.app-admin-menu {
    min-width: 235px;
}

.app-admin-menu .dropdown-item,
.app-account-menu .dropdown-item {
    border-radius: 9px;
    padding: 9px 11px;
    font-weight: 550;
}

.app-admin-menu .dropdown-item:hover,
.app-account-menu .dropdown-item:hover {
    color: #0f766e;
    background: rgba(20, 184, 166, .10);
}

.app-nav-actions {
    gap: 8px;
}

.app-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 50%;
    color: #334155;
    background: #f1f5f9;
}

.app-user-toggle {
    min-height: 44px;
    padding: 4px 10px !important;
    color: #0f172a;
    border-radius: 999px;
    background: #f8fafc;
}

.app-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    vertical-align: middle;
}

.app-user-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
}

.app-user-avatar-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}
