.mainContent {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  height: calc(100vh - 78px);
  max-height: calc(100vh - 78px);
  overflow: hidden;
  box-sizing: border-box;
}
.mainContent > .leftSide {
  flex: 0 0 min(32%, 360px);
  width: min(32%, 360px);
  min-width: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f0eee9;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(29, 66, 138, 0.22);
}
.mainContent > .leftSide > .topPart {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 14px 16px 20px;
  border-bottom: 1px solid rgba(29, 66, 138, 0.22);
}
.mainContent > .leftSide > .topPart > .row01 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mainContent > .leftSide > .topPart > .row01 > h1 {
  font-size: 16px;
  color: #040718;
}
.mainContent > .leftSide > .topPart > .row01 > p {
  font-size: 14px;
  color: #1d428a;
}
.mainContent > .leftSide > .topPart > form > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #e5e1d8;
  border-radius: 12px;
  padding-left: 10px;
  box-shadow: 0 0px 4px 0 rgba(29, 66, 138, 0.16);
  border: 1px solid rgba(29, 66, 138, 0.22);
}
.mainContent > .leftSide > .topPart > form > div > img {
  color: transparent;
  width: 18px;
  height: 18px;
  filter: invert(1);
}
.mainContent > .leftSide > .topPart > form > div > input {
  width: calc(100% - 20px);
  height: 48px;
  border-radius: 0 10px 10px 0;
  outline: none;
  border: none;
  padding-left: 7px;
  background: transparent;
  font-family: var(--brand-font);
  font-size: 14px;
  color: #040718;
}
.mainContent > .leftSide > .bottomPart {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding: 20px 14px;
  height: calc(100% - 132px);
  overflow: hidden;
  overflow-y: auto;
}
.mainContent > .leftSide > .bottomPart > .chatSideBox {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}
.mainContent > .leftSide > .bottomPart > .chatSideBox:hover {
  background-color: #e5e1d8;
}
.mainContent > .leftSide > .bottomPart > .chatSideBox > .leftSide {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.mainContent > .leftSide > .bottomPart > .chatSideBox > .leftSide > .col01 {
  width: 40px;
  height: 40px;
  /* border-radius: 50%; */
  overflow: hidden;
  position: relative;
}
.mainContent
  > .leftSide
  > .bottomPart
  > .chatSideBox
  > .leftSide
  > .col01
  > img {
  color: transparent;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.mainContent
  > .leftSide
  > .bottomPart
  > .chatSideBox
  > .leftSide
  > .col01
  > .status {
  position: absolute;
  bottom: 0px;
  right: 1px;
  border-radius: 50px;
  background-color: #139b13;
  width: 10px;
  height: 10px;
  border: 1px solid #f0eee9;
}
.mainContent > .leftSide > .bottomPart > .chatSideBox > .leftSide > .col02 {
  display: flex;
  flex-direction: column;
}
.mainContent
  > .leftSide
  > .bottomPart
  > .chatSideBox
  > .leftSide
  > .col02
  > h1 {
  font-size: 14px;
  color: #040718;
}
.mainContent > .leftSide > .bottomPart > .chatSideBox > .leftSide > .col02 > p {
  font-size: 14px;
  color: #040718;
}
.mainContent > .leftSide > .bottomPart > .chatSideBox > .rightSide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 6px;
}
.mainContent > .leftSide > .bottomPart > .chatSideBox > .rightSide > p {
  font-size: 14px;
  color: #968c83;
}
.mainContent
  > .leftSide
  > .bottomPart
  > .chatSideBox
  > .rightSide
  > .unreadMsg {
  width: 8px;
  height: 8px;
  background-color: #1D428A;
  border-radius: 50%;
}
.mainContent > .centerPart {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f0eee9;
  overflow: hidden;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(29, 66, 138, 0.22);
  position: relative;
}
.mainContent > .centerPart > .topPart {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  background-color: #f5f3ee;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 0 8px 0 rgba(29, 66, 138, 0.14);
  position: relative;
  flex-shrink: 0;
}
.backBtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid rgba(29, 66, 138, 0.22);
  border-radius: 50%;
  background: linear-gradient(126deg, #1d428a 0%, #152e61 100%);
  cursor: pointer;
  padding: 0;
}
.backBtn svg {
  width: 14px;
  height: 14px;
  fill: #1d428a;
}
.mainContent > .centerPart > .topPart > .leftSide {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.mainContent > .centerPart > .topPart > .leftSide > .col01 {
  position: relative;
}
.mainContent > .centerPart > .topPart > .leftSide > .col01 > img {
  color: transparent;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #1D428A;
}
.mainContent > .centerPart > .topPart > .leftSide > .col01 > .status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  border-radius: 50px;
  background-color: #139b13;
  width: 10px;
  height: 10px;
  border: 1px solid #f0eee9;
}
.mainContent > .centerPart > .topPart > .leftSide > .col02 > h1 {
  font-size: 16px;
  color: #040718;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mainContent > .centerPart > .topPart > .leftSide > .col02 > p {
  font-size: 14px;
  color: #1d428a;
  text-transform: capitalize;
}
.mainContent > .centerPart > .topPart > .rightSide {
  width: 38px;
  height: 38px;
  background: linear-gradient(126deg, #C5CDD9 0%, #4A6FA8 100%);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(29, 66, 138, 0.22)7a;
  cursor: pointer;
  transition: 0.3s;

  &:active {
    transform: scale(0.87);
  }
  &:hover {
    border-color: #fff;
    opacity: 0.8;
  }
}
.mainContent > .centerPart > .topPart > .rightSide > svg {
  width: 5px;
  fill: #1D428A;
}
.mainContent > .centerPart > .centerContent {
  flex: 1;
  min-height: 0;
  height: auto;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 16px;
  overflow: hidden;
  overflow-y: auto;
}
.mainContent > .centerPart > .centerContent > .messagesList {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding-bottom: 8px;
}

/* User / incoming â€” LEFT */
.messagesList .sender {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
}

.messagesList .sender .messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(75%, 420px);
}

.messagesList .sender .msg {
  max-width: 100%;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  background: #ffffff;
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 1px rgba(10, 26, 117, 0.08);
  position: relative;
}

/* Admin / outgoing â€” RIGHT */
.messagesList .receiver {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: flex-end;
}

.messagesList .receiver .messages {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: min(75%, 420px);
}

.messagesList .receiver .msg {
  max-width: 100%;
  border-radius: 12px;
  border-bottom-right-radius: 4px;
  background: #c5cdd9;
  padding: 8px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 1px rgba(10, 26, 117, 0.12);
  position: relative;
}

.messagesList .sender .msg > p,
.messagesList .receiver .msg > p,
.messagesList .msgText {
  font-size: 14px;
  color: #040718;
  margin: 0;
  word-break: break-word;
  line-height: 1.4;
}

.messagesList .sender .msg > img,
.messagesList .receiver .msg > img,
.messagesList .sender .msg > video,
.messagesList .receiver .msg > video,
.messagesList .attachmentImage {
  color: transparent;
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Legacy direct-child selectors (empty state / no wrapper) */
.mainContent > .centerPart > .centerContent > .sender {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}
.mainContent > .centerPart > .centerContent > .sender > .messages,
.mainContent > .centerPart > .centerContent > .receiver > .messages {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}
.mainContent > .centerPart > .centerContent > .sender > .messages > .msg {
  max-width: 400px;
  border-radius: 8px;
  background: #dce6f4;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mainContent
  > .centerPart
  > .centerContent
  > .sender
  > .messages
  > .msg:last-child {
  position: relative;
  border-bottom-left-radius: 0;
}
.mainContent
  > .centerPart
  > .centerContent
  > .receiver
  > .messages
  > .msg:last-child {
  position: relative;
  border-bottom-right-radius: 0;
}
.mainContent
  > .centerPart
  > .centerContent
  > .sender
  > .messages
  > .msg:last-child::before,
.mainContent
  > .centerPart
  > .centerContent
  > .receiver
  > .messages
  > .msg:last-child::before {
  content: "";
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEwIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04Ljk5OTc2IDFMMiA1LjVDMC41MDAyNiA2LjUgMC43OTk3MTYgOCAzLjk5OTcyIDhIOC45OTk3Mkw4Ljk5OTc2IDFaIiBmaWxsPSIjZDVkYWZmIi8+CjxwYXRoIGQ9Ik0zLjk5OTcyIEMwLjc5OTcxNiA4IDAuNTAwMjYgNi41IDIuIDUuNUw4Ljk5OTc2IDFMOC45OTk3MiA4TTMuOTk5NzIgOEM3LjE5OTcyIDggOC42NjYzOCA4IDguOTk5NzIgOE0zLjk5OTcyIEg4Ljk5OTcyIiBzdHJva2U9IiNkNWRhZmYiLz4KPC9zdmc+Cg==");
  width: 30px;
  height: 21px;
  position: absolute;
  bottom: -2.4px;
  left: -16px;
  background-repeat: no-repeat;
  background-size: contain;
}
.mainContent
  > .centerPart
  > .centerContent
  > .receiver
  > .messages
  > .msg:last-child::before {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEwIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xLjAwMDI0IDFMOCA1LjVDOS40OTk3NCA2LjUgOS4yMDAyOCA4IDYuMDAwMjggOEgxLjAwMDI4TDEuMDAwMjQgMVoiIGZpbGw9IiM5RUE3RjEiLz4KPHBhdGggZD0iTTYuMDAwMjggOEM5LjIwMDI4IDggOS40OTk3NCA2LjUgOCA1LjVMMi4wMDAyNCAxTDEuMDAwMjggOE02LjAwMDI4IDhDMi44MDAyOCA4IDEuMzMzNjIgOCAxLjAwMDI4IDhNNi4wMDAyOCA4SDEuMDAwMjgiIHN0cm9rZT0iIzlFQTdGMSIvPgo8L3N2Zz4=");
  right: -19px;
  left: unset;
  bottom: -1px;
}
.mainContent > .centerPart > .centerContent > .sender > .messages > .msg > img,
.mainContent > .centerPart > .centerContent > .receiver > .messages > .msg > img,
.mainContent > .centerPart > .centerContent > .sender > .messages > .msg > video,
.mainContent > .centerPart > .centerContent > .receiver > .messages > .msg > video,
.attachmentImage {
  color: transparent;
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
}
.mainContent > .centerPart > .centerContent > .sender > .messages > .msg > p {
  font-size: 14px;
  color: #040718;
}
.mainContent > .centerPart > .centerContent > .receiver {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  align-items: flex-end;
}
.mainContent > .centerPart > .centerContent > .receiver > .time {
  display: flex;
  gap: 10px;
}
.mainContent > .centerPart > .centerContent > .receiver > .messages > .msg {
  max-width: 400px;
  border-radius: 8px;
  background: #c5cdd9;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mainContent > .centerPart > .centerContent > .receiver > .messages > .msg > p {
  font-size: 14px;
  color: #040718;
}
.mainContent > .centerPart > .centerContent > .receiver > .messages > p {
  font-size: 14px;
}
.mainContent > .centerPart > .bottomPart {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px -8px 57px -6px rgba(29, 66, 138, 0.28);
  border-radius: 16px;
  position: relative;
  flex-shrink: 0;
}
.mainContent > .centerPart > .bottomPart > form {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px;
  border-radius: 14px;
  background: #ebe8e2;
}
.mainContent > .centerPart > .bottomPart > form > .media {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(126deg, #C5CDD9 0%, #4A6FA8 100%);
  cursor: pointer;
  transition: 0.3s;

  &:active {
    transform: scale(0.87);
  }
  &:hover {
    border-color: #fff;
    opacity: 0.8;
  }
}
.mainContent > .centerPart > .bottomPart > form > .media > svg {
  width: 16px;
  fill: #1D428A;
}
.mainContent > .centerPart > .bottomPart > form > .writtingDiv {
  width: calc(100% - 128px);
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--brand-font);
  color: #040718;
  min-height: 36px;
  max-height: 230px;
  display: flex;
  align-items: center;
  overflow: auto;
}
.mainContent > .centerPart > .bottomPart > form > .writtingDiv > p {
  white-space: pre-wrap;
}

.mainContent > .centerPart > .bottomPart > form > .writtingDiv > p > br {
  display: none !important;
}
.mainContent > .centerPart > .bottomPart > form > .writtingDiv > p::after {
  content: attr(data-placeholder);
  cursor: text;
  pointer-events: none;
  position: relative;
}
.mainContent > .centerPart > .bottomPart > form > .writtingDiv > p.hide::after {
  display: none;
}
.mainContent > .centerPart > .bottomPart > form > .rightSide {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
}
.mainContent > .centerPart > .bottomPart > form > .rightSide > svg {
  width: 20px;
  fill: #1D428A;
  cursor: pointer;

  &:active {
    transform: scale(0.87);
  }
  &:hover {
    border-color: #fff;
    opacity: 0.8;
  }
}
.mainContent > .centerPart > .bottomPart > form > .rightSide > button {
  background: linear-gradient(126deg, #C5CDD9 0%, #4A6FA8 100%);
  height: 36px;
  width: 80px;
  border: none;
  outline: none;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1D428A;
  cursor: pointer;
}
.mainContent > .centerPart > .bottomPart > form > .rightSide > button > svg {
  width: 18px;
  cursor: pointer;
}
.mainContent
  > .centerPart
  > .bottomPart
  > form
  > .rightSide
  > button
  > svg
  > path:first-child {
  fill: #1D428A;
}
.mainContent > .rightSide {
  width: 20%;
  height: calc(100vh - 126px);
  display: flex;
  flex-direction: column;
  background-color: #f0eee9;
  overflow: hidden;
  border-radius: 20px;
  padding: 38px 16px;
  gap: 22px;
  border: 1px solid rgba(29, 66, 138, 0.22);
}
.mainContent > .rightSide > .topPart {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(29, 66, 138, 0.22);
}
.mainContent > .rightSide > .topPart > img {
  color: transparent;
  border-radius: 50%;
  object-fit: cover;
  width: 100px !important;
  height: 100px !important;
  border: 1px solid #1d428a;
  box-shadow: 0 0 14px 0 rgba(29, 66, 138, 0.22);
}
.mainContent > .rightSide > .topPart > .shortDetail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.mainContent > .rightSide > .topPart > .shortDetail > a {
  transition: 0.3s;
  &:hover {
    opacity: 0.8;
  }
}
.mainContent > .rightSide > .topPart > .icons {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: end;
  margin-top: 1rem;
}
.mainContent > .rightSide > .topPart > .icons > a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(126deg, #C5CDD9 0%, #4A6FA8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;

  &:active {
    transform: scale(0.87);
  }
  &:hover {
    border-color: #fff;
    opacity: 0.8;
  }
}
.mainContent > .rightSide > .topPart > .icons > a > svg {
  width: 16px;
  fill: #1D428A;
}
.mainContent > .rightSide > .bottomPart {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mainContent > .rightSide > .bottomPart > .container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}
.mainContent > .rightSide > .bottomPart > .container > a,
.mainContent > .rightSide > .bottomPart > .container > p {
  font-size: 16px;
  color: #1d428a;
}
.mainContent > .rightSide > .bottomPart > .container > a {
  transition: 0.3s;

  &:hover {
    opacity: 0.8;
  }
}

.mainContent > .rightSide > .bottomPart > .container > p.heading {
  font-size: 16px;
  color: #040718;
}
.particularChatOption {
  width: 220px;
  position: absolute;
  bottom: -87px;
  right: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background-color: #e5e1d8;
  border: 1px solid rgba(29, 66, 138, 0.28);
}
.particularChatOption::before {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  top: -9px;
  background-color: #e5e1d8;
  right: 12%;
  transform: rotate(45deg);
  border-top: 1px solid rgba(29, 66, 138, 0.28);
  border-left: 1px solid rgba(29, 66, 138, 0.28);
}
.particularChatOption p {
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid rgba(29, 66, 138, 0.32);
  transition: 0.3s;
  cursor: pointer;
  color: #040718;
  z-index: 1;
}
.particularChatOption p:first-child {
  border-radius: 12px 12px 0 0;
}
.particularChatOption p:hover {
  background-color: #ebe8e2;
}
.particularChatOption p:last-child {
  border-bottom: unset;
  border-radius: 0 0 12px 12px;
}
.particularChatOption p.deleteAccount {
  color: #f30e0e;
}
.mediaOptionShow {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 54px;
  background-color: #e5e1d8;
  border: 1px solid rgba(29, 66, 138, 0.22);
  padding: 14px 6px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 20px 0 rgba(29, 66, 138, 0.2);
}
.mediaOptionShow .iconDiv {
  width: 100%;
  height: 38px;
  background: #f5f3ee;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;

  &:active {
    transform: scale(0.87);
  }
  &:hover {
    border-color: #fff;
    opacity: 0.8;
  }
}
.mediaOptionShow .iconDiv svg {
  fill: #1D428A;
  width: 20px;
  height: 20px;
}

.messageBeforeSelectedPage {
  flex: 1;
  min-width: 0;
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f0eee9;
  background-image: url("../../public/images/message/chatBG.jpg");
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(29, 66, 138, 0.22);
  background-position: center;
  background-blend-mode: multiply;
  gap: 18px;
}
.messageBeforeSelectedPage img {
  width: 250px !important;
  height: 250px !important;
  transition: 0.3s;
  animation-name: zoom-out-and-in;
  animation-duration: 1.5s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
  animation-direction: alternate-reverse;
}
.messageBeforeSelectedPage .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-color: rgba(240, 238, 233, 0.55);
  box-shadow: 0 0 20px 0 #f0eee9;
  padding: 14px;
}
.messageBeforeSelectedPage .container h1 {
  font-size: 28px;
  color: #000318;
}
.messageBeforeSelectedPage .container p {
  font-size: 18px;
  color: #040718;
}

.mainContent > .leftSide > .bottomPart > .chatSideBox > .rightSide > .unreadBadge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background-color: #1d428a;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatSideBoxActive {
  background-color: #e5e1d8 !important;
}
.typingPreview {
  color: #1d428a !important;
  font-style: italic;
}
.msgFooter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}
.msgTime {
  font-size: 11px;
  color: #968c83;
  opacity: 0.9;
}
.msgText {
  margin: 0;
  word-break: break-word;
}
.deletedMsg {
  opacity: 0.7;
  font-style: italic;
}
.fileLink {
  color: #1d428a;
  font-size: 14px;
  text-decoration: underline;
}
.emptyInbox,
.emptyChat {
  color: #968c83;
  font-size: 14px;
  margin: auto;
}
.loadOlder {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.messageInput {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--brand-font);
  font-size: 14px;
  color: #040718;
  padding: 10px 12px;
  line-height: 1.4;
}
.mediaPreviewOverlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #1a1f3a;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
}
.mediaPreviewHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
}
.mediaPreviewClose,
.mediaPreviewSend {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 10px;
}
.mediaPreviewSend {
  background: #1d428a;
  border-radius: 8px;
  font-weight: 500;
}
.mediaPreviewSend:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.mediaPreviewGrid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
}
.mediaPreviewItem {
  position: relative;
  max-width: 320px;
}
.mediaPreviewImage {
  max-width: 100%;
  max-height: 50vh;
  border-radius: 8px;
  object-fit: contain;
}
.mediaPreviewFile {
  padding: 24px;
  background: #2a3158;
  color: #fff;
  border-radius: 8px;
}
.mediaPreviewRemove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}
.mediaPreviewCaption {
  padding: 12px 16px;
  background: #0f1228;
}
.mediaPreviewCaption input {
  width: 100%;
  border: none;
  outline: none;
  background: #2a3158;
  color: #fff;
  border-radius: 24px;
  padding: 12px 16px;
  font-size: 14px;
}
.mainContent > .centerPart {
  position: relative;
}

