﻿/* Workflow Designer + Execution Panel */

:root {
  --wf-bg: #f4f6fb;
  --wf-surface: #ffffff;
  --wf-surface-alt: #f8fafc;
  --wf-border: #dbe3ef;
  --wf-border-strong: #c5d2e4;
  --wf-text: #0f172a;
  --wf-text-muted: #64748b;
  --wf-primary: #0f6cbd;
  --wf-primary-soft: #dbeafe;
  --wf-success: #16a34a;
  --wf-danger: #dc2626;
  --wf-warn: #d97706;
  --wf-link: #2f9e63;
  --wf-link-hover: #1b7f4a;
  --wf-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --wf-shadow-md: 0 8px 18px rgba(15, 23, 42, 0.12);
  --wf-transition: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Demo host page */
.demo-container {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--wf-bg);
  color: var(--wf-text);
  font-family: Inter, "Segoe UI", sans-serif;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--wf-surface);
  border-bottom: 1px solid var(--wf-border);
  box-shadow: var(--wf-shadow-sm);
}

.demo-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.demo-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--wf-text-muted);
}

.demo-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.demo-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.demo-canvas-section {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--wf-border);
  background: var(--wf-surface-alt);
}

.demo-execution-section {
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  min-height: 0;
}

.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wf-text-muted);
  font-size: 14px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform var(--wf-transition), box-shadow var(--wf-transition), background var(--wf-transition), border-color var(--wf-transition);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--wf-shadow-sm);
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-success:hover {
  background: #15803d;
}

.btn-secondary {
  background: #eef2f8;
  border-color: var(--wf-border);
  color: #1e293b;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn:disabled {
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* Workflow editor layout */
.workflow-editor-container {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--wf-surface-alt);
  overflow: hidden;
}

.workflow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--wf-border);
  background: var(--wf-surface);
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.toolbar-center {
  flex: 1 1 auto;
  justify-content: center;
}

.toolbar-right {
  justify-content: flex-end;
}

.toolbar-btn {
  border: 1px solid var(--wf-border);
  border-radius: 7px;
  background: var(--wf-surface);
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  min-height: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--wf-transition), border-color var(--wf-transition);
}

.toolbar-btn:hover {
  background: #eff6ff;
  border-color: #bfd8ff;
}

.toolbar-btn-primary {
  background: #0f6cbd;
  border-color: #0f6cbd;
  color: #ffffff;
}

.toolbar-btn-primary:hover {
  background: #0b5aa0;
  border-color: #0b5aa0;
}

.toolbar-btn-mini {
  padding: 3px 7px;
  min-height: 22px;
  font-size: 10px;
}

.toolbar-select {
  border: 1px solid var(--wf-border);
  border-radius: 7px;
  background: #ffffff;
  color: #1e293b;
  padding: 3px 8px;
  min-height: 24px;
  font-size: 11px;
  font-weight: 600;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  background: var(--wf-border);
}

.zoom-display {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  min-width: 50px;
  text-align: center;
}

.workflow-status {
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid transparent;
}

.workflow-status.status-ok {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.workflow-status.status-error {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.workflow-validation-badge {
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid #f59e0b;
  color: #92400e;
  background: #fef3c7;
  cursor: pointer;
  user-select: none;
}

.workflow-validation-badge:hover {
  background: #fde68a;
}

.workflow-counter,
.workflow-counter-dot {
  font-size: 12px;
  color: var(--wf-text-muted);
}

.workflow-editor-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.workflow-validation-console {
  background: #1e1e1e;
  border-bottom: 1px solid #3a3a3a;
  padding: 3px 0;
  max-height: 96px;
  overflow-y: auto;
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
}

.wvc-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 1px 12px;
  line-height: 1.5;
  white-space: nowrap;
}

.wvc-row-clickable {
  cursor: pointer;
}

.wvc-row-clickable:hover {
  background: #2a2a2a;
}

.wvc-marker {
  color: #f59e0b;
  font-size: 10px;
  flex-shrink: 0;
}

.wvc-source {
  color: #60a5fa;
  font-size: 11px;
  flex-shrink: 0;
}

.wvc-msg {
  color: #fca5a5;
  font-size: 11px;
}

.workflow-canvas-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--wf-border);
  background: #f3f6fb;
  outline: none;
  cursor: grab;
}

