/**
 * 脚本工具创建分类弹窗样式
 * 符合代码规范：<400行
 * 使用独立前缀 script-tool-create-category-，确保面板独立性
 */

/* 创建分类弹窗 */
#scriptToolCreateCategoryModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3001;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, opacity 0.3s ease;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

#scriptToolCreateCategoryModal.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 1;
}

.script-tool-create-category-modal {
    max-width: 480px;
    width: 90%;
    height: 350px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

#scriptToolCreateCategoryModal.show .script-tool-create-category-modal {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 创建分类弹窗头部 */
.script-tool-create-category-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-shrink: 0;
}

.script-tool-create-category-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.script-tool-create-category-close {
    position: absolute;
    top: 18px;
    right: 20px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.script-tool-create-category-close:hover {
    background: var(--bg-hover);
    color: var(--text-accent);
}

/* 创建分类弹窗内容 */
.script-tool-create-category-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 创建分类弹窗底部 */
.script-tool-create-category-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* 滚动条样式 */
.script-tool-create-category-content::-webkit-scrollbar {
    width: 6px;
}

.script-tool-create-category-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.script-tool-create-category-content::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 3px;
}

.script-tool-create-category-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

