/* Styles for the SubEditor custom node */
.node {
  display: flex;
  flex-direction: column;
  background: var(--node-editor-surface-color, #ffffff);
  border-radius: var(--node-editor-radius-sm);
  padding: 12px;

  box-sizing: border-box;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  color: var(--node-editor-text-color, #0f172a);
}

.node[data-is-dragging="true"] {
  opacity: 0.75;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.title {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin: 0;
}

.description {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--node-editor-secondary-label-color, #64748b);
}

.preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.02);
  padding: 8px;
  min-height: 110px;
  box-sizing: border-box;
}

.previewCanvas {
  position: relative;
  width: 100%;
  height: 100%;
}

.stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--node-editor-secondary-label-color, #64748b);
  margin-top: 10px;
}

.timestamp {
  font-family: "Menlo", "Consolas", "Ubuntu Mono", monospace;
  font-size: 0.7rem;
  color: rgba(100, 116, 139, 0.85);
}

.editButton {
  flex-shrink: 0;
}

.emptyState {
  font-size: 0.75rem;
  color: rgba(100, 116, 139, 0.8);
}
