body {
  font-family: "Segoe UI", sans-serif;
  background: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 420px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 600px;
}

h2 {
  text-align: center;
  color: #10a37f;
  margin-bottom: 10px;
}

#chat-box {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
  scroll-behavior: smooth;
}

.message {
  margin: 8px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 90%;
  line-height: 1.4;
}

.user {
  background: #10a37f;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 0;
}

.bot {
  background: #eaeaea;
  color: #333;
  margin-right: auto;
  border-bottom-left-radius: 0;
}

/* Markdown Styling */
strong, b { font-weight: bold; }
em, i { font-style: italic; }
pre.code-block {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 8px;
  border-radius: 6px;
  overflow-x: auto;
}
code.code-inline {
  background: #eee;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Input area */
.input-container {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  background: #10a37f;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #0c8b6b;
}