:root {
  --height-adustment: 110px;
}

html {
  height: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  overflow-y: hidden;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  max-width: 100vw;
}

hr,
.hr {
  margin: 1.5rem 0;
}

.rtl {
  direction: rtl;
}

.ti {
  font-size: 16px;
  justify-content: center;
  align-items: center;
}

.icon {
  font-size: 1.25rem !important;
}

#wrapper,
.wrapper {
  overflow: hidden;
}

.sidebar-wrapper {
  min-height: calc((var(--vh, 1vh) * 100));
  margin-left: 0;
  transition: margin 0.25s ease-out;
  background-color: #f2f3f5;
  position: relative;
}

.rightbar-wrapper {
  min-height: calc((var(--vh, 1vh) * 100) - 3rem);
  transition: margin 0.25s ease-in;
  min-width: 15rem;
  width: 15rem;
  margin-right: 0;
  background: #f8fafc;
  z-index: 9;
}

/* Remove the border-start (border-left) from the right panel to prevent visible line */
.right-panel.border-start {
  border-left: none !important;
}

.sidebar-wrapper .sidebar-heading {
  padding: 0.875rem 1.25rem;
  font-size: 1.2rem;
}

body.sb-sidenav-toggled #wrapper .sidebar-wrapper {
  /* margin-left: -19.5rem; */
  margin-left: -15rem;
}

body.sb-rightnav-toggled #wrapper .rightbar-wrapper {
  margin-right: -15rem;
}

.page-content-wrapper {
  /* min-width: 100vw; */
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: calc((var(--vh, 1vh) * 100));
}

.main-panel {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: calc((var(--vh, 1vh) * 100) - 50px);
  min-height: 0;
}

.room-bar {
  width: 4.5rem;
  display: flex;
  height: calc((var(--vh, 1vh) * 100));
  background-color: #e3e5e8;
  z-index: 1024;
}

.channel-bar {
  width: 15rem;
}

.mini-brand {
  padding: 10px;
  display: flex;
  justify-content: center;
}

.mini-brand-seperator {
  height: 2px;
  width: 32px;
  border-radius: 1px;
  background-color: #141b20;
  margin-left: auto;
  margin-right: auto;
}

