/*路径： /static/tags/style.css */

/*以下是tags页的样式*/
/* 标签管理页面的专属样式 */

/* 区域间隔 */
.section {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* 标签容器 */
.tags-container {
    margin-top: 10px;
}

/* 单个标签样式 */
.tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    /*cursor: pointer;*/
    position: relative;
    cursor: move;  /* 提示可以拖动 */
}
/* 正在拖拽中的标签：本体变淡，列表里看起来是这一项在“游走” */
.tag.dragging {
    opacity: 0.3;   /* 如果你想更极端，可以改成 0，让本体完全透明 */
}

/* 选中状态 */
.tag.selected {
    background: #4caf50;
    color: #fff;
}

/* 删除图标（编辑模式下显示） */
.tag .delete-icon {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: pointer;
}

/* 编辑模式下显示删除图标 */
.edit-mode .tag .delete-icon {
    display: block;
}

/* 按钮样式 */
.add-btn, .edit-btn {
    padding: 5px 10px;
    margin-left: 10px;
    cursor: pointer;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    padding: 20px;
    width: 300px;
    border-radius: 4px;
    position: relative;
}
.modal-content h3 {
    margin-top: 0;
}
.modal-actions {
    margin-top: 15px;
    text-align: right;
}
.modal-actions button {
    margin-left: 10px;
}

/* 关闭按钮 */
.close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
}

/* 错误提示 */
.error {
    color: red;
    font-size: 14px;
}
/*以上是tags页的样式*/

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .section {
        padding: 10px;
        margin-bottom: 15px;
    }
    .tag {
        padding: 4px 8px;
        margin: 4px;
        font-size: 14px;
    }
    .modal-content {
        width: 90%;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 8px;
        margin-bottom: 10px;
    }
    .tag {
        padding: 3px 6px;
        margin: 3px;
        font-size: 12px;
    }
    .modal-content {
        width: 95%;
        padding: 10px;
    }
}

/*题目标签页面*/
/* 新增区域类型徽章样式 */
    .area-type-badge {
      display: inline-block;
      background-color: #4caf50; /* 绿色背景 */
      color: #fff;
      padding: 3px 8px;
      border-radius: 3px;
      cursor: pointer;
      margin-right: 10px;
    }
    /* 使编辑和删除按钮在同一行排列 */
    .area-actions {
      display: inline-block;
      margin-left: 20px;
    }