/* ==========================================================================
   toolbar.css - Left Tool Palette (Light Theme)
   ========================================================================== */

#toolbar-container {
  grid-area: toolbar;
  background-color: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 6px;
  z-index: 40;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

#toolbar-container::-webkit-scrollbar {
  width: 4px;
}

#toolbar-container::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

.tool-section-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  user-select: none;
  margin: 2px 0;
  text-align: center;
}

.tool-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  width: 100%;
}

.tool-group.shapes-palette,
.tool-group.network-palette {
  display: grid;
  grid-template-columns: repeat(2, 26px);
  gap: 4px;
  justify-content: center;
  width: auto;
}

.tool-group.shapes-palette .tool-btn,
.tool-group.network-palette .tool-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  padding: 2px;
}

.tool-group.shapes-palette .tool-btn svg,
.tool-group.network-palette .tool-btn svg {
  width: 16px;
  height: 16px;
}

.tool-divider {
  width: 36px;
  height: 1px;
  background-color: var(--border-subtle);
  margin: 3px 0;
}

.tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.tool-btn:hover {
  background-color: var(--bg-panel-hover);
  color: var(--text-primary);
}

.tool-btn.active {
  background-color: rgba(2, 132, 199, 0.12);
  color: var(--accent-primary);
  border-color: rgba(2, 132, 199, 0.25);
}

.tool-btn svg {
  display: block;
}
