/* Additional styles beyond Tailwind */
.message-bubble {
  max-width: 70%;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.message-bubble.sent {
  background-color: #3b82f6;
  color: white;
  margin-left: auto;
}

.message-bubble.received {
  background-color: #e5e7eb;
  color: #1f2937;
}

.message-time {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.message-bubble.sent .message-time {
  color: rgba(255, 255, 255, 0.7);
}

.message-bubble.received .message-time {
  color: #6b7280;
}

.message-sender {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: #10b981;
  border: 2px solid white;
}

/* Animation for loading spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Toast animation */
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-show {
  animation: slideUp 0.3s forwards;
}

/* Transitions */
.fade-in {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.fade-in.show {
  opacity: 1;
}
