/* Updatebox layout and scroll behavior */

.updatebox-scrollbox {
  max-height: 150px;
  overflow-y: hidden;
  transition: max-height 0.3s ease;
}

.updatebox-scrollbox.scrollable {
  max-height: 180px;
  overflow-y: auto;
}

.updatebox-btn {
  position: relative;
  display: block;
  width: 100%;
  background-color: var(--bg-button);
  text-transform: uppercase;
  color: var(--text-button);
  font-size: var(--font-size-small);
  font-family: var(--font-body);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  border: 1px solid var(--border-input); 
  cursor: var(--cursor-hover);
  user-select: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  z-index: 0;
  line-height: 1.3;
  padding: 6px 10px;
  margin: 10px 0;
  border-radius: var(--radius-sm);
}

.updatebox-btn::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(120deg, #ffc1cb, #ffd6a0, #bde6f3, #d9c2ed, #baf2c9);
  background-size: 300% 300%;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 0;
  z-index: -1;
  animation: none;
  pointer-events: none;
}

.updatebox-btn:hover::before {
  opacity: 0.5;
  animation: animateGlowGradient 6s ease-in-out infinite;
}

.updatebox-btn:hover {
  background-color: var(--bg-button-hover);
  color: var(--text-button);
  animation: pastelLinkColor 3s ease-in-out infinite;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.updatebox-load-more-wrapper {
  text-align: center;
  padding: 10px;
}

#updatebox-end-message,
#updatebox-end-message-footer {
  color: var(--text-primary);
  padding: 6px 0;
  text-align: center;
}

#updatebox-wrapper {
  max-height: none;
  overflow-y: visible;
  transition: max-height 0.3s ease;
}

#updatebox-end-message-admin i,
#updatebox-end-message-footer i,
#updatebox-end-message i {
  margin-right: 6px;
}
