:root {
  /** customize by template **/
  --main-primary: #33baf3;
  --main-dark: #172554;
  --main-light: #85d5f7;

  /** should not be modified, used only in template*/
  --body-bg: linear-gradient(180deg, #030712 0%, var(--main-dark) 100%);
  --background-primary: #6b7280;
  --text-primary: #131313;
  --text-secondary: #9ca3af;
  --shadow-sm: 0 5px 5px -5px rgba(0, 0, 0, 0.2);
  --shadow-xs: 0 2px 2px -2px rgba(0, 0, 0, 0.2);
  --rounded-2xl: 1rem;
  --border: 1px solid #a3a3a3;
  --bot-msg-bg: white;
  --bot-msg-text: var(--text-primary);
  --sender-msg-bg: var(--body-bg);
  --sender-msg-text: white;
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  background-image: var(--body-bg);
  font-family: "Archivo", sans-serif;
}

.msger {
  display: flex;
  position: relative;
  flex-flow: column wrap;
  justify-content: space-between;
  /* width: 100%; */
  max-width: 867px;
  margin: 2rem 1.5rem;
  height: calc(100% - 4rem);
  background: var(--background-primary);
  border-radius: var(--rounded-2xl);
  box-shadow: var(--shadow-sm);
}

.msger-csview {
  display: flex;
  position: relative;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  /* max-width: 867px; */
  margin: 2rem 1.5rem;
  height: calc(100% - 4rem);
  background: var(--background-primary);
  border-radius: var(--rounded-2xl);
  box-shadow: var(--shadow-sm);
}

.msger-header {
  display: flex;
  min-height: 8vh;
  border-top-left-radius: var(--rounded-2xl);
  border-top-right-radius: var(--rounded-2xl);
  justify-content: space-between;
  padding: 0.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  background: #ffffff;
}

.msger-header-title {
  color: var(--main-dark);
  font-weight: 700;
}

.msger-header-subtitle {
  color: var(--text-secondary);
  font-weight: 400;
}

.msger-lynx-text {
  color: var(--main-primary) !important;
}

.msger-chat {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.msger-chat::-webkit-scrollbar {
  width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
  background: #ddd;
}
.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}

.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.msg-img {
  width: 3rem;
  height: 3rem;
  background: var(--background-primary);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 9999px;
}

.msg-bubble {
  max-width: 500px;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  word-break: break-word;
  box-shadow: var(--shadow-sm);
}
.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}
.msg-info-time {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--text-secondary);
}

.left-msg-bubble {
  background: var(--bot-msg-bg);
  color: var(--bot-msg-text);
}

.right-msg-bubble {
  background: var(--sender-msg-bg);
  color: var(--sender-msg-text);
}

.right-msg {
  flex-direction: row-reverse;
}

.msger-inputarea {
  display: flex;
  padding: 0.5rem;
  background: white;
  margin: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 15px 15px -15px rgba(0, 0, 0, 0.2);
}

.msger-inputarea * {
  padding: 0.5rem;
  font-size: 0.85em;
  border-radius: 0.5rem;
}

.msger-input {
  flex: 1;
  background: #f1f5f9;
  width: 100%;
  padding-left: 1rem;
  outline-width: 1px;
  outline-color: var(--main-dark);
}

.msger-send-btn {
  margin-left: 0.4rem;
  background: var(--main-dark) !important;
  text-transform: capitalize;
  width: 5rem;
  color: white;
  font-weight: medium;
  cursor: pointer;
}

.msger-send-btn:hover {
  background-color: var(--text-primary);
}

.msger-chat {
  background-color: var(--background-primary);
}

/* The alert message box */
.alert {
  padding: 0.5rem 1.5rem;
  background: white;
  color: var(--text-primary);
  font-size: 0.8rem;
  width: 100%;
}

/* The close button */
.closebtn {
  margin-left: 15px;
  color: #171717;
  font-weight: bold;
  float: right;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

/* When moving the mouse over the close button */
.closebtn:hover {
  color: black;
}

pre {
  white-space: pre-line;
}

.msg-rating {
  text-align: right;
}

.fa-thumbs-up {
  color: #a1a1a1;
  padding: 5px;
  margin-right: 6px;
}

.fa-thumbs-up:hover {
  background-color: #d3d3d3;
  border-radius: 7px;
  padding: 5px;
}

.fa-thumbs-down {
  color: #a1a1a1;
  padding: 5px;
}

.fa-thumbs-down:hover {
  background-color: #d3d3d3;
  border-radius: 7px;
  padding: 5px;
}

.clicked {
  color: #004165;
}

.content {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: white;
  border-radius: var(--rounded-2xl);
  cursor: progress;
}

.lynx-loading {
  width: 8rem;
  height: 8rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: var(--rounded-2xl);
  margin-bottom: 6rem;
}

.conversations {
  display: flex;
  /* max-width: 25%; */
  position: relative;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  margin: 2rem 1.5rem;
  height: calc(100% - 4rem);
  /* background: var(--background-primary); */
  border-radius: var(--rounded-2xl);
  box-shadow: var(--shadow-sm);
}

.common-header {
  min-height: 8vh;
  display: flex;
  border-top-left-radius: var(--rounded-2xl);
  border-top-right-radius: var(--rounded-2xl);
  justify-content: space-between;
  padding: 0.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  background: #ffffff;
}

.items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.5rem;
  background-color: var(--background-primary);
  border-bottom-left-radius: var(--rounded-2xl);
  border-bottom-right-radius: var(--rounded-2xl);
}

.items-list::-webkit-scrollbar {
  width: 6px;
}
.items-list::-webkit-scrollbar-track {
  background: #ddd;
}
.items-list::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}

.convo-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.source-info  {
  display: flex;
  max-width: 30%;
  position: relative;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  margin: 2rem 1.5rem;
  height: calc(100% - 4rem);
  background: var(--background-primary);
  border-radius: var(--rounded-2xl);
  box-shadow: var(--shadow-sm);
}

.control-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-bottom-left-radius: var(--rounded-2xl);
  border-bottom-right-radius: var(--rounded-2xl);
}

.toggle-slider {
  background: #ffffff;
}

.control-panel-item {
  display: flex;
  justify-content: space-between;
  padding-right: 0.2rem;
  align-items: center;
}

.new-chat-btn {
  padding: 0.5rem;
  /* margin-left: 0.4rem; */
  background: var(--main-dark) !important;
  color: white;
  font-weight: medium;
  cursor: pointer;
  border-radius: 0.5rem;
}

.editable-input {
  padding: 0;
  width: 95%;
  color: var(--main-dark);
  margin-right: 2rem;
}