.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  box-sizing: border-box;
  background: var(--node-editor-control-background, rgba(255, 255, 255, 0.95));
  border: var(--node-editor-input-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  z-index: 100;
  user-select: none;
}

.toolbarSection {
  display: flex;
  align-items: center;
  gap: 4px;
}

.toolButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--node-editor-label-color, #000);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.toolButton:hover {
  background: var(--node-editor-quaternary-system-fill-color, rgba(0, 0, 0, 0.08));
}

.toolButton:active {
  background: var(--node-editor-tertiary-system-fill-color, rgba(0, 0, 0, 0.12));
  transform: scale(0.95);
}

.toolButton:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.toolButton:disabled:hover {
  background: transparent;
}

.toolButton.active {
  background: var(--node-editor-accent-color, #007aff);
  color: white;
}

.toolButton.active:hover {
  background: var(--node-editor-accent-color-hover, #0051d5);
}

.separator {
  width: 1px;
  height: 24px;
  background: var(--node-editor-separator-color, rgba(0, 0, 0, 0.1));
}

.zoomDisplay {
  display: flex;
  align-items: center;
  min-width: 60px;
}

.zoomSelect {
  width: 100%;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--node-editor-label-color, #000);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.zoomSelect:hover {
  background: var(--node-editor-quaternary-system-fill-color, rgba(0, 0, 0, 0.08));
}

.zoomSelect:focus {
  outline: none;
  border-color: var(--node-editor-accent-color, #007aff);
}

.toolbarSpacer {
  flex: 1;
  min-width: 20px;
}

.statusIndicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 11px;
}

.statusLabel {
  color: var(--node-editor-secondary-label-color, rgba(0, 0, 0, 0.5));
}

.statusValue {
  color: var(--node-editor-label-color, #000);
  font-weight: 500;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .toolbar {
    background: var(--node-editor-control-background, rgba(30, 30, 30, 0.95));
    border-color: var(--node-editor-input-border, rgba(255, 255, 255, 0.1));
  }

  .toolButton {
    color: var(--node-editor-label-color, #fff);
  }

  .toolButton:hover {
    background: var(--node-editor-quaternary-system-fill-color, rgba(255, 255, 255, 0.08));
  }

  .toolButton:active {
    background: var(--node-editor-tertiary-system-fill-color, rgba(255, 255, 255, 0.12));
  }

  .separator {
    background: var(--node-editor-separator-color, rgba(255, 255, 255, 0.1));
  }

  .zoomSelect {
    color: var(--node-editor-label-color, #fff);
  }

  .zoomSelect:hover {
    background: var(--node-editor-quaternary-system-fill-color, rgba(255, 255, 255, 0.08));
  }

  .statusLabel {
    color: var(--node-editor-secondary-label-color, rgba(255, 255, 255, 0.5));
  }

  .statusValue {
    color: var(--node-editor-label-color, #fff);
  }
}
