.plus-icon {
  color: var(--p-primary-color);
  transition: color 0.2s ease;
  font-size: 0.8rem;
  cursor: pointer;

  &:hover {
    color: var(--p-green-400);
  }
}

.root-item-with-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding-top: 1rem;
}

.root-item-label-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.expand-icon {
  color: var(--p-surface-500);
  padding-right: 0.75rem;

  &:hover {
    color: var(--p-surface-200);
  }
}

.root-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-item-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  cursor: pointer;

  &:hover {
    background-color: var(--p-surface-800);
    border-radius: 8px;
  }
}

.menu-item-container.active-route-container {
  background-color: color-mix(in srgb, var(--p-primary-300), transparent 93%);
  border-radius: 8px;
}

.menu-item-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}


.menu-item-text {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: 0.35rem;
  font-size: 0.985rem;
}

.menu-item-end-content {
  display: flex;
}

.entity-menu-button {
  height: 30px;
  display: flex;
}

.book-count {
  color: var(--primary-color);
  padding-right: 0.75rem;
}

.submenu-container {
  overflow: hidden;
}

.library-health-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ef4444;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    opacity: 0.85;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0);
  }
}
