/* New clean, intuitive category bar */
.item-type-lister {
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 2px 0px; /* tighter top/bottom padding */
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 4px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.category-bar::-webkit-scrollbar { display: none; }

/* Legacy horizontal tile list container (used for tile UI) */
.item-type-list {
  display: inline-flex;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  overflow-y: hidden;
}

.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #2d2d2d;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.category-chip:hover { border-color: #d0d0d0; }
.category-chip.selected {
  background: #73a585;
  color: #ffffff;
  border-color: #73a585;
}

.category-chip .chip-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-item-chip {
  background: #f4f7f5;
  border-color: #dfe7e2;
  color: #4a6b5a;
}
.add-item-chip:hover { background: #eaf1ed; }
.rect-creator {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  background-color: white;
  z-index: 300;
  display: flex;
  flex-direction: column;
}

.inline-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Always 4 columns */
  gap: 10px; /* Spacing between grid items */
  padding: 10px; /* Padding inside grid */
  overflow-y: auto; /* Allow scrolling if items overflow */
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Always 4 columns */
  gap: 10px; /* Spacing between grid items */
  padding: 10px; /* Padding inside grid */
  max-height: calc(3 * (25vw - 20px) + 20px); /* 3 items + gaps */
  overflow-y: auto; /* Allow scrolling if items overflow */
  padding-top: 15px;
  height: calc(43vw - 20px);
}

.add-button {
  margin: 10px; /* Margin around the button */
  padding: 10px 20px; /* Padding for the button */
  position: absolute; /* Optional, for styling */
  bottom: 0;
  align-self: center; /* Center the button horizontally */
}
/* Legacy styles kept for ItemType grid if needed elsewhere */
