:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--node-editor-theme-default-font-family, system-ui, sans-serif);
  background: var(--node-editor-background-surface,
      var(--node-editor-window-background-color, #ffffff));
  color: var(--node-editor-text-color, #0f172a);
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg,
      var(--node-editor-under-page-background-color, #0f172a),
      var(--node-editor-surface-secondary, #1e293b));
  color: var(--node-editor-text-color, #0f172a);
}

.header {
  padding: 8px 16px;
  border-bottom: 1px solid var(--node-editor-divider-color, rgba(148, 163, 184, 0.25));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.headerContent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.title {
  margin: 0;
  font: var(--node-editor-title-font, 600 16px/1.25 system-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.description {
  font-size: 12px;
  color: var(--node-editor-secondary-label-color, #64748b);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select {
  background-color: var(--node-editor-control-background, #1e293b);
  color: var(--node-editor-control-text-color, #f8fafc);
  border: var(--node-editor-input-border);
  border-radius: var(--node-editor-control-border-radius, 6px);
  padding: var(--node-editor-space-sm, 6px) var(--node-editor-space-md, 12px);
  font: var(--node-editor-control-text-font, 600 14px/1.4 system-ui);
  box-sizing: border-box;
  min-width: 140px;
  max-width: 100%;
}

/* Tablet and below */
@media (max-width: 768px) {
  .header {
    padding: 12px;
  }

  .headerContent {
    flex-basis: 100%;
    order: -1;
  }

  .title {
    font-size: 14px;
  }

  .description {
    font-size: 11px;
  }

  .controls {
    width: 100%;
    justify-content: stretch;
  }

  .select {
    flex: 1;
    min-width: 0;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .header {
    padding: 8px;
    gap: 8px;
  }

  .title {
    font-size: 13px;
  }

  .description {
    display: none;
  }

  .controls {
    flex-direction: column;
    gap: 6px;
  }

  .select {
    width: 100%;
    font-size: 13px;
    padding: 8px 10px;
  }
}

.main {
  flex: 1;
  overflow: hidden;
  background: var(--node-editor-background-surface,
      var(--node-editor-window-background-color, #0b1120));
  position: relative;
}
