#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 255, 0.816);
  color: white;
  font-size: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.chat-box {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 400px;
  height: 500px;
  background: rgba(0, 0, 255, 0.816);
  border-radius: 5%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  transition: 0.3s;
}

#header-box {
  background: white;
  width: 390px;
  height: 70px;
  margin-top: 5px;
  margin-left: 5px;
  display: flex;
  border-radius: 15px;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}

#social-box {
  background: rgb(245, 217, 4);
  margin-left: 345px;
  margin-top: 5px;
  width: 50px;
  height: 415px;
  border-radius: 15px;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  display: flex;
}

.button-icon {
  background: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border-color: black;
  display: flex;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
}

.image-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.button-icon:hover {
  transform: scale(1.05);
  cursor: pointer;
}

#write-box {
  flex: 1;
  background: rgb(225, 225, 225);
  margin-top: -415px;
  margin-left: 5px;
  margin-bottom: 5px;
  padding-bottom: 20px;
  width: 335px;
  border-radius: 15px;
  overflow-y: auto;
  scrollbar-width: thin;
  pointer-events: auto;
  flex-direction: column;
  align-items: center;
  display: flex;
  gap: 7px;
}

/* پاسخگوی مجازی */
#header-name {
  background: white;
  color: black;
  font-weight: bold;
  font-size: 24px;
  padding-top: 5px;
  padding-left: 20px;
  border-radius: 15px;
  display: flex;
}

/* آنلاین */
#header-name-2 {
  background: white;
  color: rgb(190, 190, 190);
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 10px;
  padding-left: 20px;
  border-radius: 15px;
  display: flex;
}

.erfunhalghe {
  position: absolute;
  background: none;
  width: 60px;
  height: 60px;
  padding: 5px;
  border-radius: 50%;
  display: block;
  right: 5px;
  top: 5px;
}

.first-msg {
  background: rgba(0, 0, 255, 0.816);
  color: white;
  width: fit-content;
  height: auto;
  border-radius: 15px;
  padding: 7px;
  font-size: 17;
  margin-top: 5px;
  word-wrap: break-word;
  font-weight: bold;
  align-items: center;
  display: flex;
}

.first-but {
  background: rgba(0, 0, 255, 0.816);
  color: white;
  width: 106px;
  height: auto;
  padding: 5px;
  font-size: 15;
  font-weight: bold;
  margin-left: 5px;
  margin-bottom: 5px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 20px;
  border-color: white;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: auto;
}

.first-but:hover {
  cursor: pointer;
  transform: scale(1.05);
  background: white;
  color: rgba(0, 0, 255, 0.816);
}

.question-icon {
  background: rgba(0, 0, 255, 0.816);
  color: white;
  font-size: 16;
  width: fit-content;
  height: auto;
  margin-right: 7px;
  padding: 10px;
  border-top-right-radius: 15px;
  border-bottom-left-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
  font-weight: bold;
  display: flex;
  align-self: flex-end;
  direction: rtl;
  text-align: right;
}

.answer-icon {
  background: white;
  color: black;
  font-size: 16;
  width: fit-content;
  height: auto;
  margin-left: 7px;
  padding: 10px;
  border-bottom-right-radius: 15px;
  border-top-left-radius: 15px;
  max-width: 80%;
  line-height: 1.5;
  word-wrap: break-word;
  font-weight: bold;
  display: flex;
  align-self: flex-start;
  text-align: right;
  direction: rtl;
}
.link-icon {
  display: block;
  text-align: center;
  font-size: 18;
  padding: 5px;
  direction: ltr;
}

.button-box {
  margin-top: 10px;
  margin-right: 5px;
}

.but-level-1 {
  background: white;
  color: rgba(0, 0, 255, 0.816);
  font-size: 15;
  font-weight: bold;
  width: fit-content;
  height: auto;
  padding: 7px;
  border-radius: 15px;
  border-color: rgba(0, 0, 255, 0.816);
  margin-left: 5px;
  margin-top: 5px;
}

.but-level-1:hover {
  background: rgba(0, 0, 255, 0.816);
  color: white;
  transform: scale(1.05);
  cursor: pointer;
}
