body {
  background-color: #fff;
  font-family: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  padding: 16px;
  align-items: center;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  position: sticky;
  width: 100%;

}

#app {
  margin-top: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  position: relative
}

#app-menu {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.5rem;
  background-color: #f1f1f1;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.08);
  padding: 0.25rem;
  font-size: 14px;
}

#app-menu .item {
  flex: 1 1 auto;
  text-align: center;
}

#app-menu .item input {
  display: none;
}

#app-menu .item img {
  width: 4rem;
  height: 1.5rem;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  padding: 0.5rem 0;
  color: rgba(51, 65, 85, 1);
  transition: all 0.15s ease-in-out;
  margin-left: 0.1rem;
  object-fit: contain;
  margin-right: 0.1rem;
}

#app-menu .item input:checked+img {
  background-color: #fff;
}

#app-menu .item:hover img {
  background-color: rgba(255, 255, 255, 1.0);
}

#app-menu .item input:checked+img {
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: select 0.3s ease;
}

@keyframes select {
  0% {
    transform: scale(0.95);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

#app-menu label input:checked+img::before,
#app-menu label input:checked+img::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3b82f6;
  opacity: 0;
  animation: particles 0.5s ease forwards;
}

#app-menu label input:checked+img::before {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

#app-menu label input:checked+img::after {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes particles {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(var(--direction));
  }
}

#app-menu label input:checked+img::before {
  --direction: -10px;
}

#app-menu label input:checked+img::after {
  --direction: 10px;
}



a {
  text-decoration: none;
  color: #000;
  line-height: 2;
  position: relative;
  cursor: pointer;
}

a::before {
  content: '';
  width: 0;
  height: 2px;
  border-radius: 2px;
  background-color: #000;
  position: absolute;
  bottom: -.25rem;
  left: 50%;
  transition: width .4s, left .4s;
}

a:hover::before {
  width: 100%;
  left: 0;
}

#app.chat {
  max-width: 800px
}

#chat-header {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

#chat-header .img-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 20px;
  /* background-color: #f3f3f3; */
}

#chat-header .img-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

#chat-header .text-chat {
  color: black;
  margin: 0;
  font-size: 40px;
}

#messages {
  padding: 0;
  /* margin-bottom: 16px; */
  display: flex;
  flex-direction: column;
  overflow-y: overlay
}

.message {
  position: relative;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 1rem;
  /* background-color: #fff; */
  /* color: black; */
  font-size: 16px;
  align-self: flex-start
}

.message.left {
  width: 80%;
  /* background-color: #f6f6f6; */
  color: black;
  align-self: flex-start;
}

.message.right {
  max-width: 80%;
  width: auto;
  background-color: #f6f6f6;
  color: #000;
  align-self: flex-end;
  display: flex;
  justify-content: flex-end;

}

.message>.header {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.message>.header>.icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.message>.header>.name {
  padding: 0;
  margin: 0;
  margin-left: 10px;
}

.message .reasoning {
  color: #646464;
}

.message .content {}

#input-text {
  height: 45px;
  max-height: 40vh;
}

#input-box {
  /* position: absolute; */
  /* width: 100%; */
  /* z-index: 1; */
  /* top: 50%; */
  /* background: white; */
  /* transform: translateY(-60%); */
  /* transition: top 0.5s ease-out, transform 0.5s ease-out; */

}

#message-input {
  position: relative;
  overflow: hidden;
  padding: 16px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
  /* box-shadow: 0 0px 3px rgba(0, 0, 0, 0.5); */
  border: 1px solid #0d0d0d21;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

#message-input .message-send {
  padding: 10px;
  border: none;
  border-radius: 10px;
  resize: none;
}

#message-input .send {
  width: 50px;
  height: 50px;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  font-size: 13px;
}

#message-input .send>img {
  width: 30px;
  height: 30px;
}

#message-input .send:hover {
  background-color: #555;
  color: #333;
}

#message-input .bottom {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
}

#message-input .bottom>div {
  flex: 1
}

#message-input .bottom>div:nth-child(2) {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start
}

textarea:focus {
  outline: none;
}

#process {
  position: absolute;
  background: #e3dada;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 100000;
  opacity: 0.2;
  cursor: progress;
  display: none;
}

.dot-spinner {
  margin: auto;
  --uib-size: 2.8rem;
  --uib-speed: .9s;
  --uib-color: #183153;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--uib-size);
  width: var(--uib-size);
}

.dot-spinner__dot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}

.dot-spinner__dot::before {
  content: '';
  height: 20%;
  width: 20%;
  border-radius: 50%;
  background-color: var(--uib-color);
  transform: scale(0);
  opacity: 0.5;
  animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
  box-shadow: 0 0 20px rgba(18, 31, 53, 0.3);
}

.dot-spinner__dot:nth-child(2) {
  transform: rotate(45deg);
}

.dot-spinner__dot:nth-child(2)::before {
  animation-delay: calc(var(--uib-speed) * -0.875);
}

.dot-spinner__dot:nth-child(3) {
  transform: rotate(90deg);
}

.dot-spinner__dot:nth-child(3)::before {
  animation-delay: calc(var(--uib-speed) * -0.75);
}

.dot-spinner__dot:nth-child(4) {
  transform: rotate(135deg);
}

.dot-spinner__dot:nth-child(4)::before {
  animation-delay: calc(var(--uib-speed) * -0.625);
}

.dot-spinner__dot:nth-child(5) {
  transform: rotate(180deg);
}

.dot-spinner__dot:nth-child(5)::before {
  animation-delay: calc(var(--uib-speed) * -0.5);
}

.dot-spinner__dot:nth-child(6) {
  transform: rotate(225deg);
}

.dot-spinner__dot:nth-child(6)::before {
  animation-delay: calc(var(--uib-speed) * -0.375);
}

.dot-spinner__dot:nth-child(7) {
  transform: rotate(270deg);
}

.dot-spinner__dot:nth-child(7)::before {
  animation-delay: calc(var(--uib-speed) * -0.25);
}

.dot-spinner__dot:nth-child(8) {
  transform: rotate(315deg);
}

.dot-spinner__dot:nth-child(8)::before {
  animation-delay: calc(var(--uib-speed) * -0.125);
}

@keyframes pulse0112 {

  0%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}


.collapsible {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.collapsible .title {
  width: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  cursor: pointer;
  font-weight: bold;
  list-style: none;
}

.collapsible .title::after {
  content: "▼";
  transition: transform 0.2s;
  font-size: 12px;
}

.collapsible[open] .title::after {
  transform: rotate(180deg);
}

.collapsible .content {
  padding: 16px;
  border-top: 1px solid #eee;
}

.collapsible {
  transition: border-color 0.2s;
}

.collapsible[open] {
  border-color: #bbb;
  background: #f5f5f5;
  padding: 4px;
}
