.chatroom {
  padding: 36px 40px;
  background-color: #222;
}

.chatroom .search-chatroom {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.chatroom .chatroom-list {
  margin-top: 32px;
  height: 100%;
}

.chatroom .current-online-list {
  height: 44%;
  flex: 1;
}

.chatroom .groups-list ul{
  overflow: auto;
  height: 82%;
}

.chatroom .current-online-list ul{
  overflow: auto;
  height: 86%;
}

.chatroom .groups-list .create-group-button:hover {
  cursor: pointer;
}

.chatroom .search-chatroom input {
  padding: 20px 20px 20px 78px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #0D0D0D;
  color: #fff;
}

.chatroom .search-chatroom input::placeholder {
  font-size: 1rem;
  font-weight: 500;
}

.chatroom .search-chatroom .search-input {
  position: relative;
}

.chatroom .search-chatroom .search-input::before {
  content: "";
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(../../public/img/search_icon.svg);
  background-repeat: no-repeat;
  background-size: cover;
  top: 50%;
  transform: translateY(-50%);
  left: 4%;
}

.chatroom .chatroom-content {
  height: 100%;
}

.chatroom .border-padding-chatroom {
  padding: 8px 0 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #0D0D0D;
}
.chatroom .border-padding-choose {
  padding: 24px 0 18px 28px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #0D0D0D;
}

.chatroom .chatroom-item {
  width: 100%;
  padding-bottom: 10px;
  padding-top: 18px;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.chatroom .chatroom-item .item-img {
  position: relative;
  min-width: 56px;
  min-height: 56px;
}

.chatroom .chatroom-item .item-img .online-button {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(12%, 12%);
}

.chatroom .chatroom-item .online-button.offline svg circle:first-child {
  fill: var(--primary);
}

.chatroom .chatroom-choose-item {
  margin-right: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.chatroom .chatroom-choose-item .choose-item-img {
  position: relative;
  min-width: 40px;
  min-height: 40px;
}

.chatroom .chatroom-choose-item .online-button {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(60%, 60%);
}

.chatroom .chatroom-choose-item .expand-button {
  padding-left: 14px;
  padding-right: 14px;
  display: flex;
  justify-content: center;
}

.chatroom .chatroom-choose-item .expand-button:hover {
  padding: 14px;
  cursor: pointer;
  background-color: #222;
  border-radius: 50px;
}

.chatroom .chatroom-item .item-img.item-has-online
{
  border-radius: 50px;
  overflow: unset;
}

.chatroom .chatroom-item .item-img.item-has-online div {
  border-radius: 50px;
  overflow: hidden;
}

.chatroom .chatroom-item .item-img,
.chatroom .chatroom-choose-item .choose-item-img .choose-item-img-container{
  border-radius: 50px;
  overflow: hidden;
}

.chatroom .chatroom-item .status-message {
  display: flex;
  min-width: 22px;
  min-height: 22px;
}

.chatroom .chatroom-item .status-message.seen-message {
  background-image: url(../../public/img/chatroom/seen_mess.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 75%;
}

.chatroom .chatroom-item .status-message.sent-message {
  background-image: url(../../public/img/chatroom/sent_mess.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 75%;
}

.chatroom .chatroom-item .status-message.num-message {
  position: relative;
  background-image: url(../../public/img/chatroom/num_mess.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 75%;
}

.chatroom .chatroom-item .status-message span {
 display: none;
}

.chatroom .chatroom-item .status-message.num-message span {
  display: block;
  left: 60%;
  font-size: 0.875rem;
  font-weight: 600;
}

.chatroom .chatroom-message-group {
  flex-grow: 1;
  overflow-y: auto;
}

.chatroom .chatroom-message-group .styles_scrollable-div__prSCv{
  overflow-x: hidden;
}

.chatroom .chatroom-mess-text {
  margin-top: 16px;
  margin-bottom: 16px;
  margin-right: 28px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);;
}

.chatroom .chatroom-mess-text .text-input-group {
  border-radius: 10px;
  /* overflow: hidden; */
}

.chatroom .chatroom-mess-text .text-input-group .input-message-button{
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.chatroom .chatroom-mess-text .text-input-group .input-message-group-button{
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
}

.chatroom .chatroom-mess-text .input-message input{
  padding: 12px 110px 12px 36px;
  background-color: #212121;
  color: #fff;
  border: none;
}

.chatroom .chatroom-mess-text .input-voice button {
  border: none;
  background:none;
}

.chatroom .chatroom-mess-text .input-voice {
  padding: 12px 16px;
  background-color: #1A66FF;
  border-radius: 10px;
  cursor: pointer;
}

.chatroom .chatroom-content .chatroom-message-group .another-group-mess {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.chatroom .chatroom-content .chatroom-message-group .another-mess-content {
  position: relative;
  padding: 9px 28px 9px 38px;
  width: 100%;
  background-color: #1b1b1b;
  border-radius: 10px;
  overflow-wrap: break-word ;
}

.chatroom .chatroom-content .chatroom-message-group .another-mess-content .background-icon {
  left: -14px;
  bottom: 0;
}

.chatroom .chatroom-content .chatroom-message-group .another-mess-content span {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
}

.chatroom .chatroom-content .chatroom-message-group .another-avatar {
  position: relative;
}

.chatroom .chatroom-content .chatroom-message-group .another-name {
  padding-left: 24px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.625rem;
  font-weight: 500;
}

.chatroom .chatroom-content .chatroom-message > div {
  margin-top: 24px;
}

.chatroom .chatroom-content .chatroom-message-group .chatroom-message .another-message {
  display: flex;
  column-gap: 16px;
  align-items: center;
  padding-right: 40px;
  width: 100%;
}

.chatroom .chatroom-content .chatroom-message-group .self-group-mess {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.chatroom .chatroom-content .chatroom-message-group .self-mess-content {
  position: relative;
  padding: 9px 28px 9px 38px;
  width: 100%;
  background-color: #1A66FF;
  border-radius: 10px;
  overflow-wrap: break-word;
}

.chatroom .chatroom-content .chatroom-message-group .ant-image{
 margin-right: 40px;
}

.chatroom .chatroom-content .chatroom-message-group .self-mess-content .background-icon {
  right: -14px;
  bottom: 0;
}

.chatroom .chatroom-content .chatroom-message-group .self-mess-content span {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
}

.chatroom .chatroom-content .chatroom-message-group .chatroom-message .self-message {
  display: flex;
  column-gap: 16px;
  align-items: center;
  justify-content: end;
  padding-right: 24px;
  margin-right: 20px;
  width: 100%;
}

.chatroom .chatroom-message-group .online-button {
  position: absolute;
  bottom: 6;
  right: 10;
  transform: translate(66%, 66%);
}
.chatroom .member-item-avatar .online-button {
  position: absolute;
  bottom: -14;
  right: -8;
  z-index: 20;
}

.chatroom .chatroom-message-group .userIcon {
  bottom: 0;
  right: 0;
}
.chatroom button.uploadImage {
  background: transparent;
  border: none;
}
.chatroom .modal .modal-content {
  padding: 32px 24px;
  border-radius: 35px;
}

.chatroom .modal-header .btn-close {
  position: absolute;
  top: 20px;
  right: 20px;
  transform: unset;
}

.chatroom .modal-header {
  flex-direction: column;
  padding: unset;
  justify-content: center;
  border: none;
}

.chatroom .modal-header h1 {
  font-size: 1.25rem;
  color: var(--secondary);
  font-weight: 700;
}

.chatroom .modal-body {
  padding-top: unset;
  padding-bottom: unset;
}

.chatroom .modal-body .modal-upload > div{
  display: flex;
  justify-content: center;
}

.chatroom .modal-body .modal-upload svg:hover {
  cursor: pointer;
}

.chatroom .modal-body .modal-upload svg:hover path.add-button {
  fill: var(--red-main-hover);
}

.chatroom .modal-body .modal-group-name {
  display: flex;
  flex-direction: column;
}

.chatroom .modal-body .modal-group-name input {
  padding: 10px 16px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  outline: none;
}

.chatroom .modal-body .modal-group-name input::placeholder {
  font-size: 0.8125rem;
  color: var(--border);
}

.chatroom .modal-body .modal-group-name input:focus {
  border: 1px solid var(--red-main);
  box-shadow: none;
  outline: none;
}

.chatroom .modal-footer button.btn-4 {
  padding: 12px 20px;
  margin: unset;
}

.chatroom .modal-footer {
  padding: unset;
  justify-content: center;
  border-top: none;
}

.chatroom .modal-body .modal-search-member .modal-search-input {
  padding: 10px 16px 10px 42px;
  width: 100%;
  border-radius: 50px;
  border: 1px solid var(--color-base-white-op-20, rgba(255, 255, 255, 0.20));
  background: #0D0D0D;
  color: #fff;
  font-size: 0.8125rem;
}

.chatroom #modalAddMemberGroup .modal-body {
  padding: unset;
}

.chatroom .modal-body .modal-search-member .input-search-button {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.chatroom .modal-body .modal-member-list {
  height: 30vh;
  overflow-y: auto;
  padding-right: 12px;
}

.chatroom .modal-body .modal-member-list ul li {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border,);
}

.chatroom .modal-body .modal-member-list .member-item-avatar {
  max-width: 32px;
  max-height: 32px;
  border-radius: 50px;
  position: relative;
}

.chatroom .modal-body .modal-member-list .modal-invite-button {
  padding: 10px 20px;
}
/* Start: show join invitation */
 .custom-message-content{
  width: 300px;
}
:where(.css-dev-only-do-not-override-6j9yrn).ant-message .ant-message-notice-wrapper{
  text-align: right;
}
.ant-message .ant-message-notice-wrapper .anticon-check-circle{
  display: none;
}
.chatroom .another-mess-avatar img{
  width: 40px;
  height: 40px;
}
.chatroom .chatroom-item .item-has-online img{
  width: 56px;
  height: 56px;
}
.chatroom .choose-item-img .choose-item-img-container img{
  width: 40px;
  height: 40px;
}
.ant-message .modal-member-list .member-item-avatar img{
  width: 30px;
  height: 30px;
}
.ant-message .custom-message-content .inviteRoom{
  font-size: 16px;
  font-weight: 600;
}
.ant-message .custom-message-content .fw-inviteRoom{
  font-size: 13px;
  font-weight: 500;
  color: #757575;
}
.chatroom .searchButton{
  border: none;
  width: 30px;
  height: 30px;
  background: url('../../public/img/search_icon.svg') no-repeat center;
  position: absolute;
  top:20px;
  left: 30px;
  z-index: 20;
}
.chatroom .searchFriend{
  border: none;
  background-color: transparent;
}
.chatroom .chatroom-item:hover{
  cursor: pointer;
  background-color: #433e3e;
}
.chatroom .text-truncate{
  max-width: 130px;
  display: block;
}
.custom-message-content .text-truncate{
  max-width: 120px;
  display: block;
}
.ant-upload-wrapper.ant-upload-picture-circle-wrapper .ant-upload.ant-upload-select{
  border: none;
  background: none;
}
#chatRoomApp #modalCreateGroup .modal-content span.ant-upload img{
  border-radius: 50%;
  width: 100px;
  height: 100px;
}
.btnDisabled{
  cursor: not-allowed;
  opacity: 0.5;
}
.chatroom .chatroom-mess-text .input-voice:hover {
  background-color: #1677ff;
}
.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):hover {
  color: #fff;
}
.ant-btn-primary {
  background:none;
}
.ant-btn-primary:not(:disabled):not(.ant-btn-disabled):hover {
  background:none;
}
.emojiCover i{
  color: yellow;
}

.emojiCover:hover i{
  cursor: pointer;
  color: rgb(181, 181, 7);
}
.emoji-picker-container{
  bottom: 50;
  right: -23;
  z-index: 10;
}
/* End: show join invitation */
