/* AUTO-GENERATED — do not edit by hand.
 * Regenerate: python scripts/build_app_shell_bundle.py
 * Sources: assets/css/settings/navigation/sidebar.css
 */
/*
   -------------------------------------------------------------------------
   Settings Sidebar Styles
   -------------------------------------------------------------------------

   Navigation sidebar with menu items and info boxes.
   Used for settings page navigation.
*/

/* Sidebar Container：与右侧主区同高；菜单区超出时在 .settings-menu 内滚动 */
.settings-sidebar {
    width: 260px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 0;
    max-height: 100%;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 24px 0 16px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden; /* 滚动仅发生在 .settings-menu，避免双滚动条 */
}

/* Sidebar Header/Title */
.settings-sidebar-header,
.settings-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.settings-sidebar-header-title {
    min-width: 0;
    flex: 1 1 auto;
}

.settings-sidebar-home-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.settings-sidebar-home-link:hover {
    background: var(--panel2);
    color: var(--text);
}

.settings-sidebar-home-link--active,
.settings-sidebar-home-link--active:hover {
    background: rgba(var(--brand1-rgb), 0.1);
    color: var(--brand1);
}

.settings-sidebar-home-link i {
    font-size: 15px;
}

/* 菜单滚动槽：与标题分离，保证 flex 子级有明确高度上限（仅内部 .settings-menu 滚动） */
.settings-menu-scroll {
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 列表用 block 布局，避免 flex 子项在矮视口下被 flex-shrink 压扁 */
.settings-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    display: block;
    padding: 0 10px 12px 14px;
    box-sizing: border-box;
}

/* Menu Item */
.settings-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

/* Menu Item Hover State */
.settings-menu-item:hover {
    background: var(--panel2);
    color: var(--text);
    transform: translateX(4px);
}

/* Active Menu Item */
.settings-menu-item.active {
    background: rgba(var(--brand1-rgb), 0.1);
    color: var(--brand1);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.05);
}

/* Menu Item Icon */
.settings-menu-item i {
    width: 20px;
    font-size: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Info Box Component */
.info-box {
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid var(--brand1);
}

/* Organization Navigation Item (for sidebars inside cards) */
.org-nav-item {
    color: var(--muted);
}

.org-nav-item:hover {
    background: var(--panel2);
    color: var(--text);
}

.org-nav-item.active {
    background: rgba(var(--brand1-rgb), 0.1);
    color: var(--brand1);
    font-weight: 600;
}

/* 菜单分组标题（胶囊样式） */
.settings-menu-group-title {
    display: inline-block;
    margin: 18px 10px 6px 10px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--brand1, #3b6ef5);
    background: rgba(var(--brand1-rgb, 59, 110, 245), 0.08);
    border-radius: 999px;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1.6;
    white-space: nowrap;
}

.settings-menu-group-title:first-child {
    margin-top: 10px;
}

/* 设置侧栏：可拖拽排序（SortableJS） */
.settings-menu--sortable .settings-menu-sortable-item + .settings-menu-sortable-item {
    margin-top: 4px;
}

.settings-menu-sortable-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 42px;
}

.settings-menu-sortable-item:hover {
    background: var(--panel2);
}

.settings-menu-drag-handle {
    flex-shrink: 0;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: var(--muted);
    padding: 4px 0 4px 4px;
    user-select: none;
    -webkit-user-select: none;
}

.settings-menu-drag-handle:active {
    cursor: grabbing;
}

.settings-menu-item--stretch {
    flex: 1;
    min-width: 0;
    margin: 0;
    transform: none !important;
    border-radius: 0 8px 8px 0;
}

.settings-menu-sortable-item .settings-menu-item--stretch:hover {
    transform: translateX(2px);
}

.settings-menu-sort-ghost {
    opacity: 0.55;
}

.settings-menu-sort-chosen {
    background: var(--panel2);
}
