     #dialogueBox {
      max-height: 280px;
      overflow-y: auto;
      scroll-behavior: smooth;
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 0.75rem;
      padding: 1rem;
      box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    #dialogueBox::-webkit-scrollbar {
      width: 8px;
    }
    #dialogueBox::-webkit-scrollbar-track {
      background: #f1f5f9;
      border-radius: 8px;
    }
    #dialogueBox::-webkit-scrollbar-thumb {
      background-color: #cbd5e1;
      border-radius: 8px;
      transition: background-color 0.3s ease;
    }
    #dialogueBox::-webkit-scrollbar-thumb:hover {
      background-color: #94a3b8;
    }

    .dialogue-line {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 10px;
      padding: 10px 14px;
      border-radius: 0.75rem;
      transition: all 0.3s ease;
      word-wrap: break-word;
    }

    .speaker {
      background-color: #e0ecff;
      border-left: 4px solid #3b82f6;
    }

    .listener {
      background-color: #f3f4f6;
      border-left: 4px solid #9ca3af;
    }

    .fade-in {
      animation: fadeIn 0.4s ease forwards;
    }
    @keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
  animation: fadeIn 0.35s ease-out;
}
