* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 100%;
  min-width: 300px;
  max-width: 600px;
  height: 80vh;
  background: #ffffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.chat-header {
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.message {
  margin-bottom: 10px;
  max-width: 80%;
  padding: 10px;
  border-radius: 8px;
  line-height: 1.4;
  word-break: break-word;
}

.user {
  background: #daf1ff;
  align-self: flex-end;
}

.bot {
  background: #f0f0f0;
  align-self: flex-start;
}

.message img {
  max-width: 100%;
  border-radius: 5px;
}

.chat-input {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #ddd;
  gap: 8px;
}

.chat-input input[type="text"] {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.chat-input button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
}

input[type="file"] {
  display: none;
}