.workflow-canvas-wrapper:active {
  cursor: grabbing;
}

.workflow-canvas-svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}

.workflow-canvas-background {
  fill: #f3f6fb;
}

.workflow-grid-major {
  stroke: #d6dfeb;
  stroke-width: 0.8;
}

.workflow-grid-minor {
  stroke: #e8eef7;
  stroke-width: 0.7;
}

/* Links */
.workflow-link-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 12;
  cursor: pointer;
}

.workflow-link {
  fill: none;
  transition: stroke var(--wf-transition), stroke-width var(--wf-transition), filter var(--wf-transition);
}

.workflow-link.link-highlighted,
.workflow-link.link-selected {
  stroke: var(--wf-link-hover) !important;
  filter: drop-shadow(0 0 3px rgba(26, 127, 74, 0.25));
}

.arrowhead-sequential {
  fill: var(--wf-link);
  stroke: none;
}

.arrowhead-conditional-true {
  fill: #16a34a;
  stroke: none;
}

.arrowhead-conditional-false {
  fill: #dc2626;
  stroke: none;
}

.arrowhead-loop {
  fill: #0ea5e9;
  stroke: none;
}

.workflow-link-label-box {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1;
}

.workflow-link-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
  pointer-events: none;
}

.workflow-link-label.label-true {
  fill: #15803d;
}

.workflow-link-label.label-false {
  fill: #b91c1c;
}

.workflow-link-label.label-default {
  fill: #475569;
}

/* Nodes */
.workflow-node-group {
  cursor: move;
  transition: filter var(--wf-transition);
}

.workflow-node-group .workflow-node-card {
  filter: drop-shadow(0 3px 7px rgba(15, 23, 42, 0.12));
}

.workflow-node-group:hover .workflow-node-card {
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.15));
}

.workflow-node-group.node-selected .workflow-node-card {
  stroke: #0f6cbd;
  stroke-width: 1.8;
  filter: drop-shadow(0 10px 20px rgba(15, 108, 189, 0.2));
}

.workflow-node-group.node-error .workflow-node-card {
  stroke: #dc2626;
  stroke-width: 1.8;
}

.workflow-node-group.node-connect-source .workflow-node-card {
  stroke: #0f6cbd;
  stroke-width: 2;
}

.workflow-node-group.node-connect-target .workflow-node-card {
  stroke: #0ea5e9;
  stroke-width: 2;
}

.workflow-node-header-line {
  shape-rendering: geometricPrecision;
}

