=/* =============================================== */
/* == STYLES FOR MODERN CHAT INTERFACE REDESIGN == */
/* =============================================== */

/* Main chat history box */
#chat-history {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Base style for all chat messages */
.chat-message {
  display: flex;
  max-width: 85%;
  align-items: flex-start;
  gap: 10px;
}

/* Style for the text bubble part of the message */
.chat-bubble {
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.5;
}

/* Scout (Assistant) messages */
.chat-message.scout {
  align-self: flex-start;
}
.chat-message.scout .chat-bubble {
  background-color: #f1f3f5;
  color: #212529;
  border-bottom-left-radius: 4px;
}

/* User's own messages */
.chat-message.user {
  align-self: flex-end;
}
.chat-message.user .chat-bubble {
  background-color: #007bff;
  color: white;
  border-bottom-right-radius: 4px;
}

/* Simple avatar for the Scout assistant */
.chat-message.scout::before {
  content: 'S';
  flex-shrink: 0;
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  background-color: #adb5bd;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

/* Input textarea styling */
#chat-form textarea {
  resize: vertical;
  min-height: 50px;
}

/* Sidebar for results */
.chat-sidebar {
  flex-shrink: 0;
  width: 400px;
  background-color: #f7f9fc;
  border-left: 1px solid #e1e4e8;
  padding: 1.5rem;
  transition: all 0.3s ease-in-out;
  overflow-x: hidden;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.chat-sidebar.collapsed {
  width: 0;
  padding: 0;
  border-left: none;
}

/* A simple card style for the decision pack output */
.card-box {
  background-color: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem;
}
