/* === General Layout === */
body {
  background-color: #111;
  background-image: url("./Background.png");
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  margin: 0;
}

.container {
  width: 100%;
  max-width: 500px;
}

/* === Card Style === */
.agent-card {
  background-color: #dbdee3;
  border-radius: 16px;
  padding: 24px;
  /* box-shadow: 0 0 12px #19d59e99; */
  text-align: center;
}

/* === Avatar === */
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #662d91;
  object-fit: cover;
  margin-bottom: 16px;
}

/* === Titles === */
h2 {
  margin: 8px 0;
  font-size: 24px;
  color: #662d91;
}

p {
  color: #662d91;
}
.agent-card p {
  margin: 4px 0;
  font-size: 14px;
}

.chat-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #662d91; /* Optional glow effect */
}

/* === Chat Box === */
.chat-box {
  height: 150px;
  max-height: 80%;
  overflow-y: auto;
  background-color: #fff;
  padding: 12px;
  margin-top: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === Message Bubbles === */
.message {
  max-width: 75%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  position: relative;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* User (sent) message */
.user {
  align-self: flex-end;
  background-color: #662d91;
  color: white;
  border-radius: 18px 18px 4px 18px;
}

/* Bot (received) message */
.bot {
  align-self: flex-start;
  background-color: #7e6591;
  color: #e0e0e0;
  border-radius: 18px 18px 18px 4px;
}

/* === Chat Form === */
.chat-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.chat-form input[type="text"] {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background-color: #fff;
  color: black;
  font-size: 14px;
}

.chat-form button {
  padding: 10px 20px;
  background-color: #662d91;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.chat-form button:hover {
  background-color: #1cf2b0;
}

/* === Status Line === */
.status {
  margin-top: 10px;
  color: #19d59e;
  font-style: italic;
  font-size: 13px;
}

/* === File Input (if enabled) === */
.chat-form input[type="file"] {
  margin-top: 4px;
  color: white;
}


/* WhatsApp-style typing indicator */
.typing-indicator {
  background: transparent;
  box-shadow: none;
  padding: 8px 20px;
  margin: 0 0 6px 0;
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background: #662d91;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.7;
  animation: typing-bounce 1s infinite both;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.7; }
  40% { transform: translateY(-7px); opacity: 1; }
}
