/**
 * 简单下拉菜单样式
 * 只包含必要的样式，避免冲突
 */

/* 下拉菜单默认隐藏 */
.dropdown-menu {
    display: none;
}

/* 下拉菜单显示时的样式 */
.dropdown-menu.show {
    display: block;
    position: fixed;
    top: 40px;
    right: 10px;
    left: auto;
    z-index: 9999;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 下拉菜单项样式 */
.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

/* 下拉菜单项悬停样式 */
.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #16181b;
}

/* 下拉菜单分隔线样式 */
.dropdown-menu .dropdown-divider {
    height: 0;
    margin: 0.25rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

/* 确保菜单项与分割线的间距一致 */
.dropdown-menu li:first-child .dropdown-item {
    margin-bottom: 0.25rem;
}

.dropdown-menu li:last-child .dropdown-item {
    margin-top: 0.25rem;
}

/* 下拉菜单图标样式 */
.dropdown-menu .dropdown-item i,
.dropdown-menu .dropdown-item .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* 下拉菜单文本样式 */
.dropdown-menu .dropdown-item span {
    display: inline-block;
    line-height: 1.2;
}

/* 修复退出登录上方空白问题 */
.dropdown-menu li {
    margin: 0;
    padding: 0;
} 