/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #f9f9f9;
  overflow: hidden;
}

.chat-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 500px;
  height: 90%;
  display: flex;
  flex-direction: column;
}

h1 {
  margin-bottom: 10px;
  color: #4a90e2;
  text-align: center;
}

#chat-window {
  background: #e9ecef;
  border-radius: 10px;
  height: 70%;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 15px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
}

#chat-output {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Messages */
.message {
  padding: 10px 15px;
  border-radius: 15px;
  word-wrap: break-word;
  max-width: 80%;
  margin: 0 auto;
}

.user {
  background: #d1e7dd;
  align-self: flex-end;
}

.bot {
  background: #f8d7da;
  align-self: flex-start;
}

/* Input Container */
.input-container {
  display: flex;
}

#user-input {
  flex: 1;
  padding: 15px;
  border: 1px solid #ced4da;
  border-radius: 15px;
  outline: none;
  font-size: 16px;
}

#send-btn {
  padding: 15px;
  border: none;
  border-radius: 15px;
  background: #4a90e2;
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
  font-size: 16px;
}

#send-btn:hover {
  background: #357abd;
}

#save-chat-btn {
  margin-top: 10px;
  padding: 15px;
  border: none;
  border-radius: 15px;
  background: #28a745;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

#save-chat-btn:hover {
  background: #218838;
}

/* Responsive Design */
@media (max-width: 600px) {
  .chat-container {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  #chat-window {
    height: 75%;
  }

  #save-chat-btn {
    font-size: 14px;
    padding: 10px;
  }
}