/* Modal backdrop */
.chatModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hide class */
.hidden {
  display: none;
}

/* Modal box */
.modal-content {
  background: white;
  width: 1000px;
  height: 10000px;
  max-height: 600px;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.2s ease;
}
.chat-messages {
  width: 100%;
}
/* Close button */
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: black;
}

/* Chat area */
.chat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  margin-top: 30px;

  overflow-y: auto;
}
.chat-input {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
/* Input row */
#input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  width: 90%;
  align-self: flex-end;
}

#input:focus {
  border-color: #2563eb;
}

/* Send button */
#send {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #10b981;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

#send:hover {
  background: #059669;
}

.message {
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 12px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.human {
  background-color: #2563eb; /* modern indigo */
  color: white;
}

.message.ai {
  background-color: #f1f5f9; /* soft slate */
  color: #0f172a;
}