/* General Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #e9ecef;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Chat Container */
.chat-container {
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 850px;
  height: 92vh;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border-radius: 16px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2), 15px 15px 15px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  position: relative;
}

/* Chat Box */
.chat-box {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 2px solid #ddd;
  background-color: #f9f9f9;
}

/* Input Container */
.input-container {
  display: flex;  /* Align textarea and button horizontally */
  align-items: center;  /* Vertically align items */
  padding: 8px;
  background: #f8f8f8;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  margin-right: 10px;  /* Adjust the space between textarea and button */
  outline: none;
  resize: vertical;  /* Allow resizing vertically */
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, #4CAF50, #45a049);
  color: white;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), -2px -2px 5px rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

button:hover {
  background: linear-gradient(145deg, #45a049, #3e9441);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2), -1px -1px 3px rgba(255, 255, 255, 0.8);
}

/* Messages */
.message {
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 17px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1), -2px -2px 5px rgba(255, 255, 255, 0.8);
}

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

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

/* Loading and Error Messages */
.loading-message {
  text-align: center;
  font-style: KaiTi;
  color: red;
  font-size: 17px;
  padding: 1px 1px;
  background-color: #f9f9f9;
}

.error-message {
  color: red;
  text-align: center;
  font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 800px) {
  .chat-container {
    position: fixed;
    width: 98%;
    height: 88vh;
    top: 0;
    bottom: 0;
  }

  textarea {
    font-size: 17px;
  }

  button {
    font-size: 17px;
    padding: 8px 12px;
  }

  .message {
    font-size: 17px;
  }
}

