body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: white;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  padding: 20px;
  margin: 0;
  border-bottom: 1px solid #1e293b;
}

#chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 20px;
  display: flex;
}

.user-message {
  justify-content: flex-end;
}

.ai-message {
  justify-content: flex-start;
}

.bubble {
  max-width: 70%;
  padding: 14px;
  border-radius: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.user-message .bubble {
  background: #2563eb;
}

.ai-message .bubble {
  background: #1e293b;
}

.input-area {
  display: flex;
  padding: 20px;
  border-top: 1px solid #1e293b;
}

input {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background: #1e293b;
  color: white;
}

button {
  margin-left: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background: #1d4ed8;
}

@media (max-width: 600px) {
  .bubble {
    max-width: 90%;
  }

  h1 {
    font-size: 22px;
  }
}
.bubble h1,
.bubble h2,
.bubble h3 {
  margin-top: 10px;
}

.bubble p {
  line-height: 1.6;
}

.bubble code {
  background: #111827;
  padding: 2px 6px;
  border-radius: 6px;
}

.bubble pre {
  background: #111827;
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
}

.bubble ul {
  padding-left: 20px;
}

.bubble a {
  color: #60a5fa;
}