.chat-container {
  max-width: 100%;  /* Changed from 600px to 100% */
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-height: 400px;  /* Starting height */
  max-height: calc(100vh - 100px);  /* Maximum height */
  height: auto;  /* Allow natural growth */
}

.chat-output {
  min-height: 340px;  /* Starting height minus input area */
  max-height: calc(100vh - 160px);  /* Maximum height minus input area */
  height: auto;
  overflow-y: auto;
  padding: 15px;
  background: #f9f9f9;
}

.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.chat-input button {
  padding: 8px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.chat-message {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
}

.message-you {
  align-items: flex-end;
}

.message-bot {
  align-items: flex-start;
}

.message-content {
  max-width: 50%;  /* Changed from 70% to 50% for better readability on wide screens */
  padding: 8px 12px;
  border-radius: 12px;
}

.message-you .message-content {
  background-color: #007bff;
  color: white;
}

.message-bot .message-content {
  background-color: #e9ecef;
  color: black;
}
