/* ==========================================
   导航模块样式
   ========================================== */

/* 侧边栏主容器 */
.sidebar {
    width: 170px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    left: 0;
    top: var(--hero-height);
    bottom: 0;
    display: flex;
    flex-direction: column;
}

/* 顶部固定区域 */
.sidebar-header {
    flex-shrink: 0;
    padding: 5px 0;
    position: relative;
}

.sidebar-header:not(:empty)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.12), transparent);
}

/* 中间内容区域（可滚动） */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 5px 0;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.14);
    border-radius: 2px;
}

/* 底部固定区域 */
.sidebar-footer {
    flex-shrink: 0;
    padding: 5px 0;
    position: relative;
}

.sidebar-footer:not(:empty)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(15, 23, 42, 0.12), transparent);
}

/* 导航列表 */
.nav-list {
    list-style: none;
    padding: 0;
}

/* 导航项 */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.nav-item:hover {
    background-color: var(--bg-tertiary);
}

.nav-item.active {
    background-color: var(--bg-tertiary);
    border-left-color: var(--accent);
}

/* 导航图标 - 固定宽度确保对齐 */
.nav-icon {
    width: 24px;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 导航文字 */
.nav-text {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.nav-item.active .nav-text,
.nav-item:hover .nav-text {
    color: var(--text-primary);
}

/* 密码小锁 */
.nav-lock {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
}

/* 加载状态 */
.loading-nav {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
}

/* ==========================================
   密码验证弹窗样式
   ========================================== */

/* 密码弹窗容器 */
.password-modal-content {
    max-width: 400px;
}

/* 密码弹窗 - 紧凑头部 */
#passwordModal .modal-header {
    padding: 12px 18px;
}

#passwordModal .modal-title {
    font-size: 15px;
}

/* 密码弹窗 - 紧凑主体 */
#passwordModal .modal-body {
    padding: 12px 18px;
}

#passwordModal .form-group {
    margin-bottom: 8px;
}

/* 密码提示文字 - 左对齐 */
.password-tip {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: left;
    margin-top: 8px;
    line-height: 1.5;
    opacity: 0.8;
}

/* 密码弹窗 - 紧凑底部 + 小按钮 */
#passwordModal .modal-footer {
    padding: 10px 18px;
}

#passwordModal .btn {
    padding: 6px 16px;
    font-size: 13px;
}
