.close-modal{
    cursor: pointer;
}
.close-modal{float: right}
#modal-title,#modal-group-title{
    display: inline;
}

 :root {
     /* 语法：--变量名: 变量值; */
     --primary-color: #39FF14; /* 你的霓虹绿 */
     --main-padding: 15px;
     --bg-dark: #0a0a0c;
     --success-color: #28a745; /* 成功提示颜色 */
 }


.modal-header h3 {
    display: inline;      /* 纯行内显示，不接受宽高 */
    /* 或者使用 */
    /* display: inline-block; */ /* 行内显示，但保留块级特性（可设置边距、高度等） */

    margin: 0;           /* 去掉默认上下边距，防止撑开行高 */
    vertical-align: middle; /* 确保与相邻元素垂直对齐 */
}

* 修改颜色为蓝色 *
.icon-gear {
    color: #409EFF;
}

/* 确保 SVG 内部路径继承颜色 */
.icon-gear svg {
    fill: currentColor;
}

.element-bubble {
    position: absolute;   /* 必须是绝对定位 */
    z-index: 99999;      /* 确保在所有弹窗和侧边栏之上 */
    padding: 8px 15px;
    background: #f56c6c; /* 错误提示颜色 */
    color: #fff;
    border-radius: 4px;
    white-space: nowrap; /* 防止气泡换行导致宽度计算错误 */
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}
.element-bubble.error { background-color: #f56c6c; }
.element-bubble.success { background-color: #67c23a; }
body{margin: 0 !important;}


     /* 容器：设置为相对定位 */
 .dropdown {
     position: relative;
     display: inline-block;
 }

/* 触发按钮样式 */
.btn-link.dropdown-toggle {
    background: transparent;
    color: #1b5794; /* 匹配页面主色 */
    border: none;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.btn-link.dropdown-toggle:hover {
    color: #2563eb;
}

/* 下拉小箭头 (Caret) */
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.3s;
}

/* 菜单展开时箭头反转 */
.dropdown:hover .caret {
    transform: rotate(180deg);
}

/* 下拉菜单主体 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; /* 右对齐 */
    z-index: 1000;
    display: none; /* 默认隐藏 */
    min-width: 140px;
    padding: 8px 0;
    margin-top: 5px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    list-style: none;
    animation: slideIn 0.2s ease-out;
}

/* 悬停显示菜单 */

/* 菜单列表项 */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    clear: both;
    font-weight: 500;
    font-size: 14px;
    color: #475569;
    text-align: inherit;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
}

/* 菜单项悬停效果 */
.dropdown-menu li a:hover {
    background-color: #f1f5f9;
    color: #1b5794;
    padding-left: 24px; /* 轻微向右偏移，更有动感 */
}

/* 入场动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
