/* Existing styles */
.--dark-theme {
  --chat-background: rgba(10, 14, 14, 0);
  --chat-panel-background: #131719;
  --chat-bubble-background: #14181a;
  --chat-bubble-active-background: #171a1b;
  --chat-add-button-background: #212324;
  --chat-send-button-background: #8147fc;
  --chat-text-color: #a3a3a3;
  --chat-options-svg: #a3a3a3;
}

body {
  background-color: #fafafa;
}

#chat {
  background: var(--chat-background);
  max-width: 100%;
  margin: 25px auto;
  box-sizing: border-box;
  padding: 1em;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

#chat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url() fixed;
  z-index: -1;
}

#chat .btn-icon {
  position: relative;
  cursor: pointer;
}

#chat .btn-icon svg {
  stroke: #FFF;
  fill: #FFF;
  width: 50%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Updated and new styles */
.chat__conversation-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  height: calc(100vh - 55px - 2em - 25px * 2 - .5em - 3em);
  background-color: #000 !important;

}

.chat__conversation-board__message-container {
  position: relative;
  display: flex;
  flex-direction: row;
  max-width: 80%;
}

.chat__conversation-board__message-container.reversed {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat__conversation-board__message-container:not(:last-child) {
  margin: 0 0 1em 0;
}

.chat__conversation-board__message__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 1.2em 0 0;
}

.reversed .chat__conversation-board__message__person {
  margin: 0 0 0 1.2em;
}

.chat__conversation-board__message__person__avatar {
  height: 35px;
  width: 35px;
  overflow: hidden;
  border-radius: 50%;
  user-select: none;
  position: relative;
}

.chat__conversation-board__message__person__avatar img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.chat__conversation-board__message__person__nickname {
  font-size: 12px;
  color: var(--chat-text-color);
  margin-top: 0.5em;
}

.chat__conversation-board__message__context {
  max-width: 100%;
  align-self: flex-end;
}

.chat__conversation-board__message__bubble {
  width: fit-content;
  background: var(--chat-bubble-background);
  font-size: 13px;
  color: var(--chat-text-color);
  padding: 0.7em 1em;
  border-radius: 1rem;
  margin-bottom: 0.5em;
}

.reversed .chat__conversation-board__message__bubble {
  background: var(--chat-send-button-background);
  color: white;
}

.chat__conversation-board__message__bubble pre {
  background-color: #282c34;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  color: #abb2bf;
  font-family: 'Courier New', Courier, monospace;
}

.chat__conversation-board__message__bubble code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-family: 'Courier New', Courier, monospace;
}

.chat__conversation-panel {
  background: var(--chat-panel-background);
  border-radius: 12px;
  padding: 0 1em;
  height: 55px;
  margin: 0.5em 0 0;
  display: flex;
  align-items: center;
}

.chat__conversation-panel__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  width: 100%;
}

.chat__conversation-panel__input {
  flex-grow: 1;
  height: 100%;
  outline: none;
  color: var(--chat-text-color);
  font-size: 13px;
  background: transparent;
  border: 0;
  font-family: "Lato", sans-serif;
  resize: none;
  padding: 0.5em 0;
}

.chat__conversation-panel .send-message-button {
  background: var(--chat-send-button-background);
  height: 30px;
  width: 30px;
  border-radius: 50%;
  transition: 0.3s ease;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 1em;
}

.chat__conversation-panel .send-message-button:active {
  transform: scale(0.97);
}

@media only screen and (max-width: 600px) {
  #chat {
    margin: 0;
    border-radius: 0;
  }

  .chat__conversation-board {
    height: calc(100vh - 55px - 2em - .5em - 3em);
  }

  .chat__conversation-board__message__options {
    display: none !important;
  }
}

* Code Highlighting */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #5C6370;
}

.token.punctuation {
  color: #abb2bf;
}

.token.selector,
.token.tag {
  color: #e06c75;
}

.token.property,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.attr-name,
.token.deleted {
  color: #d19a66;
}

.token.string,
.token.char,
.token.attr-value,
.token.builtin,
.token.inserted {
  color: #98c379;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #56b6c2;
}

.token.atrule,
.token.keyword {
  color: #c678dd;
}

.token.function {
  color: #61afef;
}

.token.regex,
.token.important,
.token.variable {
  color: #c678dd;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}
