/* ===== 侧边栏拖拽调整宽度：右边缘手柄 ===== */
/* 仅包含拖拽手柄相关样式，独立于其它布局文件，避免 !important 冲突 */

/* 让侧边栏可定位手柄（::after 需要 relative 参照） */
.layout-side {
    position: relative;
}

/* 右边缘手柄：贴齐侧边栏右边缘内侧，避免延伸到主内容区造成层叠冲突。
   默认透明（仅占位 + 提示光标），hover 时高亮提示可拖拽 */
.layout-side::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    z-index: 6;
    transition: background 0.15s linear;
}

    /* 鼠标悬停在侧边栏右边缘：高亮提示此处可拖拽 */
    .layout-side:hover::after {
        background: rgba(0, 120, 212, 0.30);
    }

/* 拖拽进行中：禁用 .layout-side 的宽度过渡动画。
   BootstrapBlazor 默认给 .layout-side 设置了 transition: width .3s linear，
   拖拽时每次 mousemove 改宽度都会触发 0.3s 动画，导致宽度“跟不上手”，
   表现为只有拖拽手势却看不到宽度实时变化。拖拽期间改为即时生效。 */
.layout.drag .layout-side {
    transition: none;
}

/* 拖拽进行中：手柄加深 */
.layout.drag .layout-side::after {
    background: rgba(0, 120, 212, 0.55);
}

/* 拖拽进行中：锁定全局光标为 col-resize，并禁用文本选择 */
body.sidebar-resizing,
body.sidebar-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

/* 折叠态（侧边栏收窄、鼠标未悬停）下隐藏手柄，避免误触 */
.layout.is-collapsed .layout-side:not(:hover)::after {
    display: none;
}
