/* AUTO-GENERATED — do not edit by hand.
 * Regenerate: python scripts/build_app_shell_bundle.py
 * Sources: assets/css/app_shell/layout/modules/app-shell/index.css, assets/css/app_shell/layout/modules/dash-root/index.css, assets/css/app_shell/layout/modules/navigation/index.css, assets/css/app_shell/layout/modules/theme/index.css
 */

/* === import from ./cleanup.css (cleanup.css) */
/* Force hide any legacy background elements from old templates when in Dashboard */
.bg, .noise {
    display: none !important;
}

body {
    background: var(--bg0) !important;
}



/* === import from ./viewport.css (viewport.css) */
/* AppShell.Main：须在 flex 列内可收缩（min-height:0），子级 .platform-page-scroll 才能 overflow-y 滚动 */
main#app-main-content.app-shell-main-region {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 界面设定：收掉通用头/侧栏/底槽位，主内容区拉满视口 */
.global-app-shell.app-shell--no-header {
    --app-shell-header-offset: 0px;
    --header-height: 0px;
}
.global-app-shell.app-shell--no-footer {
    --app-shell-footer-offset: 0px;
    --footer-height: 0px;
}
.global-app-shell.app-shell--no-header.app-shell--no-footer main#app-main-content {
    min-height: 100dvh;
}



/* === import from ./chrome-hide.css (chrome-hide.css) */
.global-app-shell.app-shell--no-header #header-container,
.global-app-shell.app-shell--no-footer #footer-container,
.global-app-shell.app-shell--no-sidebar #navbar-container,
.global-app-shell.app-shell--no-sidebar #aside-container {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    visibility: hidden !important;
}



/* === import from ./regions.css (regions.css) */
/* dash_app 根布局与 AppShell 区域 */
.dash-app-root {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg0);
}

.global-app-shell {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.app-shell-header-region {
    background-color: var(--panel);
    border-bottom: 1px solid var(--border);
    z-index: 101;
}

.app-shell-navbar-region {
    background-color: var(--panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.app-shell-aside-region {
    background-color: var(--panel);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.app-shell-main-region {
    background-color: var(--bg0);
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-shell-footer-region {
    background-color: var(--panel);
    border-top: 1px solid var(--border);
    z-index: 101;
}



/* === import from ./legacy.css (legacy.css) */
/* App Shell & Main Layout */
.appShell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent global scrollbars */
}

.main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Dash 下由 .main 承担高度，因此不再依赖固定计算 */
.hero {
    min-height: auto;
}

/* 扉页 logo 轻微增强质感 */
.heroLogo img {
    width: 84px;
    height: auto;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .35)) drop-shadow(0 10px 22px rgba(51, 208, 255, .16));
}




/* === import from ./height-chain.css (height-chain.css) */
#react-entry-point,
#_dash-app-content {
    height: 100%;
    min-height: 0;
}



/* === import from ./devtools.css (devtools.css) */
#_dash-global-error-container {
    position: static;
}

#_dash-global-error-container .dash-debug-menu__outer {
    z-index: 2147483000 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}



/* 主导航标签栏 */


/* === import from ../main-nav-tabs/index.css (index.css) */
/* 已打开页面多标签导航条 */

/* === import from ./shell.css (shell.css) */
.app-main-with-tabs {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.main-nav-tab-strip-outer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    background: var(--bg1);
    padding: 0 6px;
    z-index: 5;
}

.app-main-with-tabs-inner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#app-main-content > .app-main-with-tabs {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
}



/* === import from ./strip.css (strip.css) */
.main-nav-tabs-sortable {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    align-items: flex-end;
    min-height: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.main-nav-tabs-sortable::-webkit-scrollbar {
    height: 4px;
}
.main-nav-tabs-sortable::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}



/* === import from ./tab-item.css (tab-item.css) */
.main-nav-tab-item {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 240px;
    border-radius: 8px 8px 0 0;
    background: transparent;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-bottom: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.main-nav-tab-item:not(.is-active):hover {
    background: var(--panel2);
}
.main-nav-tab-item.is-active {
    background: var(--bg0);
    border-color: var(--border);
    border-bottom-color: var(--bg0);
    z-index: 2;
}



/* === import from ./tab-drag-handle.css (tab-drag-handle.css) */
.main-nav-tab-drag-handle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 2px 10px 8px;
    color: var(--muted);
    cursor: grab;
    opacity: 0.45;
    font-size: 0.7rem;
    user-select: none;
}

.main-nav-tab-item:hover .main-nav-tab-drag-handle,
.main-nav-tab-item.is-active .main-nav-tab-drag-handle {
    opacity: 0.75;
}

.main-nav-tab-drag-handle:active {
    cursor: grabbing;
}



/* === import from ./tab-link.css (tab-link.css) */
.main-nav-tab-link {
    padding: 8px 4px 10px 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    transition: color 0.15s ease;
}
.main-nav-tab-item:not(.is-active):hover .main-nav-tab-link {
    color: var(--text);
}
.main-nav-tab-item.is-active .main-nav-tab-link {
    color: var(--brand1);
    font-weight: 600;
}



/* === import from ./tab-close.css (tab-close.css) */
.main-nav-tab-close {
    opacity: 0;
    margin: 0 6px 0 0;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    border: none;
    background: transparent;
    border-radius: 4px;
    color: var(--muted2);
    transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
    user-select: none;
    flex-shrink: 0;
}
.main-nav-tab-item:hover .main-nav-tab-close,
.main-nav-tab-item.is-active .main-nav-tab-close {
    opacity: 1;
    color: var(--brand1);
}
.main-nav-tab-close:hover {
    background: rgba(var(--brand1-rgb), 0.15);
}
.main-nav-tab-sort-ghost {
    opacity: 0.55;
}
.main-nav-tab-sort-chosen {
    cursor: grabbing;
}






/* 主题 / 配色选择器 */


/* === import from ../theme-selector/index.css (index.css) */

/* === import from ./theme-mode.css (theme-mode.css) */
.theme-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--panel2);
}

.theme-option:hover {
    border-color: var(--brand1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.theme-option-active {
    border-color: var(--brand1);
    background: rgba(75, 124, 255, 0.05);
}

.theme-preview {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-preview-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.theme-preview-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.theme-preview-auto {
    background: linear-gradient(135deg, #f8fafc 0%, #1e293b 100%);
}

.theme-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.theme-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand1);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.theme-option-active .theme-check {
    display: flex;
}



/* === import from ./brand-color.css (brand-color.css) */
/* 7. Brand Color Selector */
.brand-color-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.brand-color-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--panel2);
}

.brand-color-option:hover {
    border-color: var(--brand1);
    background: var(--panel);
}

.brand-color-option.active {
    border-color: var(--brand1);
    background: rgba(var(--brand1-rgb), 0.08); /* This will be re-evaluated by dynamic-brand-style */
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.05);
}

.color-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
