/* CoT Settings Styles */

.cot-items-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cot-item-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.cot-item-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-color: #e0e0e0;
}

/* 锁定条目样式 */
.cot-item-card.locked {
    background: #fcfcfc;
    border-left: 3px solid var(--primary-color);
}

.cot-item-card.locked .cot-item-name {
    color: #333;
    font-weight: 600;
}

.cot-item-card.locked::after {
    content: "🔒";
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 10px;
    opacity: 0.3;
    pointer-events: none;
}

/* 拖拽把手 (虽然目前是点击排序，预留样式) */
.cot-drag-handle {
    color: #ccc;
    cursor: grab;
    font-size: 18px;
    line-height: 1;
}

/* 内容区域 */
.cot-item-content {
    flex: 1;
    min-width: 0; /* 防止文本溢出 */
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cot-item-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cot-item-preview {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 按钮组 */
.cot-btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cot-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: #f5f5f5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.cot-icon-btn:hover:not(:disabled) {
    background: #e0e0e0;
    color: #333;
}

.cot-icon-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cot-icon-btn.danger:hover {
    background: #fee;
    color: #d32f2f;
}

.cot-icon-btn svg {
    width: 16px;
    height: 16px;
}

/* 模态框只读样式 */
.cot-readonly-textarea {
    background-color: #f9f9f9;
    color: #666;
    cursor: default;
}

.cot-lock-notice {
    font-size: 12px;
    color: #d32f2f;
    background: #fff0f0;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* XML 说明按钮样式 */
.cot-help-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    border: none;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.2s;
}

.cot-help-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* XML 说明内容样式 */
.xml-tag-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.xml-tag-item:last-child {
    border-bottom: none;
}

.xml-tag-item code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #d63384;
    font-family: monospace;
    font-weight: bold;
    font-size: 14px;
}

.xml-tag-item p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #555;
}
