.app-sidebar {
    width: var(--app-sidebar-width);
    flex: 0 0 var(--app-sidebar-width);
    padding: 1rem 0 1rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
    transition: transform .25s ease;
}

.app-sidebar-inner {
    height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--app-border);
    border-radius: 1.25rem;
    background: linear-gradient(180deg, var(--app-surface) 0%, var(--app-surface-soft) 100%);
    color: var(--app-secondary);
    box-shadow: 0 .75rem 2rem rgba(26,26,26,.08);
    overflow: hidden;
}

.app-sidebar-brand {
    padding: 1.25rem 1rem 1rem;
    border-bottom: 1px solid var(--app-border);
}

.app-brand-link {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: inherit;
    text-decoration: none;
}

.app-brand-logo {
    width: 5rem;
    height: 3rem;
    flex: 0 0 5rem;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: var(--app-primary-soft);
    overflow: hidden;
}

.app-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-brand-title {
    display: block;
    font-weight: 800;
    line-height: 1.1;
    color: var(--app-secondary);
}

.app-brand-subtitle {
    display: block;
    font-size: .88rem;
    color: var(--app-secondary-soft);
}

.app-sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
}

.app-sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--app-border);
    background: rgba(0, 128, 128, .03);
}

.app-nav-group + .app-nav-group {
    margin-top: 1.25rem;
}

.app-nav-group-label {
    margin-bottom: .55rem;
    padding: 0 .85rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--app-secondary-soft);
    white-space: nowrap;
}

.app-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .35rem;
}

.app-nav-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem .95rem;
    border-radius: .95rem;
    color: var(--app-secondary-soft);
    text-decoration: none;
    transition:
    background-color .2s ease,
    color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
    white-space: nowrap;
}

.app-nav-link:hover {
    background: var(--app-primary-soft);
    color: var(--app-secondary);
    transform: translateX(2px);
}

.app-nav-link.active {
    background: var(--app-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 .35rem .9rem rgba(0,128,128,.22);
}

.app-nav-link.disabled,
.app-nav-link:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: auto;
}

.app-nav-link.disabled:hover,
.app-nav-link:disabled:hover {
    background: transparent;
    color: var(--app-secondary-soft);
    transform: none;
}

.app-nav-link i {
    width: 1.1rem;
    min-width: 1.1rem;
    text-align: center;
    font-size: .95rem;
}

.app-nav-link-button {
    background: transparent;
}

.app-nav-link-button:hover {
    border: 0;
}

.app-nav-link-hijack {
    background: #fff3cd;
    color: #664d03;
}

.app-sidebar-scroll::-webkit-scrollbar {
    width: 10px;
}

.app-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.app-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 128, 128, .18);
    border-radius: 999px;
}

.app-sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 128, 128, .28);
}

/* Mobile off-canvas only */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(320px, calc(100vw - 2rem));
        flex: 0 0 auto;
        transform: translateX(calc(-100% - 1rem));
        padding: 1rem 0 1rem 1rem;
    }

    .app-sidebar-inner {
        height: calc(100vh - 2rem);
    }

    body.sidebar-mobile-open .app-sidebar {
        transform: translateX(0);
    }
}
