body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f1effa;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.chat-box {
  background-color: #ffffff;
  width: 400px;
  height: 600px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  background-color: #4f46e5;
  color: white;
  padding: 16px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.suggestions {
  padding: 12px 16px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}

.suggestions p {
  margin: 0 0 8px;
  font-size: 14px;
  color: #555;
}

.suggestions button {
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  background-color: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.suggestions button:hover {
  background-color: #c7d2fe;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #f9f9ff;
  display: flex;
  flex-direction: column;
}

.user-message, .bot-message {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 80%;
}

.user-message {
  background-color: #e0f7fa;
  align-self: flex-end;
  text-align: right;
}

.bot-message {
  background-color: #f1f1f1;
  align-self: flex-start;
}

.input-container {
  display: flex;
  padding: 8px; /* Reduced padding for less empty space */
  border-top: 1px solid #ddd;
  background-color: #ffffff;
  align-items: center; /* Aligns input & button vertically */
  gap: 8px;
}

.input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  height: 38px; /* Matches button height */
}

.input-container button {
  background-color: #22c55e;
  color: white;
  border: none;
  padding: 0 16px;
  height: 38px; /* Matches input height */
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.input-container button:hover {
  background-color: #16a34a;
}

@media (min-width: 768px) {
  .chat-box {
    width: 600px; /* Wider on larger screens */
  }
}

