::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
  background-clip: content-box;
  border: 1px solid transparent;
}

[v-cloak] {
  display: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  min-width: 800px;
}

body {
  background-image: url(background-loader.gif);
  background-size: cover;
}

a {
  color: #FFF;
  background: #bc138f;
}

#main {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

#chat-history {
  flex: 2;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.15);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.1)61%, rgba(255, 255, 255, 0.1)70%, rgba(255, 255, 255, 0.05) 71%);
  backdrop-filter: blur(5px);
  flex: 0 0 400px;
}

#chat-history-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

#chat-history-new {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.chat-history-new-button {
  width: 200px;
  padding: 20px;
  border-radius: 10px;
  background-image: linear-gradient(#272b51, #1b2339);
  border: none;
  color: #FFF;
  font-size: 1.2em;
  cursor: pointer;
}

.chat-history-new-button:hover {
  background-image: linear-gradient(#333862, #27304b);
}

#chat-thread {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.chat-summary {
  display: flex;
  flex-direction: column;
  padding: 10px;
  margin: 20px;
  border-radius: 10px;
  background-image: linear-gradient(90deg, #11c5dd7e, #16c6d6, #d0cee0);
  background-repeat: no-repeat;
  background-position: -400px 0;
  background-color: #110f29;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.chat-summary:hover, .chat-summary.active {
  background-position: 0 0;
  box-shadow: 2px 2px 5px rgba(15, 22, 43, 0.75);
}

.chat-summary-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  padding-right: 30px;
    position: relative;
}

.close-button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #bc138f;
  background: url(cross.svg) center no-repeat;
  background-size: contain;
  font-size: 1.2em;
  text-align: center;
  line-height: 20px;
  float: right;
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: all 0.2s ease-in-out;
  position: absolute;
  right: 0;
  top: 5px;
}

.chat-summary:hover .chat-summary-title {
  color: #FFF;
}

.chat-summary:hover .close-button {
  right: 5px;
  opacity: 1;
}

.chat-summary-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.chat-summary-message-count {
  color: #999;
}

.chat-summary-timestamp {
  color: #999;
}

#chat-thread-message-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

.chat-thread-message {
  display: flex;
  flex-direction: row;
  padding: 30px;
}

.chat-thread-message-bot {
  justify-content: flex-start;
}

.chat-thread-message-human {
  flex-direction: row-reverse;
}

#chat-thread-message-bot-typing {
  line-height: 38px;
}

#chat-thread-message-bot-typing img {
  height: 20px;
  vertical-align: middle;
  margin: 0 20px;
}

.chat-thread-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex: 0 0 50px;
}

.chat-thread-message-bot .chat-thread-avatar {
  background: #FFF url(chatgpt.svg) center no-repeat;
  background-size: 75%;
}

.chat-thread-message-human .chat-thread-avatar {
  background: #FFF url(user.svg) center no-repeat;
  background-size: 75%;
}

.chat-thread-message-content {
  margin-left: 10px;
  margin-right: 10px;
  padding: 10px 30px;
  border-radius: 10px;
  background-color: rgba(15, 22, 43, 0.5);
  backdrop-filter: blur(5px);
  color: #FFF;
}

.chat-thread-message-timestamp {
  color: #999;
  font-size: 0.8em;
  margin-bottom: 5px;
}

.chat-thread-input-box {
  display: flex;
  flex-direction: row;
  padding: 30px;
}

#chat-input-box {
  flex: 1;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(15, 22, 43, 0.5);
  backdrop-filter: blur(5px);
  border: none;
  color: #FFF;
  font-size: 1.2em;
  resize: none;
}

.chat-thread-send-button {
  margin-left: 10px;
  width: 100px;
  padding: 20px;
  border-radius: 10px;
  background-image: linear-gradient(#272b51, #1b2339);
  border: none;
  color: #FFF;
  font-size: 1.2em;
  cursor: pointer;
}

.chat-thread-send-button:hover {
  background-image: linear-gradient(#333862, #27304b);
}

.chat-thread-send-button:active {
  background-color: #ddd;
}

.chat-thread-send-button:focus {
  outline: none;
}

.chat-thread-send-button:disabled {
  background-color: #ccc;
}

.chat-thread-send-button:disabled:hover {
  cursor: not-allowed;
}

.chat-thread-send-button:disabled:active {
  background-color: #ccc;
}

body {
  color: #333;
}

#chat-history {
  background-color: #ffffff;
  border-right: 1px solid #ddd;
}

.chat-history-new-button {
  background-color: #4caf50;
  color: white;
}

.chat-history-new-button:hover {
  background-color: #45a049;
}

#chat-thread {
  background-color: #ffffff;
}

.chat-thread-message-content {
  background-color: #e9ecef;
  color: #333;
}

.chat-thread-send-button {
  background-color: #007bff;
  color: white;
}

.chat-thread-send-button:hover {
  background-color: #0056b3;
}
