:root {
  --background: rgb(134, 95, 240);
  --panel: white;
  --user: rgb(31, 146, 247);
  --text: black;
  --radius: 16px;
  --bot: lightgrey;
}

/*Body styling*/
body {
  font-family: system-ui, sans-serif, monospace;
  background-color: var(--background);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/*Main chat interface styling and interface header styling*/
.chat-interface {
  width: min(95%, 500px);
  height: 600px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0, 0.25);
  overflow: hidden;
}


.chat-header {
  background: var(--user);
  color: white;
  padding: 5px;
  text-align: center;
}

.sub-title {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
}

/*Styles the messages and bubbles */

.messages {
  flex: 1;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message {
  display: flex;
  align-items: flex-end;
  width: 100%;
}
.message-bot {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.user {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.message-bot .bubble {
  background-color: var(--bot);
  color: var(--text);
}

.user .bubble {
  background: var(--user);
  color: white;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 16px;
}

/*Styles the input section for the user and the send button  */

.input {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background-color: white;
  border-top: 1px solid lightgray;
  font-size: 0.95rem;
}

.input input {
  flex: 1;
  padding: 12px;
  border: 1px solid lightgrey;
  border-radius: 20px;
  font-size: 0.95rem;
}

.input button {
  background: rgb(189, 186, 186);
  color: white;
  border-radius: var(--radius);
  border: none;
  width: 15%;
}


/*Styles the footer message */
.info {
  background: lightgoldenrodyellow;
  border-top: 1px solid yellow;
  text-align: center;
  font-size: 0.75rem;
  padding: 8px 12px;
  color: rgb(161, 113, 71);
}
.info p {
  margin: 0;
  line-height: 1.4;
}
