/* ----------- RESET ----------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f0f7f2; /* Verde suave */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

/* ----------- HEADER ----------- */
.chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.header__icon {
  width: 50px;
  height: 50px;
}

.chat__header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2f5d34; /* Verde oscuro */
}

/* ----------- CHAT BOX ----------- */
.chat__box {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid #d6e9da;
}

/* ----------- CONTENEDOR DE MENSAJES ----------- */
.chat__message-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 420px;
  border: 1px solid #c7d8c9;
  border-radius: 12px;
  padding: 15px;
  background: #f7fbf7;
  overflow-y: auto;
}

/* ----------- MENSAJES ----------- */
.chat__message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 15px;
  word-break: break-word;
  white-space: pre-line;
}

/* ----------- USER MESSAGE ----------- */
.chat__message--user {
  align-self: flex-end;
  background: #3bb44a; /* Verde supermercado */
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0px 3px 8px rgba(0, 100, 0, 0.2);
}

/* ----------- BOT MESSAGE ----------- */
.chat__message--bot {
  align-self: flex-start;
  background: #eaf3eb;
  color: #2f4f2f;
  border-bottom-left-radius: 4px;
  border: 1px solid #d5e6d6;
}

/* ----------- INPUT GROUP ----------- */
.chat__input-group {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 20px;
}

.chat__input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #9bb99e;
  background: #ffffff;
  font-size: 16px;
  transition: border 0.2s;
  flex: 4;
  
}

.chat__input:focus {
  border-color: #3bb44a;
  outline: none;
}


/* ----------- BUTTON ----------- */
.chat__button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #3bb44a;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  flex: 1;
}

.chat__button:hover {
  background: #2f8c3b;
}

.chat__button:active {
  transform: scale(0.97);
}
