
.collection-card {
  transition: box-shadow 0.2s;
}
.collection-card:hover {
  box-shadow: 0 6px 16px var(--shadow-sm);
}
.part-words {
  min-height: 80px;
  resize: vertical;
}

.hidden-element {
  visibility: hidden;
  opacity: 0;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.collection-badge-primary {
  background-color: var(--primary-color);
}
.collection-thumbnail {
  object-fit: cover;
  height: 150px;
}

/* panel */

#floating-minimize {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow-md);
  z-index: 1030;
  cursor: pointer;
  display: none;
}

.quick-access-btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
}

.remove-btn {
  margin-left: 8px;
  opacity: 0.7;
  font-size: 0.9em;
  line-height: 1;
  border: none;
  background: transparent;
}

.remove-btn:hover {
  opacity: 1;
  color: var(--danger-color);
}

/* Minimize button: leftmost, clean */
#minimize-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 12px; /* Space after minimize icon */
  font-size: 1.1rem;
}

#minimize-btn:hover {
  color: var(--primary-color);
  background-color: var(--primary-light-bg);
}


/* parts list */
.list-container {
  max-height: 200px;  /* Adjust as needed */
  overflow-y: hidden;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 0.5rem;
}

.list-items {
  transition: max-height 0.3s ease;
}

.list-item a {
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.list-item a:hover {
  color: var(--primary-color);
  background-color: var(--bg-secondary);
  transform: translateX(4px);
}

.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--fade-overlay-gradient));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.list-container.expanded .fade-overlay {
  opacity: 0;
}

.hover-effect {
  border-left: 3px solid transparent;
}

.hover-effect:hover {
  border-left: 3px solid var(--primary-color);
}

.toggle-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}