/* ATIRO WORKFLOW - カスタムスタイル */

/* React Flow のノードカスタムスタイル */
.atiro-node {
  background: #fff;
  border: 2px solid #6366f1;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 180px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-size: 13px;
}
.atiro-node .node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 4px;
}
.atiro-node .node-type {
  font-size: 11px;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.atiro-node.selected {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* ステータス色 */
.status-success { color: #16a34a; }
.status-failed  { color: #dc2626; }
.status-running { color: #2563eb; }
.status-queued  { color: #ca8a04; }
.status-skipped { color: #6b7280; }
.status-cancelled { color: #6b7280; }

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-failed  { background: #fee2e2; color: #991b1b; }
.badge-running { background: #dbeafe; color: #1e40af; }
.badge-queued  { background: #fef3c7; color: #92400e; }
.badge-draft   { background: #e5e7eb; color: #374151; }
.badge-active  { background: #dcfce7; color: #166534; }
.badge-paused  { background: #fef3c7; color: #92400e; }
.badge-skipped { background: #f3f4f6; color: #6b7280; }
.badge-cancelled { background: #f3f4f6; color: #6b7280; }
.badge-pending { background: #f3f4f6; color: #6b7280; }

/* スクロールバー */
.atiro-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.atiro-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.atiro-scroll::-webkit-scrollbar-track { background: transparent; }

/* JSON プレビュー */
pre.json {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  overflow-x: auto;
  max-height: 360px;
}

/* React Flow Handle 強調 */
.react-flow__handle {
  width: 10px !important;
  height: 10px !important;
  background: #6366f1 !important;
  border: 2px solid #fff !important;
}

/* ノードパレットアイテム */
.palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  cursor: grab;
  user-select: none;
  transition: all 0.15s;
}
.palette-item:hover {
  border-color: #6366f1;
  background: #eef2ff;
}
.palette-item:active { cursor: grabbing; }

/* タブ */
.tab-active {
  border-bottom: 2px solid #6366f1;
  color: #4338ca;
  font-weight: 600;
}

/* react-flow 背景 */
.react-flow__background { background: #f8fafc; }
