.scroll-container::-webkit-scrollbar {
  width: 8px;
}
.scroll-container::-webkit-scrollbar-thumb {
  background-color: #eaecf0;
  border-radius: 10px;
}

.chat-container {
  padding-top: 0 !important;
  overflow: hidden;
}
.chat-container .chat-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 8px;
  background-color: #f5faff;
}
.chat-container .chat-detail-header .left {
  display: flex;
  align-items: center;
  flex: 1;
}
.chat-container .chat-detail-header .left-back img {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
}
.chat-container .chat-detail-header .left-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}
.chat-container .chat-detail-header .left-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-container .chat-detail-header .left .left-info {
  display: flex;
  flex-direction: column;
}
.chat-container .chat-detail-header .left .left-info-name {
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.chat-container .chat-detail-header .left .left-info-group {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
.chat-container .chat-detail-header .right img {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-right: 8px;
}
.chat-container .chat-detail-content {
  margin-top: 8px;
  flex: 1;
  overflow-y: auto;
}
.chat-container .chat-detail-content .chat-detail-content-list {
  padding: 16px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item {
  display: flex;
  gap: 12px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item:last-child {
  margin-bottom: 60px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item.item--me {
  flex-direction: row-reverse;
}
.chat-container .chat-detail-content .chat-detail-content-list .item.item--me .item-avatar {
  display: none;
}
.chat-container .chat-detail-content .chat-detail-content-list .item.item--me .item-content .info {
  justify-content: flex-end;
}
.chat-container .chat-detail-content .chat-detail-content-list .item.item--me .item-content .info-name {
  display: none !important;
}
.chat-container .chat-detail-content .chat-detail-content-list .item.item--me .item-content .messages-item {
  background-color: #0d3aff !important;
  border-radius: 8px 0px 8px 8px !important;
}
.chat-container .chat-detail-content .chat-detail-content-list .item.item--me .item-content .messages-item p {
  color: #ffffff !important;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-avatar {
  width: 40px;
  height: 40px;
  position: relative;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content {
  flex: 1;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .info {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .info-name {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  flex: 1;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .info-time {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item {
  display: flex;
  padding: 10px 14px;
  gap: 8px;
  border-radius: 0px 8px 8px 8px;
  box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px 0px rgba(16, 24, 40, 0.06);
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--text {
  background: #f2f4f7;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--text p {
  color: #101828;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--file {
  border: 1px solid #eaecf0;
  gap: 12px;
  cursor: pointer;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--file .file-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #e8f5ff;
  border-radius: 100rem;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--file .file-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #d5ebff;
  border-radius: 100rem;
  z-index: 0;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--file .file-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  z-index: 1;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--file .file-info {
  display: flex;
  flex-direction: column;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--file .file-info .file-name {
  color: #344054;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--file .file-info .file-size {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--file .file-info .file-status {
  color: var(--purple-color-500);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  margin-top: 2px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--typing {
  width: max-content;
  padding: 10px;
  background-color: #f2f4f7 !important;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--typing img {
  width: 20px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image {
  max-width: 240px;
  border-radius: 8px !important;
  overflow: hidden;
  width: fit-content;
  margin-left: auto;
  padding: 0;
  position: relative;
}
.item--me .chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image {
  margin-left: auto;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 0px 8px 8px 8px;
}
.item--me .chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image img {
  border-radius: 8px 0px 8px 8px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image img:hover {
  transform: scale(1.02);
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image img.loading-image {
  min-height: 100px;
  background-color: #f2f4f7;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image .image-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--purple-color-500);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}
.chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image + .chat-container .chat-detail-content .chat-detail-content-list .item .item-content .messages .messages-item--image {
  margin-top: 4px;
}
.chat-container .chat-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  margin-top: 8px;
  border-top: 1px solid #eaecf0;
  padding-bottom: 16px;
}
.chat-container .chat-detail-footer .chat-detail-footer-input {
  flex: 1;
  display: flex;
  padding: 10px 14px;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  position: relative;
}
.chat-container .chat-detail-footer .chat-detail-footer-input img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.chat-container .chat-detail-footer .chat-detail-footer-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #667085;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  width: calc(100% - 28px);
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  left: -12px;
  z-index: 10;
  border-radius: 32px;
  box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px 0px rgba(16, 24, 40, 0.06);
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .input-dropdown-content {
  padding: 32px 20px;
  min-width: 200px;
  background-color: #ffffff;
  border-radius: 32px;
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .triangle-container::before {
  content: "";
  position: absolute;
  top: calc(100% - 22px);
  left: 16px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid white;
  z-index: -1;
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .triangle-container::after {
  content: "";
  position: absolute;
  top: calc(100% - 22px);
  left: 16px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid rgba(0, 0, 0, 0.2);
  z-index: -2;
  filter: blur(4px);
  transform: translateY(4px);
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .input-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #eaecf0;
  padding: 10px 0;
  cursor: pointer;
  gap: 8px;
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .input-dropdown-item:first-child {
  padding-top: 0;
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .input-dropdown-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .input-dropdown-item:last-child img {
  width: 24px;
  height: 24px;
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .input-dropdown-item .input-dropdown-item-text {
  color: #1d2939;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  flex: 1;
}
.chat-container .chat-detail-footer .chat-detail-footer-input #input-dropdown .input-dropdown-item img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}
.chat-container .chat-detail-footer .chat-detail-footer-send {
  width: 44px;
  height: 44px;
  border-radius: 100rem;
  background-color: #3068ff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-container .chat-detail-footer .chat-detail-footer-send img {
  width: 20px;
  height: 20px;
}

.status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.status.is-online {
  background-color: #12b76a;
}

.status.is-offline {
  background-color: #d0d5dd;
}

.messages-item {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}
.image-modal.show {
  display: flex;
}
.image-modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.chat-detail-container,
.chat-info-container {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  display: none;
  flex-direction: column;
}
.chat-detail-container.active,
.chat-info-container.active {
  display: flex;
}

.chat-info-header {
  padding: 16px;
  border-bottom: 1px solid #eaecf0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-info-header .left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-info-header .back-to-chat {
  cursor: pointer;
  width: 24px;
  height: 24px;
}
.chat-info-header .title {
  font-size: 16px;
  font-weight: 600;
  color: #101828;
}

.chat-info-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.chat-info-content .chat-info-basic {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.chat-info-content .chat-info-basic .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
}
.chat-info-content .chat-info-basic .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-info-content .chat-info-basic .info .name {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
}
.chat-info-content .chat-info-basic .info .department {
  font-size: 14px;
  color: #667085;
  margin-top: 4px;
}
.chat-info-content .info-section {
  margin-bottom: 20px;
}
.chat-info-content .info-section .section-title {
  font-size: 14px;
  font-weight: 600;
  color: #344054;
  margin-bottom: 8px;
}
.chat-info-content .info-section .section-content {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
}
.chat-info-content .info-section .section-content .id {
  font-size: 12px;
  font-weight: 600;
  color: #475467;
}
.chat-info-content .info-section .section-content .name {
  font-size: 14px;
  color: #101828;
  margin-top: 4px;
}
.chat-info-content .info-section .members-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-info-content .info-section .members-list .member {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
}
.chat-info-content .info-section .members-list .member .member-name {
  color: #101828;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}