/* ================================================
   后台管理系统 — 侧边栏导航菜单样式
   独立文件：仅供 AdminLayout 使用
   写在全局 CSS 以绕过 Blazor CSS 隔离无法穿透 NavLink 子组件的问题
   ================================================ */

.admin-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.admin-sidebar .nav-item:hover {
    color: #2563eb;
    background-color: #f0f7ff;
}

/* 选中态：左侧蓝色竖条 + 浅蓝背景 + 蓝色文字 */
.admin-sidebar .nav-item.active {
    color: #2563eb;
    background-color: #eff6ff;
    font-weight: 500;
}

.admin-sidebar .nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    background-color: #2563eb;
    border-radius: 0 2px 2px 0;
}

.admin-sidebar .nav-item svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.admin-sidebar .nav-item.active svg {
    opacity: 1;
}
