/* Import flowscope-react styles - must be first */
@import '@pondpilot/flowscope-react/styles.css' layer(base);

@import 'tailwindcss';

@source './src/**/*.{js,ts,jsx,tsx}';
@source '../../../packages/react/src/**/*.{js,ts,jsx,tsx}';

/*
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentcolor);
  }
}

:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Open Sans', 'Helvetica Neue', sans-serif;
}

html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* VSCode theme integration */
body {
  background-color: var(--vscode-editor-background, #1e1e1e);
  color: var(--vscode-foreground, #cccccc);
}

/* Override some flowscope styles for VSCode dark theme */
.react-flow {
  background-color: var(--vscode-editor-background, #1e1e1e) !important;
}

.react-flow__background {
  background-color: var(--vscode-editor-background, #1e1e1e) !important;
}

/* Fix panel backgrounds for dark theme */
.react-flow__panel {
  background-color: transparent !important;
}

.react-flow__panel > div {
  background-color: var(--vscode-editorWidget-background, #252526) !important;
  border-color: var(--vscode-editorWidget-border, #454545) !important;
}

/* Controls styling */
.react-flow__controls {
  background-color: var(--vscode-editorWidget-background, #252526) !important;
  border-color: var(--vscode-editorWidget-border, #454545) !important;
}

.react-flow__controls-button {
  background-color: var(--vscode-button-background, #0e639c) !important;
  border-color: var(--vscode-editorWidget-border, #454545) !important;
  color: var(--vscode-button-foreground, #ffffff) !important;
}

.react-flow__controls-button:hover {
  background-color: var(--vscode-button-hoverBackground, #1177bb) !important;
}

/* MiniMap styling */
.react-flow__minimap {
  background-color: var(--vscode-editorWidget-background, #252526) !important;
  border-color: var(--vscode-editorWidget-border, #454545) !important;
}
