body {
  font-family: 'Poppins', sans-serif;
  background-color: #e6f0fa; 
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ctext x='10' y='25' font-size='20' fill='%236a5acd' fill-opacity='0.15'%3E%F0%9F%8E%B5%3C/text%3E%3C/svg%3E");
  background-size: 60px 60px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 350px;
  max-width: 90%;
  height: 600px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background: #6a5acd;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
}

.chat-window {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f5f5;
}

.bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
}

.bot-message {
  background: #ece9ff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-message {
  background: #c8f7dc;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 14px;
  border-radius: 0;
}

.chat-input button {
  background: #6a5acd;
  color: white;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  transition: 0.2s;
  margin: 0;
}

.chat-input button:hover {
  background: #5a4dbf;
}

.chat-window::-webkit-scrollbar {
  width: 6px;
}

.chat-window::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.typing {
  font-size: 12px;
  color: gray;
  font-style: italic;
  margin: 4px 0;
}
.chat-header {
  background: #6a5acd;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: center; 
  align-items: center;
  position: relative;
}

.chat-header button {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
  position: absolute;  /* Add this */
  right: 15px;
}

.chat-header button:hover {
  color: #ddd;
}

#voice-btn {
  background: #fff;
  color: #6a5acd;
  padding: 12px 12px;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 0;
  font-size: 16px;
  transition: 0.2s;
   margin: 0;
}

#voice-btn:hover {
  background: #6a5acd;
  color: white;
}
