/* Main chat container */
#chat-box {
  width: 100%;
  max-width: 500px;              /* wider */
  height: 400px;                 /* taller */
  background-color: #0d1117;     /* GitHub-like dark tone */
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  overflow-y: auto;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

/* Messages container */
.message {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.4;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.25s ease forwards;
}

/* User (right side, green) */
.user-message {
  background-color: #238636;
  color: #fff;
  margin-left: auto;
  text-align: right;
}

/* Bot (left side, grey) */
.bot-message {
  background-color: #30363d;
  color: #c9d1d9;
  margin-right: auto;
  text-align: left;
}

/* Input row */
#input-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Input field */
#user-input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #30363d;
  background-color: #161b22;
  color: #c9d1d9;
  font-size: 14px;
}

/* Send button */
#send-button {
  background-color: #1f6feb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#send-button:hover {
  background-color: #388bfd;
}

/* Fade-in animation */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive for mobile */
@media (max-width: 600px) {
  #chat-box {
    height: 300px;
    max-width: 100%;
  }
  #user-input {
    font-size: 13px;
  }
  #send-button {
    padding: 8px 12px;
  }
}
