:root {
  /* Core spacing scale */
  --node-editor-space-xs: 4px;
  --node-editor-space-sm: 8px;
  --node-editor-space-md: 12px;
  --node-editor-space-lg: 16px;
  --node-editor-space-xl: 24px;
  --node-editor-space-xxl: 32px;

  /* Layout spacing */
  --node-editor-control-padding: var(--node-editor-space-sm) var(--node-editor-space-lg);

  /* Inspector spacing system */
  --node-editor-inspector-space-xs: var(--node-editor-space-xs);
  --node-editor-inspector-space-sm: var(--node-editor-space-sm);
  --node-editor-inspector-space-md: var(--node-editor-space-md);
  --node-editor-inspector-space-lg: var(--node-editor-space-lg);
  --node-editor-inspector-space-xl: var(--node-editor-space-xl);
  --node-editor-inspector-space-xxl: var(--node-editor-space-xxl);
  --node-editor-inspector-content-padding: var(--node-editor-inspector-space-md);
  --node-editor-inspector-header-padding-top: var(--node-editor-inspector-space-md);
  --node-editor-inspector-header-padding-bottom: var(--node-editor-inspector-space-xs);
  --node-editor-inspector-header-gap: var(--node-editor-inspector-space-sm);
  --node-editor-inspector-section-gap: var(--node-editor-inspector-space-md);
  --node-editor-inspector-field-gap: var(--node-editor-inspector-space-sm);
  --node-editor-inspector-inline-gap: var(--node-editor-inspector-space-sm);
  --node-editor-inspector-empty-padding-vertical: var(--node-editor-inspector-space-xxl);
  --node-editor-inspector-empty-padding-horizontal: var(--node-editor-inspector-space-lg);
  --node-editor-inspector-input-padding: var(--node-editor-space-xs) var(--node-editor-space-sm);

  /* Inspector typography */
  --node-editor-inspector-font-size-title: 0.6875rem;
  --node-editor-inspector-line-height-title: 1.429;
  --node-editor-inspector-font-size-body: 0.875rem;
  --node-editor-inspector-line-height-body: 1.429;
  --node-editor-inspector-font-size-meta: 0.75rem;
  --node-editor-inspector-line-height-meta: 1.333;
  --node-editor-inspector-font-weight-medium: 500;
  --node-editor-inspector-font-size-heading: 0.875rem;
  --node-editor-inspector-font-size: var(--node-editor-inspector-font-size-body);
  --node-editor-inspector-line-height: var(--node-editor-inspector-line-height-body);

  /* Font families & typography - Unity uses clean sans-serif */
  --node-editor-theme-default-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --node-editor-theme-control-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --node-editor-theme-label-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --node-editor-system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --node-editor-font-mono: "SF Mono", "Cascadia Code", "Consolas", "Courier New", monospace;
  --node-editor-title-font: 500 0.875rem/1.429 var(--node-editor-theme-label-font-family);
  --node-editor-subtitle-font: 400 0.875rem/1.429 var(--node-editor-theme-label-font-family);
  --node-editor-caption-font: 400 0.75rem/1.333 var(--node-editor-theme-default-font-family);
  --node-editor-control-text-font: 400 var(--node-editor-inspector-font-size-body) / 1.429
    var(--node-editor-theme-control-font-family);
  --node-editor-input-font: 400 var(--node-editor-inspector-font-size-body) / 1.429
    var(--node-editor-theme-default-font-family);
  --node-editor-font-size-lg: 1rem;
  --node-editor-font-size-sm: 0.875rem;
  --node-editor-font-size-xs: 0.75rem;

  /* Canvas grid - subtle dark grid */
  --node-editor-grid-color: #000000;
  --node-editor-grid-opacity: 0.15;

  /* Shadow system - subtle shadows */
  --node-editor-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --node-editor-shadow-md: 0 2px 6px rgba(0, 0, 0, 0.6);
  --node-editor-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.7);

  /* Transition system */
  --node-editor-transition-duration: 0.15s;

  /* Inspector shadows */
  --node-editor-inspector-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.5), 0 1px 4px 0 rgba(0, 0, 0, 0.3);
  --node-editor-inspector-header-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Tree & List Components */
  --node-editor-tree-item-height: 28px;
  --node-editor-tree-indent: 16px;

  /* Control Buttons */
  --node-editor-control-button-size-sm: 16px;
  --node-editor-control-button-size: 20px;

  /* Icons */
  --node-editor-icon-size-sm: 14px;
  --node-editor-icon-selected-brightness: 1.3;

  /* Text colors - Unity Editor Professional dark theme */
  --node-editor-text-color: #c8c8c8;
  --node-editor-text-secondary: #a0a0a0;
  --node-editor-header-text-color: #d4d4d4;
  --node-editor-label-color: #c8c8c8;
  --node-editor-secondary-label-color: #a0a0a0;
  --node-editor-tertiary-label-color: #7f7f7f;
  --node-editor-quaternary-label-color: #5a5a5a;
  --node-editor-control-text-color: var(--node-editor-text-color);
  --node-editor-control-text-color-primary: #ffffff;
  --node-editor-control-text-color-secondary: var(--node-editor-text-color);
  --node-editor-control-hover-text-color-primary: #ffffff;
  --node-editor-input-text-color: var(--node-editor-text-color);
  --node-editor-selected-control-text-color: #ffffff;
  --node-editor-selected-menu-item-text-color: #ffffff;

  /* Status & accent colors - Unity's signature blue (#2c5aa0) */
  --node-editor-accent-color: #3f87f5;
  --node-editor-accent-color-hover: #4c8df7;
  --node-editor-color-primary: #3f87f5;
  --node-editor-keyboard-focus-indicator-color: rgba(63, 135, 245, 0.5);
  --node-editor-success-color: #6bc046;
  --node-editor-warning-color: #ffb900;
  --node-editor-caution-color: #ff4040;
  --node-editor-caution-hover-background: rgba(255, 64, 64, 0.15);
  --node-editor-system-orange-color: #ffb900;
  --node-editor-system-red-color: #ff4040;
  --node-editor-connection-color: #5a5a5a;

  /* Surface colors - Unity Editor hierarchy/inspector backgrounds */
  --node-editor-surface-primary: #3c3c3c;
  --node-editor-surface-secondary: #2b2b2b;
  --node-editor-surface-tertiary: #222222;
  --node-editor-background-surface: #2b2b2b;
  --node-editor-selected-content-background-color: rgba(63, 135, 245, 0.18);
  --node-editor-selected-control-color: rgba(63, 135, 245, 0.25);
  --node-editor-under-page-background-color: #1e1e1e;
  --node-editor-window-background-color: #1e1e1e;

  /* Control surfaces - Unity Editor button/control styling */
  --node-editor-control-background: #2b2b2b;
  --node-editor-control-background-primary: #3f87f5;
  --node-editor-control-background-secondary: #3c3c3c;
  --node-editor-control-hover-background: #404040;
  --node-editor-control-hover-background-primary: #4c8df7;
  --node-editor-hover-background: rgba(255, 255, 255, 0.06);
  --node-editor-control-box-shadow-primary: 0 1px 3px rgba(0, 0, 0, 0.7);
  --node-editor-control-box-shadow-secondary: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  --node-editor-disabled-control-text-color: rgba(200, 200, 200, 0.3);

  /* Input surfaces - Unity Editor input field styling */
  --node-editor-input-background: #222222;
  --node-editor-input-border: 1px solid #191919;
  --node-editor-input-border-hover: #3f87f5;
  --node-editor-input-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  --node-editor-input-padding: var(--node-editor-space-sm) var(--node-editor-space-md);

  /* Card & panel styling - Unity Inspector/Window panels */
  --node-editor-card-border-color: rgba(0, 0, 0, 0.7);
  --node-editor-card-border: 1px solid var(--node-editor-card-border-color);
  --node-editor-card-border-radius: var(--node-editor-radius-xs);
  --node-editor-card-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --node-editor-card-hover-box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --node-editor-card-elevated-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --node-editor-card-focus-box-shadow: 0 0 0 1px var(--node-editor-keyboard-focus-indicator-color);
  --node-editor-card-disabled-background: rgba(0, 0, 0, 0.25);
  --node-editor-card-filled-background: rgba(63, 135, 245, 0.1);
  --node-editor-card-filled-hover-background: rgba(63, 135, 245, 0.15);
  --node-editor-card-hover-border-color: rgba(63, 135, 245, 0.4);

  /* Dialogs & overlays */
  --node-editor-dialog-background: var(--node-editor-surface-secondary);
  --node-editor-dialog-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.6);
  --node-editor-dialog-level-elevation: 1000;

  /* Scrollbars - Unity style */
  --node-editor-scroll-bar-thumb-color: rgba(255, 255, 255, 0.15);
  --node-editor-active-scroll-bar-thumb-color: rgba(255, 255, 255, 0.25);

  /* Selected State Colors */
  --node-editor-selected-secondary-color: rgba(0, 166, 237, 0.95);
  --node-editor-selected-hover-background: rgba(0, 166, 237, 0.25);

  /* Tables & list accents */
  --node-editor-table-header-background-color: #2d2d2d;
  --node-editor-table-header-background-color-hover: #333333;
  --node-editor-table-header-background-color-active: #383838;

  /* Node-specific colors - Unity Shader Graph / Visual Scripting style */
  --node-editor-group-node-background: rgba(63, 135, 245, 0.08);
  --node-editor-group-node-border: rgba(63, 135, 245, 0.25);
  --node-editor-group-node-active-background: rgba(63, 135, 245, 0.15);
  --node-editor-group-node-active-color: rgba(63, 135, 245, 0.6);
  --node-editor-node-port-input-color: #6bc046;
  --node-editor-node-port-output-color: #ff4040;

  /* System fills */
  --node-editor-tertiary-system-background: rgba(255, 255, 255, 0.03);
  --node-editor-tertiary-system-fill-color: rgba(255, 255, 255, 0.05);
  --node-editor-quaternary-system-fill-color: rgba(255, 255, 255, 0.08);

  /* Border Radii - minimal for Unity look */
  --node-editor-border-radius-xxs: 2px;
  --node-editor-border-radius-xs: 3px;
  --node-editor-radius-xs: 3px;
  --node-editor-radius-sm: 4px;
  --node-editor-radius-md: 6px;
  --node-editor-control-border-radius: var(--node-editor-radius-xs);
  --node-editor-segment-control-border-radius: var(--node-editor-radius-xs);

  /* Borders */
  --node-editor-border-width: 1px;
  --node-editor-border-color: rgba(0, 0, 0, 0.6);
  --node-editor-divider-color: rgba(0, 0, 0, 0.5);
  --node-editor-separator-color: rgba(255, 255, 255, 0.08);

  /* Segment controls */
  --node-editor-segment-backdrop-filter: none;
  --node-editor-segment-control-background: rgba(0, 0, 0, 0.3);
  --node-editor-segment-control-background-color: transparent;
  --node-editor-segment-control-text-color: #9e9e9e;
  --node-editor-segment-control-active-background-color: #383838;
  --node-editor-segment-control-active-text-color: #ffffff;
  --node-editor-segment-control-segment-padding: var(--node-editor-space-xs) var(--node-editor-space-md);

  /* Tab Navigation - Unity segment style (toolbar buttons) */
  --node-editor-tab-nav-gap: 1px;
  --node-editor-tab-nav-padding: 0;
  --node-editor-tab-nav-border-radius: var(--node-editor-radius-xs);
  --node-editor-tab-nav-background: rgba(0, 0, 0, 0.3);
  --node-editor-tab-nav-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  --node-editor-tab-button-flex: 1;
  --node-editor-tab-button-min-height: 24px;
  --node-editor-tab-button-padding: var(--node-editor-space-xs) var(--node-editor-space-md);
  --node-editor-tab-button-border-radius: 0;
  --node-editor-tab-button-first-border-radius: var(--node-editor-radius-xs);
  --node-editor-tab-button-last-border-radius: var(--node-editor-radius-xs);
  --node-editor-tab-button-background: transparent;
  --node-editor-tab-button-color: #9e9e9e;
  --node-editor-tab-button-font-size: var(--node-editor-inspector-font-size-meta);
  --node-editor-tab-button-font-weight: 400;
  --node-editor-tab-button-active-background: #3c3c3c;
  --node-editor-tab-button-active-color: #ffffff;
  --node-editor-tab-button-active-font-weight: 500;
  --node-editor-tab-button-active-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --node-editor-tab-button-hover-background: rgba(255, 255, 255, 0.06);
  --node-editor-tab-button-hover-color: #c8c8c8;

  /* Connection styling - Unity Shader Graph connections */
  --node-editor-connection-base-stroke-width: 2.5;
  --node-editor-connection-active-stroke-width: 3.5;
  --node-editor-connection-flow-stripe-stroke-width: 2;
  --node-editor-connection-flow-stripe-active-stroke-width: 3;
  --node-editor-connection-direction-stroke-width: 2.5;
  --node-editor-connection-hover-shadow: drop-shadow(0 2px 4px rgba(63, 135, 245, 0.4));
  --node-editor-connection-selected-shadow: drop-shadow(0 3px 6px rgba(63, 135, 245, 0.6));
  --node-editor-connection-hover-opacity: 0.95;
  --node-editor-connection-dragging-opacity: 0.65;
  --node-editor-connection-stripe-dash-array: 10 14;
  --node-editor-connection-stripe-dash-offset-bg: -12;
  --node-editor-connection-stripe-opacity-accent: 0.95;
  --node-editor-connection-stripe-opacity-background: 0.55;
  --node-editor-connection-flow-animation-duration: 1.4s;
  --node-editor-connection-flow-animation-distance: -24;
  --node-editor-connection-base-transition: stroke 0.15s ease-out, stroke-width 0.15s ease-out;
  --node-editor-connection-arrow-transition: fill 0.15s ease-out;

  /* Connection drag styling */
  --node-editor-connection-drag-stroke-width-connecting: 2;
  --node-editor-connection-drag-stroke-width-disconnecting: 3;
  --node-editor-connection-drag-dash-array-connecting: 4 4;
  --node-editor-connection-drag-dash-array-disconnecting: 8 4;
  --node-editor-connection-drag-animation-duration: 0.5s;
  --node-editor-connection-drag-animation-distance: -8;

  /* Inspector icon button - Unity Editor style */
  --node-editor-inspector-icon-button-size: 26px;
  --node-editor-inspector-icon-button-size-sm: 22px;
  --node-editor-inspector-icon-button-icon-size: 14px;
  --node-editor-inspector-icon-button-icon-size-sm: 12px;
  --node-editor-inspector-icon-button-background: transparent;
  --node-editor-inspector-icon-button-background-hover: rgba(255, 255, 255, 0.06);
  --node-editor-inspector-icon-button-background-active: rgba(63, 135, 245, 0.18);
  --node-editor-inspector-icon-button-color: #a0a0a0;
  --node-editor-inspector-icon-button-color-hover: #c8c8c8;
  --node-editor-inspector-icon-button-color-active: #3f87f5;
  --node-editor-inspector-icon-button-color-disabled: rgba(200, 200, 200, 0.25);

  /* Inspector input label - Unity Editor typography */
  --node-editor-inspector-input-label-color: #a0a0a0;
  --node-editor-inspector-input-label-font-size: 0.75rem;
  --node-editor-inspector-input-label-font-weight: 400;
  --node-editor-inspector-input-label-width: auto;
  --node-editor-inspector-input-label-min-width: 48px;

  /* Inspector segment control - Unity toolbar style */
  --node-editor-inspector-segment-background: rgba(0, 0, 0, 0.3);
  --node-editor-inspector-segment-border-radius: 3px;
  --node-editor-inspector-segment-padding: 1px;
  --node-editor-inspector-segment-gap: 1px;
  --node-editor-inspector-segment-button-background: transparent;
  --node-editor-inspector-segment-button-background-hover: rgba(255, 255, 255, 0.06);
  --node-editor-inspector-segment-button-background-active: #383838;
  --node-editor-inspector-segment-button-color: #9e9e9e;
  --node-editor-inspector-segment-button-color-hover: #c8c8c8;
  --node-editor-inspector-segment-button-color-active: #ffffff;
  --node-editor-inspector-segment-button-shadow-active: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