.workflow-node-glyph {
  fill: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.workflow-node-title {
  font-size: 14px;
  font-weight: 700;
  dominant-baseline: middle;
}

.workflow-node-subtitle {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  dominant-baseline: middle;
}

.workflow-node-id {
  font-size: 10px;
  dominant-baseline: middle;
}

.node-port {
  fill: #ffffff;
  stroke: #0f6cbd;
  stroke-width: 1.6;
  transition: stroke var(--wf-transition), fill var(--wf-transition);
}

.node-port-output:hover,
.node-port-input:hover,
.node-port-active {
  fill: #dbeafe;
  stroke-width: 2;
}

.node-port-target {
  fill: #ecfeff;
  stroke: #0e7490;
}

.workflow-link-preview {
  pointer-events: none;
}

.workflow-error-dot {
  fill: #dc2626;
  stroke: #ffffff;
  stroke-width: 2;
}

.workflow-error-text {
  fill: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

/* Properties */
.workflow-properties-panel {
  width: 396px;
  min-width: 396px;
  max-width: 396px;
  height: 100%;
  min-height: 0;
  background: var(--wf-surface);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--wf-border);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--wf-border);
  background: #f8fbff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.panel-head-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f6cbd;
  background: var(--wf-primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 8px;
}

.panel-collapse-btn {
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.panel-collapse-btn:hover {
  background: #eef2ff;
  border-color: #bfd8ff;
}

.workflow-properties-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  z-index: 5;
  border: 1px solid var(--wf-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  color: #334155;
  width: 34px;
  min-width: 34px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
}

.workflow-properties-toggle:hover {
  background: #eef2ff;
  border-color: #bfd8ff;
}

.workflow-properties-toggle-icon {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.panel-content {
  padding: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.property-group {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.property-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.property-group input {
  border: 1px solid var(--wf-border);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 12px;
  min-height: 32px;
  color: #0f172a;
  background: #ffffff;
}

/* Override generic app rules on input[type=number] inside workflow panel */
.workflow-editor-container .property-group input[type="number"] {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  border: 1px solid var(--wf-border) !important;
  border-radius: 7px !important;
  color: #0f172a !important;
  appearance: textfield !important;
  -webkit-appearance: textfield !important;
}

.property-input-compact {
  width: 96px !important;
  max-width: 96px !important;
  min-width: 68px !important;
  margin: 0 !important;
  text-align: center !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}

/* Keep compact numeric fields compact even with global number-input overrides. */
.workflow-editor-container .property-group input[type="number"].property-input-compact {
    width: 96px !important;
    max-width: 96px !important;
    min-width: 68px !important;
    padding: 6px 7px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    font-size: 12px;
    min-height: 32px;
}

.property-group-compact {
  align-self: start;
}

.property-group select,
.property-group textarea {
  border: 1px solid var(--wf-border);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 12px;
  color: #0f172a;
  background: #ffffff;
  font-family: inherit;
}

.property-group select {
  min-height: 32px;
}

.property-group textarea {
  resize: vertical;
  line-height: 1.35;
}

.property-divider {
  margin: 14px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--wf-border);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sql-resource-navigator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid rgba(17,24,39,0.10);
  border-radius: 8px;
  background: rgba(248,250,252,0.9);
}

.sql-resource-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sql-resource-row label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.sql-resource-row select {
  border: 1px solid var(--wf-border);
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 11px;
  min-height: 24px;
  color: #0f172a;
  background: #ffffff;
}

.property-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.property-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.property-toggle {
  justify-content: center;
}

.property-toggle label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.property-toggle input[type="checkbox"] {
  width: 15px;
  height: 15px;
}

.property-note {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--wf-text-muted);
}

.reference-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.panel-inline-actions {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Credential picker */
.property-warning {
  font-size: 11px;
  color: #b45309;
  background: rgba(245,158,11,.10);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 4px;
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
}
.credential-badge-bearer { background: rgba(59,130,246,.12); color: #2563eb; }
.credential-badge-basic  { background: rgba(16,185,129,.12); color: #059669; }
.credential-badge-oauth2 { background: rgba(245,158,11,.12); color: #d97706; }

/* Debug console */
.wf-debug-console {
  margin-top: 10px;
  background: #1a1a2e;
  border-radius: 6px;
  overflow: hidden;
  font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
}

.wf-debug-header {
  background: #16213e;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-bottom: 1px solid #2d3748;
}

.wf-debug-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 1px 10px;
  line-height: 1.6;
}

.wf-debug-time {
  color: #475569;
  font-size: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wf-debug-tag {
  color: #60a5fa;
  font-size: 10px;
  font-weight: 600;
  min-width: 90px;
  flex-shrink: 0;
  white-space: nowrap;
}

.wf-debug-msg {
  color: #cbd5e1;
  font-size: 10px;
  word-break: break-all;
}

.wf-debug-error .wf-debug-tag { color: #f87171; }
.wf-debug-error .wf-debug-msg { color: #fca5a5; }

.http-test-block {
  margin-top: 10px;
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  background: #f8fafc;
}

.http-test-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--wf-border);
  font-size: 12px;
  color: #334155;
}

.http-test-json {
  margin: 0;
  padding: 10px;
  max-height: 180px;
  overflow-y: auto;
  overflow-x: auto;
  white-space: pre;
  font-size: 11px;
  line-height: 1.45;
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: #0f172a;
  background: #ffffff;
}

.http-test-json-large {
  min-height: 280px;
  max-height: 420px;
}

.http-test-json-wrap {
  position: relative;
}

.http-test-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 46px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #cfd9e7;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
  transition: background .12s ease-in-out, border-color .12s ease-in-out;
}

.http-test-copy-btn:hover {
  background: #eff6ff;
  border-color: #bfd8ff;
}

.reference-path-list {
  max-height: 220px;
  overflow: auto;
}

.reference-path-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #e2e8f0;
}

.reference-path-col {
  min-width: 0;
}

.reference-path-col code {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #eff6ff;
  color: #1e3a8a;
}

.property-group input:disabled {
  color: #475569;
  background: #f8fafc;
}

.panel-error {
  margin-top: 4px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.panel-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--wf-border);
  display: flex;
  gap: 8px;
}

.panel-empty {
  color: #64748b;
  text-align: center;
  font-size: 13px;
  padding: 28px 16px;
}

.panel-empty p {
  margin: 8px 0;
}

.btn-sm {
  flex: 1;
  padding: 9px 10px;
  font-size: 12px;
}

.btn-danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.btn-danger:hover {
  background: #fee2e2;
}

/* Footer hints */
.workflow-hints {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #64748b;
  padding: 5px 10px;
  border-top: 1px solid var(--wf-border);
  background: var(--wf-surface);
}

/* Execution panel */
.execution-panel-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #10213b;
  color: #dbe6f7;
  border-left: 1px solid #29446e;
}

.execution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #27446f;
  background: #0d1b32;
}

.execution-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.execution-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fbff;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-running {
  color: #bae6fd;
  background: rgba(2, 132, 199, 0.24);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.status-success {
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-error {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
  animation: wf-pulse 1.35s infinite;
}

@keyframes wf-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.35; }
  100% { opacity: 1; }
}

.btn-close {
  border: 0;
  background: transparent;
  color: #93a9ca;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.btn-close:hover {
  color: #ffffff;
}

.execution-stats {
  display: flex;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid #27446f;
  background: #0d1b32;
  font-size: 11px;
}

.stat-item {
  display: inline-flex;
  gap: 6px;
}

.stat-label {
  color: #93a9ca;
}

.stat-value {
  color: #f8fbff;
  font-weight: 700;
}

.execution-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px;
}

.log-entry {
  display: flex;
  gap: 9px;
  margin-bottom: 8px;
  border-left: 3px solid #2d4e80;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 8px;
}

.log-entry.log-stepstarted {
  border-left-color: #38bdf8;
}

.log-entry.log-stepcompleted {
  border-left-color: #22c55e;
}

.log-entry.log-error {
  border-left-color: #f87171;
}

.log-entry.log-info {
  border-left-color: #f59e0b;
}

.log-icon {
  min-width: 13px;
  color: #c7d8f1;
  font-size: 10px;
  padding-top: 1px;
}

.log-content {
  min-width: 0;
  flex: 1;
}

.log-message {
  font-size: 12px;
  color: #e2ebf8;
  word-break: break-word;
}

.log-details {
  color: #9db1d0;
  margin-left: 4px;
}

.log-time {
  font-size: 10px;
  color: #89a0c2;
  margin-top: 2px;
}

.log-empty {
  color: #9db1d0;
  text-align: center;
  padding: 26px 14px;
}

.execution-footer {
  border-top: 1px solid #27446f;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  background: #0d1b32;
}

.execution-footer .btn-primary {
  border: 1px solid #20b69c;
  background: #14b8a6;
  color: #ffffff;
}

.execution-footer .btn-secondary {
  border: 1px solid #315a8f;
  background: transparent;
  color: #dbe6f7;
}

/* Responsiveness */
@media (max-width: 1100px) {
  .demo-content {
    flex-direction: column;
  }

  .demo-canvas-section {
    border-right: 0;
    border-bottom: 1px solid var(--wf-border);
  }

  .demo-execution-section {
    width: 100%;
    min-width: 100%;
    max-width: none;
    height: 280px;
  }
}

@media (max-width: 920px) {
  .workflow-editor-main {
    flex-direction: column;
  }

  .property-grid-three {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-properties-panel {
    width: 100%;
    min-width: 100%;
    max-width: none;
    border-left: 0;
    border-top: 1px solid var(--wf-border);
    max-height: 280px;
  }

  .http-test-copy-btn {
    opacity: 1;
    pointer-events: auto;
  }
}
