.chatContainer {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background-color: white;
}

.chatHeader {
  text-align: center;
  padding: 16px;
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 1px solid #ddd;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.chatMessages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

.message {
  display: inline-flex;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 20px;
  max-width: 70%;
  clear: both;
}

.messageText {
  word-wrap: break-word;
}

.userMessage {
  background-color: #e0f7fa;
  align-self: flex-end;
  float: right;
}

.botMessage {
  background-color: #f0f0f0;
  align-self: flex-start;
  float: left;
}

.chatInputArea {
  display: flex;
  align-items: center;
  padding: 16px;
  border-top: 1px solid #ddd;
  background-color: white;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.inputField {
  flex-grow: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 24px;
  margin: 0 12px;
  background-color: #f9f9f9;
}

.inputField:focus {
  outline: none;
  border-color: #4CAF50;
  background-color: white;
}

.sendButton {
  background-color: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
}

.sendButton:hover {
  color: #4CAF50;
}

.microphoneButton {
  background-color: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
}

.microphoneButton:hover {
  color: #4CAF50;
}

/* Markdown Styles */
.markdown {
  line-height: 1.6;
}

.markdown p {
  margin: 0.5em 0;
}

.markdown h1, .markdown h2, .markdown h3, .markdown h4, .markdown h5, .markdown h6 {
  margin: 1em 0 0.5em 0;
  font-weight: bold;
}

.codeBlock {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 1em;
  margin: 0.5em 0;
  overflow-x: auto;
}

.inlineCode {
  background-color: #f6f8fa;
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-family: monospace;
}

.markdown ul, .markdown ol {
  margin: 0.5em 0;
  padding-left: 2em;
}

.markdown blockquote {
  border-left: 3px solid #e1e4e8;
  margin: 0.5em 0;
  padding-left: 1em;
  color: #6a737d;
}

.markdown a {
  color: #0366d6;
  text-decoration: none;
}

.markdown a:hover {
  text-decoration: underline;
}

.markdown table {
  border-collapse: collapse;
  margin: 0.5em 0;
  width: 100%;
}

.markdown th, .markdown td {
  border: 1px solid #e1e4e8;
  padding: 0.5em;
}

.markdown img {
  max-width: 100%;
  height: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
  .message {
    padding: 10px 12px;
    max-width: 85%;
  }

  .inputField {
    padding: 10px;
    font-size: 0.9em;
  }

  .chatInputArea {
    padding: 12px;
  }
}