/* === style.css === */

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.chat-container {
  max-width: 600px;
  width: 100%;
  background: #ffffff;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
}

h1 {
  font-size: 24px;
  margin-bottom: 5px;
  color: #333;
  text-align: center;
}

.subheading {
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  color: #666;
}

.chat-box {
  height: 400px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  margin-bottom: 10px;
}

.user-message,
.bot-message {
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  max-width: 90%;
}

.user-message {
  background: #d1eaff;
  align-self: flex-end;
  text-align: right;
  margin-left: auto;
}

.bot-message {
  background: #e9f5e9;
  align-self: flex-start;
  margin-right: auto;
}

.input-area {
  display: flex;
  gap: 10px;
}

#user-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

button {
  padding: 10px 16px;
  background-color: #0a7cba;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #095f8e;
}
