.messageItem {
  margin-bottom: 1rem;
  transition: transform 0.2s ease, opacity 0.2s ease;

  &:hover {
    transform: translateY(-1px);
  }
}

.userMessage {
  background-color: var(--upage-elements-background-depth-1);
  border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.assistantMessage {
  background-color: var(--upage-elements-background-depth-2);
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.avatar {
  position: relative;

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--upage-elements-icon-success);
    border: 2px solid var(--upage-elements-background);
  }
}

.actionButton {
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;

  &:hover {
    opacity: 1;
    transform: scale(1.1);
  }
}

.messageContent {
  overflow: hidden;
  transition: all 0.3s ease;
}

.streamingLastMessage {
  background-image: linear-gradient(to bottom, var(--upage-elements-messages-background) 30%, transparent 100%);
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
