.image-library {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 0;
  width: 60px; /* ⬅️ wider for text + icon */
  background-color: #ffffff;
  padding: 8px 4px;
  box-shadow: 1px 0 4px rgba(0, 0, 0, 0.05);
  z-index: 999;
  border-right: 1px solid #E0E0E0;
  box-sizing: border-box;
}

/* 🔘 Each button: Icon + Label stacked */
.image-library button {
  all: unset;
  width: 100%;
  padding: 8px 4px;
  margin-bottom: 10px;
  border-radius: 10px;
  background-color: transparent;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

/* Icon image */
.image-library button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.4);
  transition: filter 0.2s ease;
}

/* Label text */
.image-library button span {
    font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #444;
  line-height: 1.1;
  white-space: nowrap;
}

/* Hover style */
.image-library button:hover {
  background-color: #FFEEDC;
  transform: translateY(-1px);
}

.image-library button:hover img {
  filter: grayscale(0%) brightness(0.95);
}

/* Active Button */
.image-library button.active {
  background-color: #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.image-library button.active img {
  filter: none;
}

.image-library button.active span {
  font-weight: 600;
  color: #FF6F00;
}

.image-library button img,
.image-library button i {
  display: block;
  margin-top: 2px;
}
