.builder-sidebar {
  background: var(--rr-card);
  border: 1px solid var(--rr-border);
  border-radius: 16px;
  padding: 16px 12px;
  margin: 16px;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: calc(100vh - 72px);
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
  flex-shrink: 0;
  scrollbar-width: none;
  scrollbar-color: rgb(0 0 0 / 25%) transparent;
}

.builder-sidebar__search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.builder-sidebar__search-icon {
  position: absolute;
  left: 10px;
  color: var(--rr-text-weak);
  pointer-events: none;
}

.builder-sidebar__search-input {
  width: 100%;
  padding: 8px 10px 8px 32px;
  border: 1px solid var(--rr-border);
  border-radius: 8px;
  background: var(--rr-subtle);
  font-size: 13px;
  outline: none;
  transition: all 0.15s;
}

.builder-sidebar__search-input:focus {
  background: var(--rr-card);
  border-color: var(--rr-text-weak);
  box-shadow: 0 0 0 2px rgb(59 130 246 / 6%);
}

.builder-sidebar__nodes-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.builder-sidebar__node-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  position: relative;
}

.builder-sidebar__node-btn:hover {
  background: var(--rr-hover);
}

.builder-sidebar__node-btn:active {
  transform: scale(0.98);
}

.builder-sidebar__btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.icon-navigate {
  background: #667eea;
}

.icon-click {
  background: #f5576c;
}

.icon-fill {
  background: #4facfe;
}

.icon-wait {
  background: #43e97b;
}

.icon-extract {
  background: #fa709a;
}

.icon-http {
  background: #30cfd0;
}

.icon-download {
  background: #34d399;
}

.icon-script {
  background: #a8edea;
  color: #111;
}

.icon-screenshot {
  background: #06b6d4;
}

.icon-trigger {
  background: #f59e0b;
}

.icon-attr {
  background: #8b5cf6;
}

.icon-loop {
  background: #22c55e;
}

.icon-frame {
  background: #64748b;
}

.icon-exec {
  background: #111827;
}

.icon-key {
  background: #8ec5fc;
  color: #111;
}

.icon-scroll {
  background: #0ea5e9;
}

.icon-drag {
  background: #f97316;
}

.icon-assert {
  background: #16a34a;
}

.icon-delay {
  background: #f6d365;
  color: #111;
}

.icon-if {
  background: #ff9a56;
}

.icon-foreach,
.icon-while {
  background: #fcb69f;
  color: #111;
}

.icon-openTab,
.icon-switchTab,
.icon-closeTab {
  background: #96fbc4;
  color: #111;
}

.builder-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.builder-sidebar::-webkit-scrollbar-thumb {
  background-color: rgb(0 0 0 / 25%);
  border-radius: 6px;
}

.builder-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.builder-sidebar__btn-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--rr-text);
  flex: 1;
}

.builder-sidebar__section-divider {
  display: flex;
  align-items: center;
  margin: 12px 0 8px;
}

.builder-sidebar__divider-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rr-text-weak);
  white-space: nowrap;
}
