/* realigns_gpt2-chat.css */

/* Center the chat panel on the page */
#realigns_gpt2-chat {
  max-width: 600px; margin: 3rem auto;
  display: flex; flex-direction: column;
  background: #fff; border-radius:1rem;
  box-shadow:0 8px 24px rgba(0,0,0,0.1);
  overflow:hidden;
}
#realigns_gpt2-messages {
  flex:1; padding:1rem; overflow-y:auto; border-bottom:1px solid #eee;
}
#realigns_gpt2-messages .user,
#realigns_gpt2-messages .assistant {
  margin-bottom:.75rem; max-width:80%; padding:.5rem .75rem; border-radius:.75rem;
}
#realigns_gpt2-messages .user { background:#e0f7fa; align-self:flex-end }
#realigns_gpt2-messages .assistant { background:#f1f8e9; align-self:flex-start }
#realigns_gpt2-input { display:flex; border-top:1px solid #eee }
#realigns_gpt2-prompt {
  flex:1; border:none; padding:.75rem; font-size:1rem; outline:none;
}
#realigns_gpt2-send {
  background:#0073aa; border:none; color:#fff;
  padding:0 1rem; cursor:pointer; font-size:1rem;
}
#realigns_gpt2-send:hover { background:#005177; }

/* User bubbles on right */
#realigns_gpt2-messages .user {
  background: #e0f7fa;
  align-self: flex-end;
}

/* Assistant bubbles on left */
#realigns_gpt2-messages .assistant {
  background: #f1f8e9;
  align-self: flex-start;
}

/* Input area */
#realigns_gpt2-input {
  display: flex;
  border-top: 1px solid #eee;
}

/* Text field */
#realigns_gpt2-prompt {
  flex: 1;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  outline: none;
}

/* Send button */
#realigns_gpt2-send {
  background: #0073aa;
  border: none;
  color: #fff;
  padding: 0 1rem;
  cursor: pointer;
  font-size: 1rem;
}
#realigns_gpt2-send:hover {
  background: #005177;
}
