
/* 自定义样式 */
.dropdown-menu {
    padding: 0.5rem 0;
    min-width: 180px;
    width: auto !important;
    max-width: none !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.nested-dropdown {
    position: relative;
}

.nested-dropdown > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    display: none;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.dropdown-item-with-children {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.dropdown-item-with-children .arrow {
    margin-left: 15px;
    font-size: 10px;
}

/* 自适应宽度 */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* 加载指示器 */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}