.quillEditor * {
  max-width: 100% !important;
  padding-left: 4px !important;
  padding-top: 0 !important;
}

.qlContainer :global .ql-editor.ql-blank::before {
  max-width: 100% !important;
}

.quillEditor *::before {
  max-width: 100% !important;
  width: 100% !important;
}

.activeRoom {
  background: var(--white);
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
  margin-top: 8px;
  box-shadow: 0 1px 1px var(--neutral-100);
}

.activeRoom :global .ant-comment-inner {
  padding: 10px 0;
}

.inactiveRoom :global .ant-comment-inner {
  padding: 10px 0;
}

.inactiveRoom {
  padding-left: 8px;
  padding-right: 8px;
  margin-top: 8px;
  background: var(--zinc-50);
}

.inactiveRoom:hover {
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 1px var(--neutral-100);
}

.chatMessage {
  background: rgb(250 251 252);
  padding: 10px;
  border-radius: 8px;
  width: fit-content;
}

.myChatMessage {
  background: rgb(224 242 254);
  padding: 10px;
  border-radius: 8px;
  width: fit-content;
}

.chatContainer {
  display: grid;
  margin-left: auto;
  margin-right: auto;
  min-height: 100vh;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.addRoomIcon {
  cursor: pointer;
  padding: 4px;
}

.addRoomIcon:hover {
  background: var(--gray-300);
  color: var(--white);
  border-radius: 4px;
}

.roomContainer {
  margin-left: auto;
  margin-right: auto;
  max-width: 1170px;
  position: relative;
  height: 750px;
  width: 100%;
  box-shadow: 0 2px 30px var(--neutral-200);
  border-radius: 1rem;
}

.chatListContainer {
  float: left;
  background: var(--zinc-50);
  height: 100%;
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.chatList {
  padding: 10px;
  width: 330px;
  height: 100%;
  max-height: 750px;
  overflow-y: auto;
}

.messageContainer {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.messagePanel {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1;
}

.messageHeader {
  transform: matrix(1, 0, 0, 1, 0, 0);
  border-bottom: 1px solid var(--neutral-200);
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  z-index: 700;
}

.messageList {
  flex: 1 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: var(--white);
  border-radius: 1rem;
}

.messageImage {
  max-width: 360px;
  max-height: 360px;
  margin: 4px;
}

.messageImage img {
  max-height: 360px !important;
}

.messageInput {
  border-top: 1px solid var(--neutral-200);
  align-items: end;
  padding: 8px;
  border-bottom-right-radius: 1rem;
  position: relative;
  z-index: 777;
  background: var(--white);
}

.qlContainer {
  width: 100%;
}

.qlContainer :global .ql-mention-list-container {
  max-height: 400px !important;
}

.qlContainer :global .ql-editor {
  padding: 8px !important;
  max-height: 60px;
  overflow: hidden;
  overflow-y: scroll;
}

.qlContainer :global .ql-editor > p {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
}

.qlContainer :global #emoji-palette {
  top: unset !important;
  bottom: 60px;
}

.toolbarIcon {
  cursor: pointer;
}

.messageTextArea {
  border-radius: 30px !important;
  padding: 2px !important;
}

.messageEmoji {
  cursor: pointer;
  font-size: 30px;
  margin-right: 4px;
  margin-left: 4px;
  color: var(--neutral-600);
}

.messageEmoji:hover {
  color: var(--ant-primary-color);
}

.messageHeaderAvatar {
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  border-radius: 20px;
  overflow: hidden;
  margin-left: 20px;
}

.messageHeaderTitle {
  font-weight: 700;
  font-size: 15px;
  color: rgb(0 0 0 / 90%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.onlineDot {
  position: absolute;
  top: -4px;
  right: 8px;
}

.onlineDot :global .ant-badge-dot {
  background: var(--ant-success-color);
}

.messageHeaderMenu {
  display: none;
}

.roomAvatar {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--neutral-100);
  border-radius: 4px;
  width: 40px;
  height: 40px;
}

.roomAvatar > li > img {
  width: auto !important;
  height: auto !important;
}

.createModal {
  width: 800px !important;
  max-width: 100% !important;
  border-radius: 6px;
}

.userlist {
  width: 50% !important;
  height: 500px;
  overflow: scroll;
}

.userlistDrawer {
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  position: absolute;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 60px;
  z-index: 600;
}

.userlistDrawer :global .ant-drawer-body {
  padding: 0 !important;
}

.userlistDrawer :global .ant-comment-inner {
  padding: 10px 0;
}

.userlistDrawer :global .ant-list {
  padding-bottom: 150px;
}

.userlistDrawer :global .ant-drawer-content-wrapper {
  box-shadow: none !important;
}

.searchInputContainer {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  padding-bottom: 16px;
}

.searchInput {
  margin-top: 16px;
  margin-left: 16px;
  margin-right: 16px;
  width: calc(100% - 32px);
}

.editIcon {
  opacity: 0;
  cursor: pointer;
  font-size: 12px;
}

.editIcon:hover {
  opacity: 1 !important;
}

.li {
  display: flex;
}

.li:only-child {
  height: 100%;
  align-items: center;
}

.li:first-child:nth-last-child(2),
.li:first-child:nth-last-child(2) + li {
  width: 50%;
  height: 50%;
}

.li:first-child:nth-last-child(2) + li {
  margin-left: auto;
}

.li:first-child:nth-last-child(3),
.li:first-child:nth-last-child(3) ~ li {
  width: 50%;
}

.li:first-child:nth-last-child(3) {
  margin: auto;
}

.li:first-child:nth-last-child(3) ~ li {
  float: left;
}

.li:first-child:nth-last-child(4),
.li:first-child:nth-last-child(4) ~ li {
  width: 50%;
  float: left;
}

.li:first-child:nth-last-child(5),
.li:first-child:nth-last-child(5) ~ li,
.li:first-child:nth-last-child(8),
.li:first-child:nth-last-child(8) ~ li,
.li:first-child:nth-last-child(6),
.li:first-child:nth-last-child(6) ~ li,
.li:first-child:nth-last-child(7),
.li:first-child:nth-last-child(9),
.li:first-child:nth-last-child(7) ~ li,
.li:first-child:nth-last-child(9) ~ li {
  width: 33%;
  float: left;
}

.li:first-child:nth-last-child(5),
.li:first-child:nth-last-child(5) + li {
  margin-top: 16%;
}

.li:first-child:nth-last-child(5),
.li:first-child:nth-last-child(8) {
  margin-left: 15%;
}

.li:first-child:nth-last-child(6),
.li:first-child:nth-last-child(6) + li,
.li:first-child:nth-last-child(6) + li + li {
  margin-top: 16%;
}

.li:first-child:nth-last-child(7) {
  float: none;
  margin: auto;
}

@media screen and (max-width: 768px) {
  .roomContainer {
    border-radius: 0;
    height: unset;
  }

  .chatContainer {
    padding-left: 0;
    padding-right: 0;
    grid-template-rows: 0 100vh;
  }

  .chatListContainer {
    display: none;
  }

  .messageHeader {
    border-radius: 0;
  }

  .messageInput {
    background: var(--white);
    border-bottom-right-radius: 0;
  }

  .userlist {
    max-height: 360px;
  }

  .messageHeaderMenu {
    display: block;
    margin-left: 20px;
  }

  .roomListDrawer :global .ant-drawer {
    z-index: 999;
  }

  .roomListDrawer :global .ant-drawer-content-wrapper {
    width: 100% !important;
  }

  .roomListDrawer :global .ant-drawer-body {
    background: var(--zinc-50);
  }
}
