body { font-family: 'Segoe UI', system-ui; }

.chat-btn {
  position: fixed; bottom: 20px; right: 20px;
  background: #007bff; color: white; padding: 15px 20px;
  border: none; border-radius: 50px; cursor: pointer;
}

.chat-popup {
  display: none; position: fixed; bottom: 80px; right: 20px;
  width: 320px; height: 400px; background: #fff;
  border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: flex; flex-direction: column; z-index: 1000;
}

.chat-header {
  background: #007bff; color: white; padding: 12px;
  display: flex; justify-content: space-between; border-radius: 10px 10px 0 0;
}

.chat-header button { background: none; border: none; color: white; cursor: pointer; }

.chat-body { flex: 1; padding: 15px; overflow-y: auto; background: #f9f9f9; }
.bot-msg { background: #e1e1e1; padding: 8px 12px; border-radius: 15px; margin-bottom: 10px; max-width: 80%; }
.user-msg { background: #007bff; color: white; padding: 8px 12px; border-radius: 15px; margin-bottom: 10px; max-width: 80%; align-self: flex-end; margin-left: auto; }

.chat-footer { padding: 10px; display: flex; border-top: 1px solid #ddd; }
.chat-footer input { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 4px; margin-right: 5px; }
.chat-footer button { background: #007bff; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; }


/* Typing Indicator Animation Styles */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 15px;
  background: #e1e1e1;
  border-radius: 15px;
  margin-bottom: 10px;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #555;
  border-radius: 50%;
  animation: bounce 1.3s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
