#ai-chat-box {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.chat-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.chat-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 700px;
  margin: auto;
  flex: 1;
  position: relative;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  min-height: 0;
}

/* Message bubbles */
.chat-message {
  max-width: 70%;
  padding: 10px 15px;
  border-radius: 20px;
  line-height: 1.4;
  word-wrap: break-word;
  margin-bottom: 10px;
}

/* User messages on the right */
.user-msg {
  background-color: #efefef;
  color: #878787;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 20px;
  margin-left: auto;
}

/* Assistant messages on the left */
.assistant-msg {
  color: #878787;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 20px;
  max-width: 90%;
  display: block;
  width: 100%;
}
.assistant-msg * {
  margin: 0.5em 0;
}
.assistant-msg p {
  margin: 0.5em 0;
  word-break: break-word;
  white-space: normal;
}
.assistant-msg h1, .assistant-msg h2, .assistant-msg h3, .assistant-msg h4, .assistant-msg h5, .assistant-msg h6 {
  margin: 1em 0 0.5em 0;
  font-weight: bold;
  clear: both;
  letter-spacing: normal;
}
.assistant-msg h1 {
  font-size: 1.5em;
}
.assistant-msg h2 {
  font-size: 1.3em;
}
.assistant-msg h3 {
  font-size: 1.1em;
}
.assistant-msg ul, .assistant-msg ol {
  margin: 1em 0;
  padding-left: 2em;
  display: block;
}
.assistant-msg strong {
  font-weight: bold;
  color: #333;
}
.assistant-msg em {
  font-style: italic;
}
.assistant-msg code {
  background-color: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
  color: #d63384;
}
.assistant-msg pre {
  background-color: #f4f4f4;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1em 0;
  border: 1px solid #ddd;
}
.assistant-msg pre code {
  background: none;
  padding: 0;
  color: #333;
}
.assistant-msg blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 1em 0;
  color: #666;
  font-style: italic;
}
.assistant-msg a {
  color: #0066cc;
  text-decoration: underline;
}
.assistant-msg a:hover {
  color: #004499;
}
.assistant-msg table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
}
.assistant-msg table th, .assistant-msg table td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: left;
}
.assistant-msg table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

/* Sticky input at bottom */
.chat-input {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid #ddd;
  padding: 0.5rem;
  flex-shrink: 0;
  background: white;
  position: sticky;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}

.chat-input textarea {
  width: 100%;
  resize: none;
  border-radius: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  line-height: 1.5rem;
  height: 52px;
  min-height: 52px;
  max-height: 10rem;
  overflow: hidden;
  box-sizing: border-box;
}
.chat-input textarea:focus {
  outline: none;
}

.chat-input button {
  border: none;
  background: #878787;
  color: white;
  border-radius: 1.5rem;
  padding: 0 1.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.loader {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #e0e0e0;
  border-top: 3px solid #878787;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 10px 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Error styling */
.assistant-msg.error {
  color: #d32f2f;
  background-color: #ffebee;
  padding: 10px 15px;
  border-radius: 10px;
}/*# sourceMappingURL=styles.css.map */