/**
 * 创建分类弹窗样式
 * 符合代码规范：<400行
 * 使用独立前缀 app-tool-create-category-，确保面板独立性
 */

/* 创建分类弹窗 */
.app-tool-create-category-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3100;
    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;
}

.app-tool-create-category-modal.show {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 1;
}

.app-tool-create-category-modal-content {
    max-width: 500px;
    width: 90%;
    position: relative;
    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;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.app-tool-create-category-modal.show .app-tool-create-category-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* 弹窗头部 */
.app-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;
}

.app-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;
}

.app-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;
}

.app-tool-create-category-close:hover {
    background: var(--bg-hover);
    color: var(--text-accent);
}

/* 弹窗内容 */
.app-tool-create-category-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.app-tool-create-category-content .form-group {
    margin-bottom: 0;
}

.app-tool-create-category-content .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.app-tool-create-category-content .form-label.required::after {
    content: ' *';
    color: #e74c3c;
}

.app-tool-create-category-content .form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.app-tool-create-category-content .form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}

.app-tool-create-category-content .form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
}

.app-tool-create-category-content .form-error {
    margin-top: 6px;
    font-size: 12px;
    color: #e74c3c;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    min-height: 18px;
}

/* 弹窗底部 */
.app-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;
}

.app-tool-create-category-footer .btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    font-weight: 500;
}

.app-tool-create-category-footer .btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.app-tool-create-category-footer .btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.app-tool-create-category-footer .btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.app-tool-create-category-footer .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.app-tool-create-category-footer .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