@media (max-width: 1199px) {
  .mainContent > .leftSide {
    flex: 0 0 280px;
    width: 280px;
    min-width: 240px;
  }
}

@media (max-width: 991px) {
  .mainContent {
    padding: 0.75rem;
    gap: 12px;
  }

  .mainContent > .leftSide {
    flex: 0 0 240px;
    width: 240px;
    min-width: 220px;
  }

  .messagesList .sender .messages,
  .messagesList .receiver .messages {
    max-width: min(85%, 360px);
  }
}

@media (max-width: 767px) {
  .mainContent {
    padding: 0.5rem;
    gap: 0;
    height: calc(100vh - 72px);
    max-height: calc(100vh - 72px);
  }

  .mainContent > .leftSide {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 16px;
  }

  .inboxHiddenMobile {
    display: none !important;
  }

  .mainContent > .centerPart,
  .chatPanel {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    border-radius: 16px;
    padding: 10px;
  }

  .messageBeforeSelectedPage {
    display: none;
  }

  .backBtn {
    display: flex;
  }

  .mainContent > .centerPart > .centerContent {
    padding: 12px 10px;
  }

  .mainContent > .leftSide > .topPart {
    padding: 12px;
    gap: 16px;
  }

  .mainContent > .leftSide > .bottomPart {
    padding: 12px 10px;
  }

  .messagesList .sender .messages,
  .messagesList .receiver .messages {
    max-width: 88%;
  }

  .messageBeforeSelectedPage .container h1 {
    font-size: 22px;
  }

  .messageBeforeSelectedPage .container p {
    font-size: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mainContent > .centerPart > .topPart > .leftSide > .col01 > img {
    width: 42px;
    height: 42px;
  }

  .mainContent > .centerPart > .topPart > .leftSide > .col02 > h1 {
    font-size: 15px;
  }

  .mainContent > .centerPart > .bottomPart > form {
    padding: 8px;
    gap: 8px;
  }

  .mainContent > .centerPart > .bottomPart > form > .rightSide > button {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@keyframes zoom-out-and-in {
  0% {
    transform: scale(0.95) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(-5deg);
  }
}
