.jans-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(2px);
    z-index: 8;
}

.jans-sidebar-shell {
    --jans-sidebar-width: 280px;
    position: sticky;
    top: var(--main-header-height);
    height: calc(100vh - var(--main-header-height));
    width: var(--jans-sidebar-width);
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: width 200ms ease, transform 200ms ease;
    z-index: 9;
}

.jans-sidebar-shell.is-closed {
    width: 0;
    transform: translateX(-100%);
}

.jans-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.75rem 0.75rem 1rem 0.75rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.jans-sidebar-content::-webkit-scrollbar {
    display: none;
}

.jans-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.jans-sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.jans-sidebar-avatar-button {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.jans-sidebar-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jans-sidebar-avatar-button .rz-gravatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
}

.jans-sidebar-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
}

.jans-sidebar-avatar-fallback .rz-navigation-item-icon {
    font-size: 3.25rem;
}

.jans-sidebar-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #eef2f7;
    border-radius: 14px;
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
    border: 1px solid #e2e8f0;
}

.jans-sidebar-search-icon {
    color: #64748b;
}

.jans-sidebar-search-input {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    color: #0f172a;
    outline: none;
    font-size: 0.9rem;
}

.jans-sidebar-search-input::placeholder {
    color: #94a3b8;
}

.jans-sidebar-shell .jans-panel-menu {
    background: transparent;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.jans-sidebar-shell .jans-panel-menu > .jans-panel-menu-item > .jans-panel-menu-link {
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    border: 1px solid #e2e8f0;
}

.jans-sidebar-shell .jans-panel-menu > .jans-panel-menu-item > .jans-panel-menu-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.jans-sidebar-shell .jans-panel-menu > .jans-panel-menu-item > .jans-panel-menu-link .jans-panel-menu-icon {
    color: #334155;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-link {
    color: #0f172a;
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-text {
    color: inherit;
    font-weight: 600;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-icon {
    color: #475569;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-item.is-active > .jans-panel-menu-link {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-item.is-active > .jans-panel-menu-link .jans-panel-menu-icon {
    color: #ffffff;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-group-text {
    color: #475569;
    font-weight: 700;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-group {
    background: transparent;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-children {
    background: #f8fafc;
    border-radius: 12px;
    margin: 0.35rem 0 0.5rem 0;
    padding: 0.35rem 0.35rem 0.4rem 0.35rem;
    border: 1px solid #e2e8f0;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-children .jans-panel-menu-link {
    color: #0f172a;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-children .jans-panel-menu-link:hover {
    background: #e2e8f0;
}

.jans-sidebar-shell .jans-panel-menu .jans-panel-menu-children .jans-panel-menu-icon {
    color: #475569;
}

.jans-sidebar-shell .jans-panel-menu .jans-sidebar-logout {
    margin-top: auto;
}

.jans-sidebar-shell .jans-panel-menu .jans-sidebar-logout > .jans-panel-menu-link {
    background: #fee2e2;
    color: #b91c1c;
}

.jans-sidebar-shell .jans-panel-menu .jans-sidebar-logout > .jans-panel-menu-link .jans-panel-menu-icon {
    color: #b91c1c;
}

.jans-sidebar-search-results {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.jans-sidebar-search-section {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.jans-sidebar-search-title {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-left: 0.25rem;
}

.jans-sidebar-search-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.jans-sidebar-search-item:hover {
    background: #f1f5f9;
}

.jans-sidebar-search-icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 10px;
    background: #e2e8f0;
    color: #334155;
}

.jans-sidebar-search-tag {
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}

.jans-sidebar-search-name {
    flex: 1 1 auto;
    font-weight: 600;
}

.jans-sidebar-search-type {
    color: #64748b;
    font-size: 0.75rem;
}

.jans-sidebar-search-empty {
    color: #64748b;
    font-size: 0.85rem;
    padding: 0.5rem 0.25rem;
}

.layout-shell.sidebar-closed .jans-sidebar-content {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .jans-sidebar-shell {
        position: fixed;
        left: 0;
        top: var(--main-header-height);
        height: calc(100vh - var(--main-header-height));
        transform: translateX(-100%);
    }

    .layout-shell.sidebar-open .jans-sidebar-shell {
        transform: translateX(0);
    }
}

@media (min-width: 901px) {
    .jans-sidebar-backdrop {
        display: none;
    }
}
