/* sidebar.css */
.sidebar {
    width: 200px;
    height: 100vh;
    background: #2c3e50;
    color: #fff;
    position: fixed;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 16px;
    text-align: center;
    margin: 25px 0;
    font-weight: 500;
}

.sidebar ul {
    flex: 1;
    overflow-y: auto;
}

.sidebar li {
    list-style: none;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

.sidebar li.active {
    background: #1abc9c;
}

.sidebar li:hover:not(.active) {
    background: #34495e;
}

/* ===== 管理员区域 ===== */
.sidebar-bottom {
    padding: 12px 15px;
    border-top: 1px solid #34495e;
}

.admin-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
}

.admin-card:hover {
    background: #34495e;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1abc9c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.admin-info {
    flex: 1;
    overflow: hidden;
}

.admin-name {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-role {
    font-size: 11px;
    color: #95a5a6;
    margin-top: 2px;
}

.admin-arrow {
    font-size: 12px;
    color: #7f8c8d;
    transition: .2s;
}

.admin-card:hover .admin-arrow {
    color: #bdc3c7;
}

/* ===== 设置弹窗 ===== */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    width: 360px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.modal-header h4 {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.modal-body {
    padding: 20px 24px;
}

.modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    outline: none;
}

.modal-input:focus {
    border-color: #1abc9c;
}

.modal-btns {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #eee;
}

.modal-btns button {
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-close {
    background: #f5f5f5;
    color: #666;
}

.btn-close:hover {
    background: #e8e8e8;
}

.btn {
    background: #1abc9c;
    color: #fff;
}

.btn:hover {
    background: #16a085;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #ff7875;
}

/* 设置菜单列表 */
.setting-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: .2s;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    color: #1abc9c;
}

.setting-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.setting-icon.blue {
    background: #e3f2fd;
    color: #1976d2;
}

.setting-icon.red {
    background: #ffebee;
    color: #d32f2f;
}

.setting-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.setting-arrow {
    font-size: 12px;
    color: #bbb;
}

/* 用户信息展示 */
.user-profile {
    text-align: center;
    padding: 10px 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.user-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1abc9c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 10px;
}

.user-profile-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.user-profile-role {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}