.room-list {
  padding: 0;
  margin-top: 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.room-list .room-list-item {
  list-style: none;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  position: relative;
}

.pill {
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 0px;
  background: #060607;
  position: absolute;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: 0.3s;
}

.private-item .pill,
.explore-room .pill,
.radio-container .pill,
.manage-room .pill {
  left: -10px;
}

.room-list-item:hover .pill,
.private-item:hover .pill,
.explore-room:hover .pill,
.manage-room:hover .pill,
.radio-container:hover .pill {
  height: 40px;
}

.room-list-item .pill.active,
.private-item .pill.active,
.explore-room .pill.active,
.manage-room .pill.active {
  height: 40px;
}

.chatroom-item {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.chatroom-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: center;
}

.action-list {
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  bottom: 0;
  padding-top: 10px;
  margin-top: auto;
}

.action-item {
  background: #eee;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  line-height: 1;
  position: relative;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.room-name {
  width: 100%;
  font-weight: 900;
  font-size: 15px;
  text-transform: uppercase;
  transition: 0.3s;
}

.room-name .dropdown-toggle {
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.room-name span {
  width: 88%;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar {
  height: 3rem;
  min-height: 3rem;
  border-bottom: 1px solid rgba(98, 105, 118, 0.16);
  padding-left: 15px;
  padding-right: 15px;
  position: relative;
}

.channel-cat {
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
  padding-left: 10px;
  margin-bottom: 1px;
  margin-right: 3px;
  margin-left: 3px;
  border-radius: 5px;
  padding: 5px 10px;
  transition: 0.1s;
  display: flex;
}

.channel-cat:hover {
  background-color: #dfe1e5;
}

.channel-cat-actions {
  margin-left: auto;
}

.channel-item {
  padding: 10px 12px;
  cursor: pointer;
  margin-left: 8px;
  margin-right: 8px;
  margin-bottom: 4px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.channel-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  color: #374151;
}

.channel-icon,
.top-channel-icon {
  display: flex;
  align-items: center;
  color: #6b7280;
}

.channel-item:hover {
  background-color: #ecfdf5;
  border-color: #10b981;
  transform: translateX(2px);
}

.channel-item:hover .channel-name {
  color: #059669;
}

.channel-item.active {
  background-color: #ecfdf5;
  border-color: #10b981;
  color: #10b981;
}

.channel-item.active .channel-name {
  color: #059669;
  font-weight: 600;
}

/* Dark mode styles */
.dark .channel-item {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .channel-name {
  color: #f3f4f6;
}

.dark .channel-icon,
.dark .top-channel-icon {
  color: #9ca3af;
}

.dark .channel-item:hover {
  background-color: #064e3b;
  border-color: #34d399;
}

.dark .channel-item:hover .channel-name {
  color: #a7f3d0;
}

.dark .channel-item.active {
  background-color: #064e3b;
  border-color: #34d399;
}

.dark .channel-item.active .channel-name {
  color: #a7f3d0;
  font-weight: 600;
}

@media (max-width: 768px) {
  /* Mobile styles - no hover, so make active state very clear */
  .channel-item {
    padding: 12px 14px;
    min-height: 44px;
    background-color: #fff;
  }

  .channel-item.active {
    background-color: #ecfdf5;
    border-left: 4px solid #059669;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.15);
  }

  .channel-item.active .channel-name {
    color: #059669;
  }

  /* Dark mode mobile */
  .dark .channel-item {
    background-color: #1f2937;
  }

  .dark .channel-item.active {
    background-color: #064e3b;
    border-left: 4px solid #34d399;
    box-shadow: 0 2px 4px rgba(52, 211, 153, 0.2);
  }

  .dark .channel-item.active .channel-name {
    color: #a7f3d0;
  }
}

.channel-actions {
  margin-left: auto;
  font-size: 16px;
  padding-right: 5px;
}

.channel-container {
  margin-top: -48px;
}

.sidebar-height-fix {
  overflow: auto;
  height: calc((var(--vh, 1vh) * 100) - 48px);
}

.sidebar-height-fix-mt48 {
  margin-top: 48px;
  height: calc((var(--vh, 1vh) * 100) - 96px);
  overflow-y: auto;
  overflow-x: hidden;
}

.channel-list {
  padding: 10px 0 10px 0px;
  background-color: #f2f3f5;
}

.topbar-channels {
  background-color: rgba(242, 243, 245, 0);
  z-index: 1;
}

.room-img-shown .room-name {
  color: #fff;
  /* -webkit-filter: drop-shadow(0 1px 1px rgba(0,0,0,.8));
	filter: drop-shadow(0 1px 1px hsla(0,0%,0%,.8)); */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: 0.3s;
}

.room-img:before {
  content: "";
  position: absolute;
  top: 0;

  left: 0;
  width: 100%;
  height: 58px;
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(0, 0, 0, 0.4)),
    to(transparent)
  );
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0, transparent);
}

.room-img {
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.channel-list-bottom {
  height: 48px;
  display: flex;
}

#rpanel-tab .nav-link {
  display: block;
}

.btn-sm-round {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  align-self: center;
}

.page-content-wrapper .topbar {
  padding-left: 10px;
  padding-right: 10px;
  flex-wrap: nowrap;
}

.rotate {
  -moz-transition: all 0.3s linear;
  -webkit-transition: all 20.3s linear;
  transition: all 0.3s linear;
}

.rotate.down {
  -moz-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.top-channel-name {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100% !important;
  width: auto;
}

.hidden {
  display: none !important;
}

.cht {
  clear: both;
  float: left;
  width: 100%;
  font-size: 15.2px;
  display: flex;
  position: relative;
  margin-bottom: 6px;
  word-break: break-word;
}

.cht .message-data {
  display: inline-block;
  border-radius: 5px;
  max-width: 255px;
  line-height: 1;
  margin-bottom: 0px;
  position: relative;
}

.cht.sent {
  justify-content: flex-end;
}

.cht .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.cht.sent .avatar {
  margin-left: 8px;
  order: 3;
  flex-shrink: 0;
}

.cht.replies .avatar {
  margin-right: 8px;
  order: 0;
  flex-shrink: 0;
}

.cht.sent .message-data,
.sent .video-link,
.sent .link-meta {
  color: #f5f5f5;
}

.cht.sent .message-data {
  order: 2;
  position: relative;
  flex-shrink: 1;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.message-data.grp small {
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  padding-bottom: 3px;
}

.sent .message-data:before {
  content: " ";
  position: absolute;
  width: 0;
  height: 0;
  right: -4px;
  left: auto;
  top: 0px;
  bottom: auto;
  border: 7px solid;
}

.replies .message-data:after {
  content: " ";
  position: absolute;
  width: 0;
  height: 0;
  left: -4px;
  right: auto;
  top: 0px;
  bottom: auto;
  border: 7px solid;
}

.message-html,
.chat-img,
.chat-txt,
.chat-gif,
.chat-sticker {
  display: block;
  overflow: hidden;
}

.message-status.read {
  color: #547fff;
}

.message-status {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  color: #65676b;
  font-style: italic;
  margin-left: 4px;
  flex-shrink: 0;
}

.message-status-text {
  font-size: 11px;
  font-weight: 500;
}

.message-status.read .message-status-text {
  color: #547fff;
}

/* Position status indicator like Facebook - under sent messages on the right */
.cht.sent {
  position: relative;
}

/* Extra spacing between messages for private chats */
.private-chat .cht {
  margin-bottom: 20px;
}

.cht.sent .message-status {
  position: absolute;
  right: 0;
  bottom: -18px;
  font-size: 11px;
}

.chat-txt {
  line-height: 19px;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  max-width: 100%;
  padding: 5px 10px 5px 10px;
  display: block;
  border-radius: 5px;
}

.chat-txt.join-announcement {
  color: #6495ed !important;
  font-weight: 500 !important;
  font-style: italic !important;
  font-size: 0.85em !important;
  text-align: center !important;
}

.cht .chat-txt.join-announcement {
  color: #6495ed !important;
}

/* Username mention highlighting - green and bold */
.username-mention {
  color: #28a745 !important;
  font-weight: bold !important;
}

.cht.replies .message-data small {
  color: #03a9f4 !important;
}

.cht .message-data small {
  display: block;
  font-weight: bold;
  color: #4e73df;
  padding-left: 10px;
  padding-top: 5px;
  padding-right: 10px;
}

.message-data.grp .message-html > div {
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  padding-top: 0px;
}

.sent .forward-check {
  margin-right: auto;
}

.forward-check {
  display: flex;
  padding-left: 8px;
}

.new-date p {
  text-align: center;
  width: 100%;
  max-width: unset !important;
}

figure {
  margin: 0;
}

.chat-img-grp .chat-img img {
  border-radius: 0px;
}

.chat-img-grp .chat-img:nth-child(1) img {
  width: 100%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.chat-img-grp .chat-img:nth-child(2) img {
  border-bottom-left-radius: 5px;
}

.chat-img-grp .chat-img:nth-child(3) img {
  border-bottom-right-radius: 5px;
}

.chat-img-grp .chat-img:nth-child(n + 2) {
  display: inline-block;
  width: 50%;
}

.chat-img-grp .chat-img:nth-child(n + 2) img {
  width: 100%;
  object-fit: cover;
}

.chat-img-sgl img {
  border-radius: 5px;
  object-fit: cover;
}

.chat-img-duo img {
  border-radius: 5px;
  object-fit: cover;
}

.chat-img-duo figure:nth-child(1) {
  margin-bottom: 5px;
}

.chat-img.more {
  position: relative;
}

.more-ovrlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f3f3f3;
  font-size: 24px;
  border-bottom-right-radius: 5px;
}

.chat-img-duo .chat-img:nth-child(1) {
  margin-bottom: 5px;
}

.chat-img-duo,
.chat-img-grp,
.chat-img-sgl,
.chat-gif {
  padding: 5px !important;
  border-radius: 5px;
}

.chat-img-sgl {
  height: 100%;
}

.chat-img-duo {
  height: 100%;
}

.chat-img-grp {
  max-width: 240px;
  height: 100%;
}

.sent div.chat-gif img {
  object-fit: cover;
  object-position: center;
}

.file-section {
  display: inline-block;
  padding: 10px !important;
  color: #fff;
  position: relative;
  width: 220px;
  border-radius: 5px;
  height: 52px;
}

.file-header {
  display: flex;
  outline: none;
}

.file-icon {
  min-width: 30px;
  margin-right: 5px;
  align-self: flex-start;
  position: relative;
  font-size: 32px;
}

.file-description {
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  width: 60%;
  line-height: 1.2;
}

.file-title {
  display: block;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 0;
  margin: -4px 0;
  display: -webkit-box;
  overflow: hidden;
  word-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.file-meta {
  line-height: 1;
}

.file-meta-entry {
  white-space: nowrap;
  margin-top: 4px;
}

.file-meta-swap {
  display: inline-block;
  width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  position: relative;
  vertical-align: top;
  white-space: nowrap;
  font-size: 12px;
}

.file-actions {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 10px;
}

.file-download-icon {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #8bc34a;
}

.file-download-icon:hover {
  color: #47b9cc;
}

.file-action-buttons {
  text-decoration: none;
  align-items: center;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  position: relative;
  background: rgba(0, 0, 0, 20%);
}

.chat-files-block:nth-child(n + 2) .file-section {
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  margin-top: 3px;
}

.chat-code {
  padding: 5px;
  display: block;
  border-radius: 5px;
  line-height: 19px;
  white-space: pre-line;
  position: relative;
  overflow: hidden;
}

code[class*="language-"],
pre[class*="language-"] {
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

.chat-code > pre {
  border-radius: 5px !important;
  margin: 0 !important;
}

.code-caption {
  padding-top: 5px;
  display: flex;
  align-self: center;
}

.code-lang {
  display: inline-block;
  padding: 3px 5px;
  background: #36b9cc;
  font-size: 11px;
  line-height: 1;
  overflow: hidden;
  min-width: 30px;
  max-height: 17px;
  white-space: nowrap;
  color: #fff;
  border-radius: 2px;
}

.code-title {
  display: flex;
  align-self: center;
  margin-left: 5px;
}

@media screen and (min-width: 735px) {
  .cht .message-data {
    max-width: 100%;
  }
}

.green-audio-player {
  width: 200px;
  height: 32px;
  box-shadow: 0 4px 16px 0 rgb(0 0 0 / 7%);
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 4px !important;
  user-select: none;
  background-color: #fff;
  box-sizing: border-box;
  outline: none;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.green-audio-player.player-accessible .play-pause-btn:hover,
.green-audio-player.player-accessible .controls:hover,
.green-audio-player.player-accessible .volume__button:hover,
.green-audio-player.player-accessible .volume__controls:hover,
.green-audio-player.player-accessible .download:hover {
  outline: dotted 1px #999;
}

.green-audio-player svg,
.green-audio-player img {
  display: block;
  width: 10px;
}

.green-audio-player .holder {
  position: relative;
}

.green-audio-player .holder .loading .loading__spinner {
  position: absolute;
  left: -3px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border: 2px solid #b0b0b0;
  border-right-color: rgba(0, 0, 0, 0);
  border-radius: 50%;
  animation: spin 0.4s linear infinite;
}

.green-audio-player .holder .play-pause-btn {
  visibility: hidden;
  cursor: pointer;
  outline: none;
}

.green-audio-player .holder .play-pause-btn:focus {
  outline: none;
}

.green-audio-player .slider {
  flex-grow: 1;
  background-color: #d8d8d8;
  cursor: pointer;
  position: relative;
}

.green-audio-player .slider .gap-progress {
  background-color: #44bfa3;
  border-radius: inherit;
  position: absolute;
  pointer-events: none;
}

.green-audio-player .slider .gap-progress .pin {
  height: 10px;
  width: 10px;
  border-radius: 8px;
  background-color: #44bfa3;
  position: absolute;
  pointer-events: all;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.32);
}

.green-audio-player .slider .gap-progress .pin::after {
  content: "";
  display: block;
  background: rgba(0, 0, 0, 0);
  width: 200%;
  height: 200%;
  margin-left: -50%;
  margin-top: -50%;
  border-radius: 50%;
}

.green-audio-player .controls {
  font-size: 10px;
  line-height: 18px;
  color: #55606e;
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
  outline: none;
  position: relative;
  margin-top: -11px !important;
}

.green-audio-player .controls .controls__slider {
  margin-left: 16px;
  border-radius: 2px;
  height: 4px;
}

.green-audio-player .controls .controls__slider .controls__progress {
  width: 0;
  height: 100%;
}

.green-audio-player
  .controls
  .controls__slider
  .controls__progress
  .progress__pin {
  right: -8px;
  top: -3px;
}

.green-audio-player .controls span {
  cursor: default;
}

.green-audio-player .controls:focus {
  outline: none;
}

.green-audio-player .volume {
  position: relative;
  display: none;
}

.green-audio-player .volume .volume__button {
  cursor: pointer;
  outline: none;
}

.green-audio-player .volume .volume__button:focus {
  outline: none;
}

.green-audio-player .volume .volume__button.open path {
  fill: #44bfa3;
}

.green-audio-player .volume .volume__controls {
  width: 30px;
  height: 135px;
  background-color: rgba(0, 0, 0, 0.62);
  border-radius: 7px;
  position: absolute;
  left: -3px;
  bottom: 52px;
  flex-direction: column;
  align-items: center;
  display: flex;
  z-index: 2;
  outline: none;
}

.green-audio-player .volume .volume__controls .volume__slider {
  margin-top: 12px;
  margin-bottom: 12px;
  width: 6px;
  border-radius: 3px;
}

.green-audio-player
  .volume
  .volume__controls
  .volume__slider
  .volume__progress {
  bottom: 0;
  height: 100%;
  width: 6px;
}

.green-audio-player
  .volume
  .volume__controls
  .volume__slider
  .volume__progress
  .volume__pin {
  left: -5px;
  top: -8px;
}

.green-audio-player .volume .volume__controls:focus {
  outline: none;
}

.green-audio-player .volume .volume__controls.hidden {
  display: none;
}

.green-audio-player .volume .volume__controls.top {
  bottom: 52px;
  left: -3px;
}

.green-audio-player .volume .volume__controls.middle {
  bottom: -54px;
  left: 54px;
}

.green-audio-player .volume .volume__controls.bottom {
  bottom: -164px;
  left: -3px;
}

.green-audio-player .download {
  display: none;
  margin-left: 16px;
  cursor: pointer;
  outline: none;
}

.green-audio-player .download:focus {
  outline: none;
}

.green-audio-player:focus {
  outline: none;
}

.message__offscreen {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

span.controls__current-time {
  position: absolute;
  bottom: -20px;
  left: 14px;
}

span.controls__total-time {
  position: absolute;
  bottom: -20px;
  right: 0;
}

.chat-audio {
  padding: 3px !important;
  position: relative;
  width: 220px;
  border-radius: 5px;
  height: 38px;
  display: flex;
  align-items: center;
}

.audio-icon {
  padding: 7px 10px;
  background: #44607b;
  margin: 0;
  color: #ffffff;
  border-radius: 5px;
  font-size: 18px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.07);
}

.sent .audio-icon {
  background: #566574;
  color: #ffffff;
}

.chat-replied-bubble {
  padding-top: 5px;
  border-radius: 5px;
}

.fwd-label {
  font-style: italic;
  font-size: 12px;
  opacity: 0.8;
}

.chat-fwd {
  padding: 5px 10px 5px 10px;
  border-radius: 5px;
}

.chat-fwd > div {
  padding-left: 0px !important;
  padding-right: 0px !important;
  padding-bottom: 0px !important;
}

.chat-link-block img {
  width: 100%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  max-width: 250px;
  height: 141px;
  object-fit: cover;
  object-position: center;
}

.link-meta {
  display: inline-block;
  padding: 10px !important;
  background: #00bcd4;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  width: 100%;
}

.link-preview {
  margin-top: 5px;
  cursor: pointer;
  width: 250px;
  position: relative;
}

.link-preview b {
  line-height: 1.2;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 32px;
}

.link-meta-desc {
  font-size: 12px;
  line-height: 1.2;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 32px;
  overflow: hidden;
}

.sent .link-preview {
  float: right;
}

.video-section {
  display: inline-block;
  padding: 5px !important;
  position: relative;
  border-radius: 5px;
  transition: 0.3s;
}

.video-link {
  color: #fff;
  transition: 0.3s;
}

.video-thumb {
  object-fit: cover;
  object-position: center;
  width: 255px;
  height: 155px;
  border-radius: 5px;
}

.video-section .video-link:before {
  top: 30%;
}

.video-link:before {
  font-family: "tabler-icons" !important;
  content: "\f691";
  position: absolute;
  z-index: 9;
  top: 20%;
  text-align: center;
  width: 100%;
  font-size: 64px;
  color: #36b9cc;
}

.flex-flow-col {
  display: flex !important;
  flex-flow: column;
  height: 100%;
}

.message-data:hover + .chat-actions {
  opacity: 1;
}

.reactions {
  position: relative;
}

.chat-reactions {
  line-height: 1;
}

.chat-reactions i:hover {
  opacity: 1 !important;
}

.reactions .reaction-btn {
  cursor: pointer;
}

.reactions .popover-body {
  padding: 0.5rem 0.75rem;
}

.reaction-box .reaction-icon {
  width: 33px;
  height: 33px;
  display: inline-block;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translate(0, 100px) scale(0);
  background-size: 33px 33px;
  cursor: pointer;
}

.reaction-box .reaction-icon label {
  padding: 3px 5px 3px 5px;
  position: relative;
  top: -24px;
  border-radius: 10px;
  font-size: 9px;
  color: #fff;
  background: #333;
  visibility: hidden;
  width: max-content;
}

.reaction-box .reaction-icon.show {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reaction-box .reaction-icon:hover {
  transform: scale(1.4);
  transform-origin: bottom;
}

.reaction-icon.active {
  border-bottom: 2px solid #03a9f4;
}

.reaction-icon:hover label {
  visibility: visible;
}

.react-1 {
  background-image: url(../../media/reactions/react_1.gif);
}

.react-2 {
  background-image: url(../../media/reactions/react_2.gif);
}

.react-3 {
  background-image: url(../../media/reactions/react_3.gif);
}

.react-4 {
  background-image: url(../../media/reactions/react_4.gif);
}

.react-5 {
  background-image: url(../../media/reactions/react_5.gif);
}

.react-6 {
  background-image: url(../../media/reactions/react_6.gif);
}

.react-7 {
  background-image: url(../../media/reactions/react_7.gif);
}

.current-react {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  width: 18px;
  height: 18px;
  background-size: 18px;
  background-repeat: no-repeat;
  cursor: pointer;
  margin: 1px;
}

.list-react {
  position: relative;
  overflow: hidden;
  width: 22px;
  height: 22px;
  background-size: 22px;
  background-repeat: no-repeat;
  cursor: pointer;
  margin-right: 3px;
  display: flex;
  align-items: center;
}

.current-react-1 {
  background-image: url(../../media/reactions/static_react_1.png);
}

.current-react-2 {
  background-image: url(../../media/reactions/static_react_2.png);
}

.current-react-3 {
  background-image: url(../../media/reactions/static_react_3.png);
}

.current-react-4 {
  background-image: url(../../media/reactions/static_react_4.png);
}

.current-react-5 {
  background-image: url(../../media/reactions/static_react_5.png);
}

.current-react-6 {
  background-image: url(../../media/reactions/static_react_6.png);
}

.current-react-7 {
  background-image: url(../../media/reactions/static_react_7.png);
}

.message-data.has-reactions {
  margin-bottom: 20px !important;
  padding-bottom: 5px;
}

.current-reacts-count {
  font-size: 11px;
  margin-left: 5px;
  margin-right: 5px;
  color: #ffffff;
}

.sent .current-reacts {
  float: right;
  right: 0;
  margin: auto 0px auto 3px;
}

.replies .current-reacts {
  left: 0;
  border-top-right-radius: 6px !important;
  border-top-left-radius: 6px !important;
  padding-top: 5px !important;
  margin: auto 3px auto 0px;
}

.current-reacts {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 3px 3px;
  border-radius: 6px;
  bottom: -20px;
  position: absolute;
  width: max-content;
  margin: auto 3px;
  background: #607d8b;
}

.filter-reaction-list {
  display: flex;
}

.filter-btn.active {
  box-shadow: 0px 0px 6px 2px #36b9cc;
}

.list-reacts {
  display: inline-flex;
  margin-left: auto;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 25px;
  margin-right: 5px;
  padding: 0px 6px;
  white-space: nowrap;
}

.filter-reaction {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.react-avatar {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  overflow: hidden;
  margin-right: 10px;
}

.remove-react {
  margin-left: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.filter-reaction .list-react {
  margin-left: 10px;
  border-radius: 5px;
}

.chat-actions.active {
  opacity: 1;
}

.sent .chat-actions {
  margin-right: 10px;
}

.chat-actions i {
  cursor: pointer;
  font-size: 20px;
  color: #626976;
}

.chat-actions i:hover {
  color: #1e293b;
}

.chat-actions {
  display: flex;
  align-items: center;
  color: #d1d5d7;
  opacity: 0;
  font-size: 18px;
  transition: 0.3s;
}

.replies .chat-actions {
  margin-left: 10px;
}

.replies:hover .chat-actions {
  opacity: 1;
  margin-left: 10px;
}

.sent:hover .chat-actions {
  opacity: 1;
  margin-right: 10px;
}

.chat-actions .fas.fa-ellipsis-v:hover {
  color: #607d8b;
}

#video-embed-content iframe,
#video-embed-content video {
  width: 100%;
}

#video-modal-2 .close,
#video-modal .close {
  padding: 0;
  background: #f44336;
  color: #fff;
  opacity: 1;
  font-weight: normal;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

#video-modal .modal-body,
#video-modal-2 .modal-body {
  position: relative;
  padding: 0px;
}

#video-modal .modal-content,
#video-modal-2 .modal-content {
  border: none;
  background: rgba(0, 0, 0, 0);
}

#video-iframe {
  width: 520px;
  height: 300px;
}

#video-modal-2 .modal-header,
#video-modal .modal-header {
  border: none;
  justify-content: end;
  background: none;
  padding: 0;
}

.file-uploader {
  display: none;
  position: absolute;
  background: #141b20;
  width: 60%;
  bottom: 0;
  height: calc((var(--vh, 1vh) * 100) - 60px);
  height: calc((var(--vh, 1vh) * 100) - 60px);
  padding: 5px;
  z-index: 999;
}

.file-uploader-close {
  position: absolute;
  right: 10px;
  z-index: 9;
}

.file-uploader-close i {
  padding: 5px;
  background: red;
  border-radius: 50%;
  line-height: 9px;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
}

a.uppy-Dashboard-poweredBy {
  display: none;
}

.message-time {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  color: #6c757d;
  margin-left: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.cht.sent .message-time {
  order: 4;
  opacity: 0;
}

.cht.replies .message-time {
  order: 4;
  opacity: 0;
}

.cht.sent .message-status {
  margin-left: 8px;
  order: 5;
  flex-shrink: 0;
}

.cht.replies .message-status {
  margin-left: 8px;
  order: 5;
  flex-shrink: 0;
}

/* Desktop: Show timestamp on hover */
@media (min-width: 769px) {
  .cht:hover .message-time,
  .cht.active .message-time {
    opacity: 0.7;
  }
}

/* Mobile: Always show timestamp */
@media (max-width: 768px) {
  .cht .message-time,
  .cht:hover .message-time,
  .cht.active .message-time {
    opacity: 0.7;
  }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  /* Mobile: Always show timestamp */
  .cht .message-time,
  .cht:hover .message-time,
  .cht.active .message-time {
    opacity: 1 !important;
    font-size: 9px;
  }

  .cht.sent .message-time {
    margin-left: 4px;
  }

  .cht.replies .message-time {
    margin-right: 4px;
  }

  /* Mobile: Hide all chat actions completely for full-width messages */
  .chat-actions {
    display: none !important;
  }

  .cht.sent .message-status {
    margin-left: 4px;
  }

  .cht.replies .message-status {
    margin-right: 4px;
  }
}

.messages {
  padding: 15px;
  padding-bottom: 2px;
  display: block;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100%;
  min-width: 320px;
}

img.img-profile {
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  height: 32px;
}

.user-row {
  padding: 5px 8px;
  cursor: pointer;
  transition: 0.3s;
}

.private-list .user-row {
  position: relative;
}

/* User actions dropdown */
.user-actions-dropdown {
  padding: 2px 6px;
  min-width: auto;
}

.user-actions-dropdown i {
  font-size: 14px;
}

.dropdown-menu .dropdown-item {
  padding: 4px 12px;
  font-size: 13px;
}

.dropdown-menu .dropdown-item i {
  font-size: 16px;
}

.height-scroll {
  height: calc((var(--vh, 1vh) * 100) - 48px);
  overflow-y: scroll;
  overflow-x: hidden;
}

.height-scroll-rpanel {
  height: calc((var(--vh, 1vh) * 100) - 90px);
  overflow-y: scroll;
  overflow-x: hidden;
}

.user-status {
  font-size: 12px;
}

.channel-user-image {
  display: flex;
  align-items: center;
  position: relative;
}

.channel-user-details {
  align-items: center;
  display: flex;
}

.user-type-badge {
  text-transform: UPPERCASE;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1;
  vertical-align: middle;
  color: #fff;
}

.user-type-badge.admin {
  background: #e74a3b;
}

.user-type-badge.mod {
  background: #ff7043;
}

.user-type-badge.creator {
  background: #4e73df;
}

.user-type-badge.room-mod {
  background: #1cc88a;
}

.user-type-badge.vip {
  background: #28a745;
}

/* VIP User Display Name - Green */
.channel-user-details .vip-user {
  color: #28a745 !important;
  font-weight: 600;
}

.fa-gender.fa-venus {
  color: #e91e63;
}

.fa-gender.fa-mars {
  color: #00bcd4;
}

.user-row:hover {
  background: #caced2;
}

.user-popover .popover-body {
  padding: 0;
}

.user-popover .card {
  border: none;
}

.user-popover {
  overflow: hidden;
}

.user-popover-image {
  position: absolute;
  top: 90px;
  width: 40px;
  height: 40px;
  right: 15px;
  border: 2px solid #fff;
  border-radius: 5px;
}

.private-messages {
  padding: 10px;
  display: flex;
  justify-content: center;
}

.private-messages .private-item {
  background: #1e293b;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eee;
  font-size: 24px;
  position: relative;
}

.main-tab-pane {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

.main-tab-content {
  width: 100%;
}

.main-tab-pane.active {
  display: flex;
}

.editor-container {
  padding: 5px 10px;
  /* border: 1px solid #e0e3e6; */
  border-radius: 10px;
  margin: 15px;
  display: flex;
  align-items: center;
  background-color: #ebedef;
  min-height: 42px;
}

.note-editor.note-frame .note-statusbar {
  display: none;
}

.note-editable p {
  margin-bottom: 0;
}

.editor-container .note-editor.note-airframe .note-editing-area .note-editable,
.note-editor.note-frame .note-editing-area .note-editable {
  padding: 6px 8px 6px 10px !important;
}

.editor-container .note-editor.note-frame {
  border: none;
}

.chat-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.editor-col {
  width: 100%;
}

.emoji-col {
  display: flex;
  align-items: center;
}

.attachments-container {
  margin: 15px 15px 0px;
  border: 1px solid #e0e3e6;
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
}

.attachments-container .tab-pane.active {
  height: 300px;
  display: flex !important;
  flex-flow: column;
}

.editor-icon {
  color: #4f5660;
  cursor: pointer;
  transition: 0.3s;
}

.editor-icon:hover {
  color: #2e3338;
}

.dropup-menu-arrow:before {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0.75rem;
  display: block;
  background: inherit;
  width: 14px;
  height: 14px;
  transform: rotate(225deg);
  transform-origin: center;
  border: 1px solid;
  border-color: inherit;
  z-index: -1;
  clip: rect(0px, 9px, 9px, 0px);
}

.dropup-menu-arrow.dropup-menu-end:before {
  right: 0.75rem;
  left: auto;
}

.gifs {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 5px;
}

.send-gif {
  border-radius: 5px;
  overflow: hidden;
  padding: 5px;
  height: max-content;
  cursor: pointer;
}

.send-gif img {
  border-radius: 5px;
}

.send-gif img:hover {
  border: 3px solid #03a9f4;
  border-radius: 5px;
}

.send-sticker img:hover {
  animation: pulse 1s;
}

.send-sticker {
  display: inline;
  cursor: pointer;
}

.sticker-list {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.attachments-container .nav-pills .nav-link.active,
.attachments-container .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #4f5660;
}

.attachments-container .nav-link {
  padding: 0.2rem 0.75rem;
}

.attachment-col svg {
  cursor: pointer;
}

.date-dropdowns {
  display: flex;
}

.day.form-select,
.month.form-select,
.year.form-select {
  margin-right: 8px;
}

.login-selector .nav-link {
  background: #eee;
}

.login-selector .nav-link.active {
  color: #ffffff;
  background-color: #393939;
}

.auth-body {
  background-color: #fff;
  overflow-y: auto !important;
}

.ms-container {
  width: 100%;
}

.channel-options,
.cat-settings,
.cat-channel {
  opacity: 0;
}

.channel-item:hover .channel-options,
.channel-cat:hover .cat-settings,
.channel-cat:hover .cat-channel {
  opacity: 1;
}

.channel-options:hover i,
.cat-settings:hover i,
.cat-channel:hover i {
  font-weight: bold;
}

.sidebar-room,
.sidebar-private,
.sidebar-discovery,
.sidebar-profile,
.sidebar-manage {
  display: none;
}

.topbar-private {
  position: fixed;
  top: 0;
  background-color: #f8fafc;
  margin-left: -1px;
  z-index: 99;
  width: fit-content;
  max-width: 15rem;
}

.disc-cat-row {
  color: #4e5058;
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.disc-cat-row:hover {
  background-color: #e3e5e8;
}

.disc-cat-row.active {
  background-color: #5461f5;
  color: #ffffff;
}

.disc-cat-icon {
  display: flex;
  align-items: center;
}

.disc-cat-icon .ti {
  font-size: 22px;
}

.disc-cat-name {
  font-size: 16px;

  font-weight: 500;
  margin-left: 10px;
}

.disc-header {
  padding: 15px 15px 0px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.disc-cat-list {
  margin: 8px;
}

.disc-slider .carousel {
  border-radius: 15px;
  overflow: hidden;
}

.slider-search-input {
  position: absolute;
  z-index: 999;
  width: 40%;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.profile-section {
  padding: 1.75rem;
}

.room-list-row {
  margin-top: 16px;
  display: grid;
  grid-gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.room-image {
  position: absolute;
  top: -30px;
  width: 48px;
  height: 48px;
  left: 15px;
  border: 4px solid #fff;
  border-radius: 15px;
}

.room-card .card-body {
  padding-top: 2rem;
  position: relative;
}

.room-card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.room-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.user-image {
  position: absolute;
  top: -35px;
  width: 70px;
  height: 70px;
  left: 15px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
}

/* Override for private message profile area */
.pvt-profile-avatar-section .user-image {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
}

.user-title {
  position: absolute;
  top: 6px;
  left: 90px;
}

/* Override for private message profile area */
.pvt-profile-avatar-section .user-title {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 10px;
}

.user-card .card-body {
  padding-top: 2rem;
  position: relative;
}

/* Override card-body padding for private message profile */
.pvt-profile-avatar-section {
  padding-top: 1.5rem !important;
}

.user-card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: none;
}

.popover .user-card {
  display: block;
}

.user-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.room-stats {
  font-size: 12px;
}

.disc-panel-name,
.room-manage-icon,
.room-manage-title {
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.carousel-caption {
  display: none;
}

.carousel-item {
  max-height: 400px;
}

.bd-placeholder-img {
  object-fit: cover;
  max-height: 400px;
}

.search-content {
  color: #ffffff;
}

.room-loop-link {
  text-decoration: none;
  color: inherit;
}

.room-loop-link:hover {
  text-decoration: none;
}

#rpanel-tab {
  background-color: #ebedef;
}

.right-panel .nav-pills .nav-link.active,
.right-panel .nav-pills .show > .nav-link {
  color: #ffffff;
  background-color: #a5a5a5;
  border-radius: 0;
}

.room-bar .ti {
  font-size: 22px;
}

.ti-12 {
  font-size: 12px;
}

.ti-24 {
  font-size: 24px;
}

.ti-22 {
  font-size: 22px;
}

.ti-20 {
  font-size: 20px;
}

.ti-18 {
  font-size: 18px;
}

.ti-bold {
  font-weight: bold;
}

.message-status .ti {
  font-size: 14px;
}

.top-channel-name .ti {
  font-size: 18px;
}

.form-selectgroup-input:checked + .room-cat-select-label {
  background: #5461f5;
  color: #fff;
}

.room-cat-select-label {
  width: 100%;
}

.flex-fill {
  flex: 1 1 auto !important;
}

label .icon {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  vertical-align: bottom;
  color: inherit;
}

.uppy-Dashboard--modal .uppy-Dashboard-inner {
  z-index: 1030;
}

.uppy-Dashboard--modal .uppy-Dashboard-overlay {
  background-color: #00000080;
  z-index: 1024;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-blur {
  background-color: #00000080;
}

.non-login-message,
.non-join-message,
.non-chat-select,
.user-restricted,
.permission-denied-editor,
.forward-selection {
  padding: 10px 10px;
  border-radius: 10px;
  margin: 15px;
  display: flex;
  align-items: center;
  background-color: #ebedef;
}

.non-login-message p,
.non-join-message p,
.non-chat-select p,
.user-restricted p,
.permission-denied-editor p,
.forward-selection p {
  margin-bottom: 6px;
  margin-top: 6px;
  align-self: center;
  margin-left: 15px;
}

.non-login-message img,
.non-join-message img,
.non-chat-select img,
.user-restricted img,
.permission-denied-editor img {
  width: 32px;
  align-self: center;
}

img.editor-emoji,
img.emoji {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  margin-right: 2px;
}

.is-typing {
  background: #ebedef;
  display: none;
  padding: 2px 15px 4px 15px;
  color: #607d8b;
  font-size: 12px;
  border-radius: 5px;
  margin-left: 15px;
  position: absolute;
  top: -27px;
}

.is-typing:before {
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  border-left: 6px solid #ebedef;
  border-right: 3px solid transparent;
  border-top: 6px solid #ebedef;
  border-bottom: 6px solid transparent;
  left: 0;
  bottom: -5px;
}

.unread-indicator.active {
  height: 10px;
}

.unread-indicator {
  height: 0px;
  width: 10px;
  border-radius: 0 5px 5px 0;
  position: absolute;
  left: 0;
  top: 50%;
  background-color: #060607;
  transform: translate(-50%, -50%);
}

.private-item .unread-indicator {
  left: -10px;
}

.channel-main {
  justify-content: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.chat-txt.deleted {
  font-size: 12px;
  font-style: italic;
}

.chat-txt.hidden {
  font-size: 12px;
  font-style: italic;
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 5px 0;
}

.chat-txt.hidden .unhide-user-link {
  color: #0d6efd;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.chat-txt.hidden .unhide-user-link:hover {
  color: #0a58ca;
}

.reply-msg-row {
  align-items: flex-end;
  background-color: #ebedef;
  box-sizing: border-box;
  display: flex;
  transition: transform 0.25s;
  padding: 5px 5px 10px 5px;
  margin: 15px 15px -22px 15px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.reply-msg-row-show {
  display: flex;
}

.reply-msg-row-hide {
  display: none;
}

.reply-msg-row .replied-to {
  width: 100%;
  text-align: left;
  color: #425158;
  display: flex;
  background-color: #dbdee0;
}

.reply-msg-row .close-reply-msg {
  background: transparent;
  border: 0;
  padding-left: 5px;
  padding-right: 5px;
  display: flex;
  align-self: center;
}

.reply-msg-row .close-reply-msg i {
  font-size: 20px;
}

.replied-to {
  background-color: rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  overflow: hidden;
  margin-left: 5px;
  margin-right: 5px;
  cursor: pointer;
  border-radius: 5px !important;
}

.replies .replied-to {
  background-color: #fafafa;
  margin-bottom: 5px;
}

.grp .replied-to {
  margin-top: 5px !important;
  margin-bottom: 0;
}

.replied-border {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  flex: none;
  width: 4px;
  background-color: #7b7bd2;
}

.replied-content {
  padding: 4px 12px 8px 8px !important;
  display: flex;
  flex-grow: 1;
  align-items: center;
  min-height: 42px;
  max-height: 82px;
  overflow: hidden;
}

.replied-content-data {
  flex-grow: 1;
  overflow: hidden;
}

.replied-user {
  display: inline-flex;
  max-width: 100%;
  font-weight: 500;
  font-size: 12.8px;
  line-height: 22px;
}

.replied-html {
  display: -webkit-box;
  max-height: 44px;
  overflow: hidden;
  font-size: 12px;
  line-height: 20px;
  text-overflow: ellipsis;
  word-wrap: break-word;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.replied-preview img {
  width: 60px;
  height: 60px;
}

.forwarding .cht:hover,
.forwarding .selected {
  background: #ccc !important;
}

.forwarding .cht {
  transition: 0.3s;
  border-radius: 5px;
  cursor: pointer;
}

.forward-selection-close {
  align-self: center;
  background: transparent;
  border: 0;
  padding-left: 0px;
}

.forward-selection-name {
  align-self: center;
}

.forward-selection-button-container {
  align-self: center;
  margin-left: auto;
  margin-right: 10px;
}

.forward-selected {
  align-self: center;
  background: transparent;
  border: 0;
  padding-left: 0px;
}

.forward-modal .recent-chat {
  border-radius: 0px;
  display: flex;
  padding: 3px 10px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.channel-check {
  align-self: center;
  width: 24px;
}

.user-list-item {
  display: flex;
  width: 100%;
  position: relative;
}

.forward-online-list {
  height: calc((var(--vh, 1vh) * 100) - var(--height-adustment));
  overflow: auto;
}

.forward-online-list .user-row {
  width: 100%;
}

.forward-actions {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #46b9cc;
  z-index: 999;
  display: flex;
  height: 40px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.forward-name {
  align-self: center;
  padding: 10px;
  color: #ffffff;
}

.forward-button-container {
  position: absolute;
  top: -16px;
  right: 16px;
}

.forward-button {
  background: #09e85e;
  color: #ffffff;
}

.forward-modal .modal-body {
  padding: 0;
}

.profile-header {
  border-radius: 12px;
  width: 100%;
  box-shadow: rgb(30 41 59 / 4%) 0 2px 4px 0;
  border: 1px solid rgba(98, 105, 118, 0.16);
}

.profile-header .profile-header-cover {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  height: 300px;
}

.profile-header .profile-header-info {
  padding-bottom: 20px;
  position: relative;
  background: #f2f3f5;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.profile-header-user-avatar {
  width: 164px;
  height: 164px;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50%;
  top: -50px;
  border-radius: 50%;
  border: 10px solid #fff;
  overflow: hidden;
}

.profile-header-user-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0px;
}

.profile-header-desc {
  padding-top: 40px;
}

.profile-header-user-sub-title {
  text-align: center;
  margin-bottom: 0px;
}

.user-badge {
  width: 40px;
  height: 40px;
  margin-right: 5px;
}

#main-profile {
  height: calc((var(--vh, 1vh) * 100));
}

.radio-stations {
  font-weight: 700;
}

.radio-station:hover {
  font-weight: bold;
}

.radio-thumb img {
  width: 100%;
  border-radius: 50%;
}

.radio-thumb {
  align-self: center;
  margin-right: 0 !important;
  border-radius: 50%;
  overflow: hidden;
  width: 48px;
  height: 48px;
}

.radio-controls {
  align-self: center;
  width: 54px;
  text-align: center;
  line-height: 12px;
  cursor: pointer;
  position: absolute;
  color: #fff;
  filter: drop-shadow(2px 2px 6px black);
}

.radio-title {
  font-size: 14px;
  font-weight: 600;
}

.radio-desc {
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 170px;
}

.radio-info {
  align-self: center;
  padding-left: 10px;
}

.radio-switcher {
  margin-left: auto;
  margin-right: 5px;
  align-self: center;
  line-height: 12px;
  cursor: pointer;
}

.radio-panel {
  position: absolute;
  bottom: 0px;
  border-radius: 0;
  width: 100%;
  left: 0;
  background: #ebedef;
  padding: 0;
  display: none;
  color: #39393d;
  box-shadow: 0px -2px 9px 1px rgba(0, 0, 0, 0.2);
}

.radio-station {
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 3px;
}

.radio-volume {
  display: flex;
  padding: 5px 15px 10px;
}

.radio-volume-display {
  align-self: center;
}

.radio-volume-control {
  align-self: center;
  display: flex;
  width: 100%;
  margin-left: 10px;
}

#radio-volume-control {
  align-self: center;
  width: 100%;
  cursor: pointer;
}

.radio-thumb.radio-playing img {
  animation: radiospin 5s linear infinite;
}

@keyframes radiospin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.recent-img {
  padding: 1px;
}

.recent-img img {
  border-radius: 5px;
}

.recent-img .img-responsive {
  width: 100%;
  padding: 0px;
}

.media-row {
  padding: 10px;
}

.media-tab .chat-files-block {
  overflow: hidden;
  width: 100%;
  padding: 0;
}

.media-tab .file-section {
  width: 100%;
  background-color: #ebedef;
}

.media-tab .file-header {
  color: #1e293bb3;
}

.more-actions {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.media-tab img.recent-link-preview {
  width: 40px;
  margin-right: 5px;
  height: 34px;
  object-fit: cover;
  border-radius: 5px;
}

.media-tab .video-link:before {
  font-size: 24px;
}

.media-tab .video-thumb {
  height: 65px;
}

.media-tab .chat-video-block {
  padding: 0;
}

.profile-header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gradient-anim-bg {
  background: linear-gradient(320deg, #0081ff, #fd4430, #dc00ff);
  background-size: 300% 300%;
  -webkit-animation: gradientanim 30s ease infinite;
  -moz-animation: gradientanim 30s ease infinite;
  animation: gradientanim 30s ease infinite;
  color: #fff;
  background-position: center;
}

@-webkit-keyframes gradientanim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-moz-keyframes gradientanim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes gradientanim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.username-bottom {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.form-selectgroup-input:checked + .room-manage-label {
  background: #5461f5;
  color: #fff;
}

.room-manage-label {
  width: 100%;
}

.room-manage-row {
  color: #4e5058;
  display: flex;
  align-items: center;
  padding: 4px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.room-manage-icon {
  display: flex;
  align-items: center;
}

.room-manage-image {
  border-radius: 5px;
  width: 30px;
  height: 30px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
  display: block;
  background-size: cover;
}

.room-manage-image img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  object-position: center;
}

.room-manage-image i {
  font-size: 30px;
  object-fit: cover;
  object-position: center;
}

.room-manage-name {
  font-weight: 500;
  width: 165px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.room-coverimage-preview {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background-position: center center;
  border: 1px solid;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.room-coverimage-preview img,
.room-bgimage-preview img {
  object-fit: cover;
  object-position: center;
}

.room-bgimage-preview {
  height: 50px;
  width: 50px;
  border-radius: 2px;
  background-position: center center;
  border: 1px solid;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  display: inline-block;
}

.room-bgimage-remove {
  padding: 0;
  line-height: 1;
  margin-top: -40px;
  padding: 1px 2px;
  font-size: 10px;
}

#v-profile-home .card {
  border-radius: 12px;
}

.sidebar-profile .nav-link {
  color: #4e5058;
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0.5rem 0.5rem 0;
}

.sidebar-profile .nav-link.active {
  background: #5461f5 !important;
  color: #fff !important;
}

.sidebar-profile .nav-link:hover {
  background-color: #e3e5e8;
}

.sidebar-profile .ti {
  font-size: 22px;
}

.ms-selectable .search-input,
.ms-selection .search-input {
  margin-bottom: 5px;
}

.ms-selectable .custom-footer,
.ms-selection .custom-footer {
  margin-top: 5px;
}

.form-switch .form-check-input {
  cursor: pointer;
}

.v-profile-tab-item {
  display: flex;
}

.room-manage-row:hover {
  background-color: #e3e5e8;
}

.message-html figure a {
  display: block;
}

.main-block-padding {
  padding: 1.75rem;
}

.ad-space {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  overflow: hidden;
  width: 100%;
}

.send-sticker img {
  width: 75px;
  cursor: pointer;
}

.chat-sticker img {
  width: 128px;
}

.cookiealert {
  display: none;
}

.cookiealert.show {
  display: block;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
  margin: 0;
  background-color: #f8f9fa;
  color: #5a5a5a;
  border-top: 1px solid #e9ecef;
  padding: 1rem;
}

/* Dark mode cookie notification styling */
.dark .cookiealert.show {
  background-color: #464952;
  color: #ffffff;
  border-top: 1px solid #5c5f66;
}

.cookiealert.show a {
  color: #1976d2;
  text-decoration: underline;
}

.dark .cookiealert.show a {
  color: #65afff;
}

.cookiealert .acceptcookies {
  margin-left: 1rem;
}

img.uppy-DashboardItem-previewImg {
  position: absolute;
  z-index: 999;
  height: 100%;
  object-fit: contain;
  background: black;
}

#rpanel-videos .video-section {
  padding: 0px 3px 3px 0px !important;
}

.media-row .row {
  margin-left: -5px;
  margin-right: -5px;
}

/* #rpanel-videos .more-actions {
    margin-top: 50px;
} */

div[data-msg-type="5"] .message-data {
  background-color: transparent !important;
  box-shadow: none !important;
}

.chat-link {
  color: #2fb344;
}

.online-status {
  position: absolute;
  bottom: 0;
  left: 0;
}

.online {
  color: #1cc88a;
}

.offline {
  color: #c8c8c7;
}

.busy {
  color: #e74a3b;
}

.away {
  color: #f6c23e;
}

.online-status .ti {
  border-radius: 50%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  width: 12px;
  height: 12px;
  background: rgb(248 250 252);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-row:hover .online-status .ti {
  background: #caced2;
}

.social-login-container {
  display: block;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.social-provider {
  margin: 0px 5px;
  display: inline-block;
  margin-top: 10px;
}

.social-provider img {
  width: 32px;
  cursor: pointer;
}

.social-seperator {
  position: relative;
  margin-top: 30px;
}

.social-seperator div {
  position: absolute;
  top: -7px;
  font-size: 10px;
  background: #fafbfc;
  padding: 0 8px;
  left: calc(50% - 44px);
  color: #969696;
}

.social-seperator hr {
  margin-top: 0px;
  margin-bottom: 10px;
}

.rtl .unread-indicator {
  right: 0;
  border-radius: 5px 0px 0px 5px;
  transform: translate(50%, -50%);
}

.rtl .channel-item {
  padding-left: 0px;
  padding-right: 7px;
  margin-left: 7px;
  margin-right: 10px;
}

.rtl .pill {
  right: 0;
  transform: translate(50%, -50%);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.rtl .private-item .pill {
  right: -10px;
}

.rtl body.sb-sidenav-toggled #wrapper .sidebar-wrapper {
  margin-right: -15rem;
  margin-left: 0;
}

.rtl body.sb-rightnav-toggled #wrapper .rightbar-wrapper {
  margin-left: -15rem;
  margin-right: 0rem;
}

.rtl .replies .message-data:after {
  right: -4px;
  left: auto;
}

.rtl .sent .message-data:before {
  left: -4px;
  right: auto;
}

.rtl .messages .sent .avatar {
  margin-right: 8px;
  margin-left: 0px;
}

.rtl .sent .chat-txt:before {
  left: -4px;
  right: auto;
}

.rtl .replies .chat-txt:after {
  right: -4px;
  left: auto;
}

.rtl .messages .replies .avatar {
  float: right;
  margin-left: 8px;
  margin-right: 0px;
}

.rtl .sent .link-preview {
  float: left;
}

.rtl .replies .link-preview {
  float: right;
}

.rtl .media-tab img.recent-link-preview {
  margin-left: 4px;
  margin-right: 0px;
}

.rtl .file-actions {
  left: 10px;
  right: auto;
}

.rtl .editor-controller p {
  margin-left: 0px;
  margin-right: 15px;
}

.rtl .disc-cat-name {
  margin-left: 0px;
  margin-right: 10px;
}

.rtl .input-icon-addon-custom.input-group-flat .form-control:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}

.rpanel-search-group input,
.rpanel-search-group span {
  border-radius: 0 !important;
}

.rpanel-search-group {
  margin-top: -3px;
}

.editor-wrap {
  position: relative;
}

.mention {
  color: #3ca9ff !important;
  cursor: pointer;
  transition: 0.3s;
}

.own-username-highlight {
  color: #28a745 !important;
  font-weight: bold;
}

/* User Profile Modal Styles */
.user-profile-container {
  padding: 10px;
}

.user-profile-header {
  margin-bottom: 20px;
}

.user-profile-avatar {
  position: relative;
}

/* Profile Avatar in Modal */
.profile-avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-avatar-container img {
  border: 3px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.online-status-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  z-index: 1;
}

.online-status-indicator i {
  font-size: 10px;
}

.online-status-indicator.online {
  background-color: #28a745;
  color: white;
}

.online-status-indicator.busy {
  background-color: #dc3545;
  color: white;
}

.online-status-indicator.away {
  background-color: #ffc107;
  color: white;
}

.online-status-indicator.offline {
  background-color: #6c757d;
  color: white;
}

#profile-badges .badge {
  font-size: 12px;
  padding: 4px 8px;
}

.profile-info-item {
  display: flex;
  align-items: center;
  color: #666;
  font-size: 14px;
}

.profile-about h6 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-about p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.stat-item h5 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.stat-item small {
  font-size: 11px;
  text-transform: uppercase;
}

.user-profile-actions .btn {
  padding: 10px 20px;
  font-weight: 500;
}

/* Private Message Profile Avatar Styling */
.pvt-profile-avatar-section {
  padding: 20px 15px !important;
}

.pvt-avatar-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border: 3px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pvt-avatar-container .user-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.user-card .user-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

/* Make user rows clickable */
.user-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.user-row:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-row:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.08);
}

.noti-item {
  margin-bottom: 5px;
  padding-bottom: 5px;
  background: #d1e8ff;
  margin: 10px;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
}

.noti-item.noti-read {
  background: #ebedef;
}

.noti-item:hover {
  background: #ebedef;
}

.noti-icon img {
  border-radius: 50%;
}

.notifications-panel-card {
  min-width: 300px;
}

.card-body.notifications {
  padding: 0;
}

.noti-time {
  font-size: 12px;
  color: #2275d7;
  display: flex;
  align-items: center;
  line-height: 1;
  margin-bottom: 2px;
}

.noti-content {
  font-size: 14px;
  color: #585858;
  line-height: 1.3;
  display: block;
}

.noti-count {
  right: -8px;
  top: 6px;
  font-size: 9px;
  position: absolute !important;
  display: none;
}

#notifications-panel {
  position: relative;
}

.offcanvas-header {
  padding: 10px;
  height: 48px;
}

.offcanvas-header .input-icon {
  width: 100%;
  margin-bottom: 0 !important;
}

.chat-search-result {
  padding: 10px 15px;
  background: #ebedef;
  margin-bottom: 5px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 5px;
}

.chat-search-result:hover {
  background-color: #dfe1e5;
}

.res-chat-time {
  font-size: 10px;
  margin: 0;
  line-height: 1;
  margin-bottom: 5px;
  font-weight: 500;
}

.res-chat-txt {
  font-size: 14px;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.place-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50% !important;
}

.place-joined-rooms {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

/*** Loader ***/
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #36b9cc;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/*** Loader End ***/

.chats .animate__animated {
  -webkit-animation-fill-mode: none;
  animation-fill-mode: none;
}

.main-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.video-call-container {
  height: 50vh;
  display: none;
  position: relative;
  background: #1b2434;
}

.incall .video-call-container {
  display: flex;
}

.incall .main-panel {
  height: calc(50vh - 50px);
}

.incall .height-scroll-rpanel {
  height: calc(50vh - 50px);
}

.incall .rightbar-wrapper {
  min-height: unset;
}

.incall .page-content-wrapper {
  height: 50vh;
}

.voice-channel-container {
  height: 82px;
  display: none;
  align-items: center;
  padding: 0 8px;
  width: 15rem;
  background: #f8fafc;
  padding-top: 5px;
  padding-bottom: 5px;
  border-top: 1px solid #dbdde1;
}

.voice-channel-name {
  flex: 1;
  margin-left: 5px;
}

.voice-name {
  width: 15em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.in-voice .voice-channel-container {
  display: flex;
}

.voice-member-list {
  padding-left: 30px;
  padding-right: 30px;
  display: none;
}

.voice-member {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.voice-member .dropdown-toggle {
  padding: 0 2px;
  color: inherit;
}

.voice-member .dropdown-menu {
  min-width: 130px;
}

.voice-member-name {
  margin-left: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-member.speaking .voice-avatar {
  box-shadow: 0 0 0 2px #2275d7;
}

.voice-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 4px;
}

.in-voice .main-panel,
.in-voice .height-scroll-rpanel,
.in-voice .page-content-wrapper {
  height: auto;
}

.in-voice .rightbar-wrapper {
  min-height: unset;
}

.launch-call {
  border: 0;
}

.call-alert,
.group-call-alert {
  position: absolute;
  background: #2275d7;
  color: #fff;
  border-radius: 10px;
  right: 25px;
  top: 75px;
  display: flex;
  z-index: 9999;
  padding: 10px;
}

.call-alert .animbox,
.group-call-alert .animbox {
  width: 60px;
  justify-content: center;
  display: flex;
  align-items: center;
}

.call-alert .call-avatar,
.group-call-alert .call-avatar {
  justify-content: center;
  display: flex;
  align-items: center;
}

.call-alert .call-actions,
.group-call-alert .call-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  line-height: 1;
  margin-left: 10px;
}

.call-alert .caller-name,
.group-call-alert .caller-name {
  margin-bottom: 10px;
}

.call-avatar img {
  width: 41px;
  height: 41px;
  object-fit: cover;
  border-radius: 50%;
}

.phone {
  z-index: 2;
  background-color: #f50057;
  animation: phone 1s cubic-bezier(0.12, 0.7, 0.74, 0.71) infinite
    alternate-reverse;
  display: grid;
  justify-content: center;
  align-items: center;
  border: 0.5px white solid;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  position: absolute;
}

.material-icons {
  color: white;
}

.call-anim {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: red;
  position: absolute;
  animation: scaling 2s cubic-bezier(0.12, 0.7, 0.74, 0.71) infinite;
}

@keyframes scaling {
  0% {
    transform: scale(2);
    background-color: #f50057;
  }
  100% {
    transform: scale(3);
    background-color: rgba(245, 0, 182, 0);
  }
}

@keyframes phone {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

.circle1 {
  animation-delay: 0s;
}

.circle2 {
  animation-delay: 1s;
}

#media-div {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.local-video {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 200px;
  height: 150px;
  z-index: 999;
  border-radius: 4px;
  overflow: hidden;
  background: black;
}

.video-caller-name {
  position: absolute;
  font-size: 12px;
  background: black;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  opacity: 0.6;
  left: 5px;
  top: 5px;
  z-index: 100;
}

.call-msg {
  position: absolute;
  color: #fff;
  left: 10px;
  top: 5px;
}

.call-controllers {
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
  width: 100%;
  z-index: 1000;
  opacity: 0.3;
  transition: 0.3s;
}

.call-controllers:hover {
  opacity: 1;
}

.remote-video {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.agora-player {
  width: 100%;
  height: 100%;
}

.call-toggle-cam,
.call-toggle-mic,
.call-toggle-fc,
.call-toggle-height {
  background: #2e2e2e;
  border-color: #2e2e2e;
  transition: 0.3s;
}

.call-controll {
  margin: auto 2px;
}

figure.gif::after {
  z-index: 99;
  width: max-content;
  height: max-content;
  content: "GIF ▶️";
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgb(25, 28, 30);
  padding: 3px 5px;
  border-radius: 3px;
}

.lazyload {
  background-color: #585f6a;
  display: inline-block;
  position: relative;
  -webkit-animation: loading-placeholder 2s ease-in-out infinite;
  animation: loading-placeholder 2s ease-in-out infinite;
}

@-webkit-keyframes loading-placeholder {
  50% {
    opacity: 0.1;
  }
}

@keyframes loading-placeholder {
  50% {
    opacity: 0.1;
  }
}

.lazyloaded {
  background: none;
  animation: none;
}

div[data-msg-type="4"] .message-data {
  background-color: transparent !important;
  box-shadow: none !important;
}

.cht[data-msg-type="4"] .message-data:before,
.cht[data-msg-type="4"] .message-data:after {
  display: none;
}

.emoji-only img.emoji {
  width: 30px;
  height: 30px;
}

.channel-list-bottom .dropdown-toggle:after {
  display: none;
}

.channel-list-bottom .dropdown-toggle {
  border-radius: 5px;
  transition: 0.3s;
}

.channel-list-bottom .dropdown-toggle:hover {
  background-color: #dfe1e5;
}

#selected-lang-toggle {
  display: flex;
}

.link-dark:hover,
.link-dark:focus {
  color: #626976;
}

.current-status.online-status {
  bottom: 0px;
  right: 0;
  left: unset;
}

.channel-list-bottom .dropdown-item {
  padding: 0.3rem 0.75rem;
}

.hashtag {
  color: #51b0ff;
  cursor: pointer;
}

.uppy-caption {
  width: 100%;
  padding: 10px;
}

.file-caption {
  padding: 0px 10px 5px 10px;
  border-radius: 5px;
  margin-top: 0px;
  max-width: 220px;
  line-height: 18px;
  white-space: pre-wrap;
}

.icon-lock {
  display: inline-block;
  width: 8px;
  height: 9px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="%231e293b" height="800px" width="800px" version="1.1" id="Layer_1" viewBox="0 0 330 330" xml:space="preserve"><g id="XMLID_518_"><path id="XMLID_519_" d="M65,330h200c8.284,0,15-6.716,15-15V145c0-8.284-6.716-15-15-15h-15V85c0-46.869-38.131-85-85-85 S80.001,38.131,80.001,85v45H65c-8.284,0-15,6.716-15,15v170C50,323.284,56.716,330,65,330z M110.001,85 c0-30.327,24.673-55,54.999-55c30.327,0,55,24.673,55,55v45H110.001V85z"/></g></svg>');
}

.channel-icon {
  position: relative;
}

.pvt-cnl {
  background: #f2f3f5;
  height: 12px;
  width: 12px;
  position: absolute;
  top: -3px;
  left: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  line-height: 1;
}

.channel-item.active {
  background: #dfe1e5;
}

.active .pvt-cnl,
.channel-item:hover .pvt-cnl {
  background: #dfe1e5;
}

.top-channel-icon {
  position: relative;
}

.top-channel-icon .pvt-cnl {
  background: #f8fafc;
}

.dark .top-channel-icon .icon-lock {
}

.logo.logo-sticky {
  max-height: 32px;
}

.sb-sidenav-toggled .topbar-private {
  position: absolute;
}

.voice-container-title {
  color: #2fb344;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.voice-channel-controls {
  margin-top: 5px;
}

.voice-active .sidebar-height-fix-mt48 {
  height: calc((var(--vh, 1vh) * 100) - 179px);
}

.voice-active .sidebar-height-fix {
  height: calc((var(--vh, 1vh) * 100) - 131px);
}

.dark .alert {
  color: #ffffff;
  background: #464952;
}

/* Override alert-danger for better visibility in dark theme */
.dark .alert-danger {
  background-color: #d63939;
  border-color: #c42e2e;
  color: #ffffff;
}

/* Override alert-success for better visibility in dark theme */
.dark .alert-success {
  background-color: #14532d;
  border-color: #166534;
  color: #bbf7d0;
}

/* Override alert-warning for better visibility in dark theme */
.dark .alert-warning {
  background-color: #713f12;
  border-color: #854d0e;
  color: #fde047;
}

/* Image Censorship / Blur Safety Feature */
.censored-image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  cursor: pointer;
  border-radius: 5px;
}

.censored-image-container img {
  filter: blur(25px);
  -webkit-filter: blur(25px);
  transition:
    filter 0.3s ease,
    -webkit-filter 0.3s ease;
  min-width: 100px;
  min-height: 100px;
  object-fit: cover;
}

.censored-image-container.revealed img {
  filter: blur(0);
  -webkit-filter: blur(0);
}

.censored-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.censored-btn {
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.censored-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.1);
  border-color: #fff;
}

.censored-btn i {
  pointer-events: none;
}

/* Animation for clicking */
.censored-image-container:active {
  transform: scale(0.98);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.censored-image-container:not(.revealed) .censored-overlay {
  animation: pulse 2s ease-in-out infinite;
}

/* Hidden Users Section */
.hidden-users-container {
  max-height: 500px;
  overflow-y: auto;
}

.hidden-users-list {
  padding: 10px 0;
}

.hidden-user-item {
  transition: all 0.2s ease;
}

.hidden-user-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hidden-user-avatar .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.hidden-user-name {
  font-size: 1rem;
  color: #333;
}

.hidden-user-username {
  font-size: 0.85rem;
}

.hidden-user-date {
  font-size: 0.8rem;
  margin-top: 2px;
}

.hidden-user-actions .btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.v-profile-tab-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #495057;
  text-decoration: none;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.v-profile-tab-item:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.v-profile-tab-item.active {
  background-color: #e7f5ff;
  color: #1971c2;
}

.v-profile-tab-item i {
  margin-right: 0.5rem;
}

/* Navigation Badges */
.nav-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: white;
  z-index: 10;
}

.k-badge {
  background-color: #3b82f6;
}

.b-badge {
  background-color: #22c55e;
}

/* Mobile User List Width */
@media (max-width: 768px) {
  .rightbar-wrapper {
    min-width: 85vw;
    width: 85vw;
  }

  body.sb-rightnav-toggled #wrapper .rightbar-wrapper {
    margin-right: 0;
  }
}

/* ===== Toast Notification Quick Reply Styles ===== */
.toast {
  min-width: 350px;
  max-width: 450px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.toast-header {
  padding: 0.5rem 0.75rem;
  align-items: center;
}

.toast-header img {
  flex-shrink: 0;
}

.toast-header .btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.toast-header .btn-close-white:hover {
  opacity: 1;
}

.toast-body {
  word-wrap: break-word;
  padding: 0.75rem;
}

.toast-quick-reply {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.toast-quick-reply .input-group {
  gap: 0.25rem;
}

.toast-quick-reply input.form-control {
  font-size: 0.875rem;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.toast-quick-reply input.form-control:focus {
  border-color: var(--tblr-primary);
  box-shadow: 0 0 0 0.2rem rgba(32, 107, 196, 0.25);
  outline: none;
}

.toast-quick-reply .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.toast-quick-reply .btn:hover {
  transform: translateY(-1px);
}

.toast-quick-reply .btn i {
  font-size: 1rem;
}

.toast-body .alert-sm {
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  animation: slideDown 0.3s ease-out;
  padding: 0.4rem 0.6rem;
  border-radius: 0.25rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive toast */
@media (max-width: 576px) {
  .toast {
    min-width: 280px;
    max-width: calc(100vw - 2rem);
  }

  .toast-quick-reply .btn {
    padding: 0.4rem 0.6rem;
  }

  .toast-header img {
    width: 20px !important;
    height: 20px !important;
  }
}

/* ========================================
   Mobile Message Dropdown Menu Styles
   ======================================== */

/* Visual feedback for message press on mobile */
@media (max-width: 768px) {
  .cht .message-data {
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  
  .cht .message-data::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  
  .cht .message-data:active::after {
    opacity: 1;
  }
}

.mobile-message-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-message-dropdown.show {
  visibility: visible;
  opacity: 1;
}

.mobile-dropdown-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-dropdown-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--tblr-bg-surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 70vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-message-dropdown.show .mobile-dropdown-content {
  transform: translateY(0);
}

.mobile-dropdown-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 12px auto 8px;
}

.mobile-dropdown-section {
  padding: 0;
}

.mobile-dropdown-header {
  padding: 12px 20px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tblr-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-reaction-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 16px 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-reaction-row .reaction-icon {
  width: 48px;
  height: 48px;
  background-size: cover;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
  opacity: 0;
  transform: scale(0.5);
  border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.mobile-reaction-row .reaction-icon.show {
  opacity: 1;
  transform: scale(1);
}

.mobile-reaction-row .reaction-icon:active {
  transform: scale(0.85);
  border-color: var(--tblr-primary);
}

.mobile-message-dropdown .dropdown-item {
  padding: 14px 20px;
  font-size: 16px;
  color: var(--tblr-body-color);
  display: flex;
  align-items: center;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.mobile-message-dropdown .dropdown-item:active {
  background-color: var(--tblr-active-bg);
}

.mobile-message-dropdown .dropdown-item i {
  font-size: 20px;
  width: 24px;
  min-width: 24px;
}

.mobile-message-dropdown .dropdown-item.text-danger {
  color: var(--tblr-danger);
}

.mobile-message-dropdown .dropdown-divider {
  margin: 8px 0;
  border-top: 1px solid var(--tblr-border-color);
}

/* Dark mode adjustments */
.dark .mobile-dropdown-handle {
  background: rgba(255, 255, 255, 0.2);
}

.dark .mobile-dropdown-content {
  background: var(--tblr-bg-surface-dark, #1e293b);
}

.dark .cht .message-data::after {
  background: rgba(96, 165, 250, 0.15);
}

/* Smooth scrolling for overflow */
.mobile-dropdown-content {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.mobile-dropdown-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Animation for reaction icons */
@keyframes reactionPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Ensure mobile dropdown works on all screen sizes up to tablet */
@media (max-width: 768px) {
  .mobile-message-dropdown {
    display: block;
  }
}

/* Hide on desktop */
@media (min-width: 769px) {
  .mobile-message-dropdown {
    display: none !important;
  }
}