/* ============================================
   预设面板样式
   ============================================ */

/* 预设条目编辑器 */
.preset-items-editor {
  margin-top: 16px;
}

.preset-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.preset-items-header h4 {
  font-size: 14px;
  font-weight: 600;
}

.preset-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preset-item-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.preset-item-card:hover {
  border-color: var(--primary-light);
}
.preset-item-card.disabled {
  opacity: 0.6;
}

.preset-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-surface-hover);
  border-bottom: 1px solid var(--border-light);
}
.preset-item-header input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 2px 4px;
}
.preset-item-header input[type="text"]:focus {
  background: var(--bg-input);
  border-radius: 2px;
}

.preset-item-toggle {
  flex-shrink: 0;
}

.preset-item-delete {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  transition: all var(--transition-fast);
}
.preset-item-delete:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.preset-item-body {
  padding: 10px 12px;
}
.preset-item-body textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  background: var(--bg-input);
  color: var(--text-primary);
}
.preset-item-body textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-bg);
}
