/* Message Hub - minimal custom styles */

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* htmx loading indicator */
#chat-loading {
  display: none;
}
#chat-loading.htmx-request {
  display: flex;
}

/* Ensure flex column containers allow scrolling */
#chat-main-wrapper,
#chat-main {
  min-height: 0;
}

#messages-container {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  overflow-y: auto;
}

/* Flash overlay when older messages are loaded */
.load-flash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.1) 0%, transparent 40%);
  opacity: 1;
  transition: opacity 0.7s ease-out;
  pointer-events: none;
  z-index: 10;
}
