/* AUTO-GENERATED — do not edit by hand.
 * Regenerate: python scripts/build_app_shell_bundle.py
 * Sources: assets/css/app_shell/layout/modules/sidebar/index.css, assets/css/app_shell/layout/modules/footer/index.css, assets/css/app_shell/layout/modules/header/index.css, assets/css/app_shell/layout/modules/sidebar-placement/index.css
 */

/* === import from ./wrapper.css (wrapper.css) */
.home-sidebar-wrapper {
    height: 100% !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    background-color: var(--panel);
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 0;
    overflow: hidden !important;
}



/* === import from ./toggle.css (toggle.css) */
/* 2. Toggle Region */
.home-sidebar-toggle-container {
    height: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
    box-sizing: border-box;
}

.home-sidebar-toggle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    color: #94a3b8;
    background-color: transparent !important;
    border: none !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.home-sidebar-toggle:hover {
    background-color: #f1f5f9;
    color: #4B7CFF;
}

.home-sidebar-toggle i {
    font-size: 16px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}



/* === import from ./menu-scroll.css (menu-scroll.css) */
/* 通用侧栏：折叠按钮固定，菜单区超出时独立滚动 */
.home-sidebar-toggle-container {
    flex-shrink: 0;
}

.home-sidebar-menu-area {
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.home-sidebar-nav-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding: 0 0 12px;
    box-sizing: border-box;
}



/* === import from ./links.css (links.css) */
/* 3. Link Items */
.custom-sidebar-link {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    text-decoration: none !important;
    color: #475569;
    position: relative;
    transition: all 0.2s ease;
    margin: 4px 8px;
    border-radius: 8px;
}

.custom-sidebar-link .link-icon {
    font-size: 18px;
    width: 24px;
    display: flex;
    justify-content: center;
    margin-right: 12px;
    transition: margin 0.3s ease;
}

.custom-sidebar-link .sidebar-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.custom-sidebar-link:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.custom-sidebar-link.active {
    background-color: rgba(75, 124, 255, 0.08) ;
    color: #4B7CFF;
}

/* Active Indicator (Hidden by default in expanded) */
.custom-sidebar-link.active .link-indicator {
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 0; 
    background-color: #4B7CFF;
    border-radius: 4px 0 0 4px;
    transition: width 0.2s ease;
}



/* === import from ./pinned.css (pinned.css) */
/* 插件管理「固定到侧栏」后的分组标题 */
.home-sidebar-pinned-heading {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    padding: 12px 16px 6px 24px;
    margin: 0;
}

.is-collapsed .home-sidebar-pinned-heading {
    display: none;
}



/* === import from ./collapsed.css (collapsed.css) */
/* 4. Collapse Logic (Pixel Perfect) */
.is-collapsed .home-sidebar-toggle-container {
    justify-content: center !important;
    padding: 0 !important;
}

.is-collapsed .home-sidebar-toggle {
    margin: 0 auto !important;
}

.is-collapsed .custom-sidebar-link {
    padding: 0 !important;
    justify-content: center !important;
    margin: 4px 0;
    width: 60px;
    border-radius: 0;
}

.is-collapsed .custom-sidebar-link .link-icon {
    margin-right: 0 !important;
    width: 60px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.is-collapsed .custom-sidebar-link .sidebar-text {
    display: none !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Highlight Indicator for Collapsed Mode - Fixed on Right Edge */
.is-collapsed .custom-sidebar-link.active {
    background-color: rgba(75, 124, 255, 0.12);
    border-radius: 8px; /* Give it some padding-like feel even when collapsed */
    margin: 4px 6px; /* Shrink to center */
    width: 48px; /* Icon-box size */
}

.is-collapsed .custom-sidebar-link.active .link-indicator {
    width: 4px; /* Show indicator in collapsed mode */
    height: 100%;
    top: 0;
    border-radius: 0;
}




/* === import from ./badge.css (badge.css) */
.footer-badge {
    font-weight: 700;
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(4px);
    padding: 4px 12px !important;
    border-radius: 99px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-size: 11px !important;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}



/* === import from ./links.css (links.css) */
.footer-muted { font-size: 11px; color: #64748b; opacity: 0.6; font-weight: 500; }
.footer-link { font-size: 11px !important; color: #94a3b8 !important; text-decoration: none !important; transition: color 0.2s; font-weight: 500 !important; }
.footer-link:hover { color: #475569 !important; }




/* === import from ./brand.css (brand.css) */
.header-brand-mark {
    height: clamp(38px, 5vmin, 48px);
    width: auto;
    max-width: min(200px, 38vw);
    object-fit: contain;
    display: block;
}

.premium-logo-text {
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #023456 !important;
    -webkit-text-fill-color: #023456;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    transition: color 0.2s ease, transform 0.3s ease;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.premium-logo-text:hover {
    transform: translateY(-1px) scale(1.02);
    color: #012d45 !important;
    -webkit-text-fill-color: #012d45;
}



/* === import from ./user.css (user.css) */
.user-info-text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    margin-left: 4px;
}

#user-menu-trigger {
    transition: background-color 0.2s ease;
    border-radius: 8px;
    padding: 6px 12px !important;
}

#user-menu-trigger:hover {
    background-color: #f8fafc;
}



/* === import from ./layout.css (layout.css) */
/* 顶栏根布局 */
.header-root {
    width: 100%;
}

.header-brand-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* 通知铃铛 */
.header-bell-wrapper {
    position: relative;
}

.header-notifications-bell-root {
    position: relative;
}

.header-notif-target {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.header-notifications-preview {
    max-height: 320px;
    overflow-y: auto;
    margin-top: 6px;
}

.header-gear-link {
    text-decoration: none;
}

.header-gear-link-inner {
    display: inline-flex;
    align-items: center;
}



/* === import from ./login.css (login.css) */
/* 顶栏登录（system_login）；与插件 CSS 同步，编入 app_shell.bundle */
#header-login-btn {
    cursor: pointer;
}




/* === import from ./right.css (right.css) */
.home-sidebar-wrapper.is-right {
    border-right: none !important;
    border-left: 1px solid var(--border) !important;
}

.is-right .custom-sidebar-link .link-indicator {
    right: auto !important;
    left: 0 !important;
    border-radius: 0 4px 4px 0 !important;
}

.is-right .home-sidebar-toggle-container {
    justify-content: flex-start !important;
}

.is-right.is-collapsed .home-sidebar-toggle-container {
    justify-content: center !important;
}



/* === import from ./states.css (states.css) */
.custom-sidebar-link:active {
    transform: scale(0.98);
}

.is-hidden {
    display: none !important;
    width: 0 !important;
    pointer-events: none;
}
