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

.datecontainer {
  padding: 0.5rem;
  background: var(--message-recieved-bg);
  font-size: 0.85rem;
}

.sentparent,
.reciveparent {
  width: 100%;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: end;
  flex-direction: row;
  gap: 5px;
  /* margin-bottom: 1rem; */
  padding: 10px;
}

.reciveparent {
  justify-content: start;
}

/* message sended section still remaining navigating to recive message section */

.sentparent .userprofle {
  display: none;
}

.messagesentspan {
  position: absolute;
  right: -8px;
  top: 0;

  display: flex;
  align-items: start;
  width: 8px;
  height: 13px;
}
#viewchat .messagesentspan{
  display: flex;
  position: absolute;
  right: -8px;
  top: -1px;

  display: flex;
  align-items: start;
  width: 8px;
  height: 13px;
}
.messagesentspan svg {
  color: var(--message-sent-bg);
}

.messagesent .usernamegroip {
  width: 100%;
  display: flex;
}

.messagereceived .usernamegroip {
  display: inline-flex;
  color: var(--message-sent-bg);
  max-width: 100%;
  font-size: 12.8px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
}

.messagereceived .usernamegroip::before {
  content: "~~";
}

.messagereceived .usernamegroip:hover {
  text-decoration: underline;
}

.Arrow-down {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 0;
  top: -8px;
  font-size: 20px;
  color: var(--primary-strong);
  background-color: transparent;
  border: none;
}

.messagereceived .Arrow-down {
  left: 0;
  color: var(--message-sent-bg);
}

.messagesent .floatright {
  gap: 3px;
  align-self: end;
  float: right;
  transform: translateX(5px) translateY(2px);

  height: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  line-height: 15px;
  color: var(--bubble-parth);
  font-size: 10px;
  margin-top: -0px;
  margin-bottom: -5px;
}

.timestamp {
  vertical-align: top;
  display: inline-block;
  color: var(--text-secondary);
}

#double-check {
  color: var(--navbar-buttons);
}

/* ended here send message  */

/*  */
/*  */
/* recivemessage section starts */
.Spantext a {
  color: #ffffff;
  text-decoration: none;
  word-break: break-all;
}

.playURLButton {
  background-color: transparent;
  border: none;
  width: auto;
  padding-inline: 0.3rem;
  align-items: center;
  justify-content: start;
  display: flex;
  color: var(--aliceblue);
  gap: 5px;
  position: absolute;
  top: -12px;
  right: 0;
  background-color: var(--color-info);
  background-blend-mode: color-burn;
  border: 2px solid var(--color-info);
  color: var(--text-primary-sent);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
}

.playURLButton::after {
  content: 'View';
}

.messagereceived .Spantext a {
  color: blue;
}

.messagereceived {
  width: auto;
  max-width: 90%;
  background-color: var(--message-recieved-bg);
  color: var(--primary-strong);
  border-radius: 0px 5.5222px 5.5222px 5.5222px;
  position: relative;
  padding-left: 9px;
  box-sizing: border-box;
  padding-right: 8px;
  padding-top: 6px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.messagesent {
  width: auto;
  max-width: 90%;
  min-width: 93.63px;
  background-color: var(--message-sent-bg);
  color: var(--white);
  border-radius: 5.5222px 0px 5.5222px 5.5222px;
  position: relative;
  padding-left: 9px;
  box-sizing: border-box;
  padding-right: 8px;
  padding-top: 6px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
}

.messagereceived .floatright {
  gap: 3px;
  align-self: end;
  float: right;
  transform: translateX(5px) translateY(2px);

  height: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  line-height: 15px;
  color: var(--bubble-parth);
  font-size: 10px;
  margin-top: -0px;
  margin-bottom: -5px;
}

.timestamp {
  vertical-align: top;
  display: inline-block;
}

.reciveparent .timestamp {
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
}

.messagerecivedspan {
  position: absolute;
  left: -8px;
  color: var(--message-recieved-bg);
  display: flex;
  align-items: start;
  top: 0;
}

.userprofle {
  display: flex;
  width: 20px;
  transform: translateY(-20px);
  border-radius: 50%;
  height: 20px;
}

.file-preview {
  display: flex;
  width: auto;
  height: auto;
  max-width: 330px;
  max-height: 50%;
  align-self: start;
  transform: translateX(-7px);
}

/* pdfdiv now we are desinging other co desings
 */
.pdfdiv {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: row;
  width: 100%;
  height: 100%;
  padding: 10px;
  background-color: var(--message-sent-file-bg);
  border-radius: 5px;
}

.messagereceived .pdfdiv {
  background-color: var(--navbar-bg);
}

.pdfdiv .small {
  width: 40px;
  display: flex;
  align-items: start;
  justify-content: start;
  height: 10%;
  align-self: center;
  font-size: 25px;
  margin-right: 0.5rem;
}

.pdfdiv .pdfdivrow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdfdiv .pdfdivrow .filename {
  margin-bottom: 0;
  max-width: 100%;
  font-size: 15px;
  display: inline-block;
  word-break: break-all;
}

.pdfdiv .pdfdivrow .pdfdivcolumnhnn {
  display: flex;
  flex-direction: row;
}

.pdfdiv .pdfdivrow .pdfdivcolumnhnn p,
.pdfdiv .pdfdivrow .pdfdivcolumnhnn span {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
}

.pdfdiv .pdfdivrow .pdfdivcolumnhnn p::after {
  content: ".";
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bolder;
  margin-left: 7px;
  margin-right: 7px;
  transform: translateY(-5px);
  flex-direction: row;
}

.pdfdiv #openURL {
  margin-left: 0.5rem;
  background-color: transparent;
  border: none;
  color: var(--bubble-parth);
  border-radius: 50%;
  font-size: 20px;

}

.colum-reverse {
  display: flex;
  flex-direction: column-reverse;
}

.fullscreen-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 200;
  background-color: rgba(240, 248, 255, 0.244);
  backdrop-filter: blur(80px);
  position: relative;
}

.fullscreen-overlay .ftop {
  width: 100%;
  height: 64px;
  background-color: var(--aliceblue);
  position: relative;
  display: flex;
  align-items: center;
}

.fullscreen-overlay .ftop span {
  font-size: 20px;
  font-weight: bold;
}

.fullscreen-overlay .ftop button {
  align-self: end;
  position: absolute;
  right: 5%;
  top: 0;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5%;
  height: 100%;
}

.fullmainimg {
  display: flex;
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
}

.ftop img {
  display: flex;
  margin-left: 1rem;
  margin-right: 1rem;
  width: 50px;
}

/* Typing Indicator */
.typing-indicator-container {
  position: fixed;
  z-index: 70000000000001;
  bottom: 10%;
  padding: 5px 15px;
  margin-bottom: 10px;
  width: 100%;
  display: flex;
}

.typingContainerelative {
  position: relative;
  display: flex;
  align-items: center;
}

.typing-indicator {
  background-color: var(--message-recieved-bg);
  border-radius: 0px 18px 18px 18px;
  padding: 8px 6px;
  display: inline-flex;
  align-items: center;
  max-width: 200px;
}

.typing-indicator span {
  font-size: 14px;
  margin-right: 5px;
  color: var(--navbar-buttons);
}

.typing-indicator-dot {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background-color: var(--navbar-buttons);
  display: inline-block;
  margin: 0 1px;
  animation: typing 1s infinite ease-in-out;
}

.typing-indicator-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0% {
    transform: translateY(0px);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-3px);
    opacity: 1;
  }

  100% {
    transform: translateY(0px);
    opacity: 0.7;
  }
}

/* WhatsApp-style Reply System */
.reply-box {
  border-top: 1px solid var(--bubble-parth);
  padding: 10px 15px;
  background: var(--navbar-bg);
  width: 100%;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  animation: slide-up 0.3s ease-out;
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.reply-preview {
  background: var(--navbar-bg, #e0f7fa);
  padding: 8px 12px;
  border-left: 4px solid var(--message-sent-bg, #00bcd4);
  border-radius: 4px;
  margin-bottom: 10px;
  display: flex;
  color: var(--aliceblue);
  gap: 5px;
  align-items: flex-start;
  position: relative;
  max-height: 80px;
  overflow: hidden;
  min-width: 15px;
  width: 100%;
}

.reply-preview strong {
  display: block;
  color: var(--message-sent-bg, #00bcd4);
  margin-bottom: 2px;
  font-weight: 600;
}

.reply-preview span {
  color: var(--primary-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 90%;
  z-index: var(--layer5);
}
.reply-preview span img{
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
  z-index: var(--layer6);
}

.cancel-reply {
  background: transparent;
  border: none;
  color: var(--primary-strong);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
}

.reply-input {
  width: 100%;
  border: 1px solid var(--bubble-parth, #ddd);
  border-radius: 20px;
  padding: 10px 15px;
  margin-bottom: 8px;
  background-color: var(--aliceblue);
  color: var(--bubble-parth);
  resize: none;
  height: 40px;
}

.send-reply {
  background-color: var(--message-sent-bg, #00bcd4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: absolute;
  right: 15px;
  bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-reply:hover {
  background-color: var(--message-sent-bg, #0097a7);
}

/* Reply Animations */
.slide-in {
  animation: slide-up 0.3s ease-out forwards;
}

.slide-out {
  animation: slide-down 0.3s ease-out forwards;
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-down {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Quoted message highlight animation */
.highlight-message {
  animation: highlight-pulse 1.5s ease-in-out;
}

@keyframes highlight-pulse {
  0% {
    background-color: transparent;
  }

  50% {
    background-color: var(--message-sent-file-bg);
  }

  100% {
    background-color: transparent;
  }
}

/* Improved quoted message style */
.quoted-message {
  background-color: rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--message-sent-bg, #00bcd4);
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  position: relative;
}

.quoted-message:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.quoted-message-sender {
  font-weight: bold;
  color: var(--message-sent-bg, #00bcd4);
  margin-bottom: 2px;
}

/* Reply container in message */
.reply-container {
  margin-top: 5px;
  width: 100%;
}

.reply {
  background-color: rgba(242, 242, 242, 0.564);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 3px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.reply:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* CSS for swipe to reply */
.message-swipe-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.swipe-indicator {
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--message-sent-bg, #00bcd4);
  font-size: 0;
  transition: font-size 0.2s ease;
}

.message-swipe-area.swiping .swipe-indicator {
  font-size: 20px;
}

/* WhatsApp-style Reply Display */
.reply-info {
  background-color: var(--message-sent-file-bg);
  border-left: 4px solid var(--message-sent-bg);
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 80px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  min-width: 150px;
}

.messagesent .reply-info {
  border-left: 4px solid var(--message-recieved-bg);
}

.reply-info:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.08);
}

.reply-sender {
  font-weight: 600;
  color: var(--message-sent-bg, #00bcd4);
  font-size: 0.85em;
  margin-bottom: 2px;
}

.messagesent .reply-sender {
  color: var(--message-recieved-bg);
}

.reply-text {
  color: var(--bubble-parth);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.8em;
  max-width: 100%;
}

.messagereceived .reply-info {
  background-color: var(--navbar-bg);
  border-left-color: var(--message-sent-bg);
}

.messagereceived .reply-sender {
  color: var(--message-sent-bg);
}

.reply-sender::before {
  content: '~';
}

@keyframes highlight-original {
  0% {
    background-color: transparent;
  }

  30% {
    background-color: var(--message-sent-file-bg);
  }

  100% {
    background-color: transparent;
  }
}

.highlight-original {
  animation: highlight-original 1.5s ease-in-out;
  position: relative;
  z-index: 5;
  border: none;
}

.highlight-original::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  border: none;
  bottom: -3px;
  border-radius: 8px;
  pointer-events: none;
  animation: border-pulse 1.5s ease-in-out;
}

@keyframes border-pulse {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Notaices Feature Styles */
.pinned-notaices {
  background-color: var(--navbar-bg);
  border-bottom: 1px solid #dee2e6;
  padding: 10px 15px;
  margin-bottom: 10px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: -1.5rem;
}

.pinned-notice {
  background-color: var(--navbar-bg);
  border-left: 4px solid #ffc107;
  padding: 10px 15px;
  margin-bottom: 8px;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pinned-notice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 12px;
  color: var(--primary-strong);
}

.pinned-notice-content {
  font-size: 14px;
  color: var(--primary-strong);
  word-break: break-word;
}

.pinned-notice-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11px;
  color: var(--primary-strong);
}

.unpin-notice {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 14px;
}

#closenotification {
  color: var(--primary-strong);

}

/* Notice in chat stream */
.modal-content {
  max-width: 100%;
  background-color: var(--navbar-bg);
}

.notice-message {
  background-color: var(--navbar-bg);
  border-left: 4px solid #f1c40f;
  border-radius: 4px;
  padding: 10px 15px;
  margin: 10px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notice-icon {
  margin-right: 5px;
  color: #f1c40f;
}

/* Notaices Tab Modal */
.notaices-list {
  max-height: 400px;
  overflow-y: auto;
  color: var(--message-sent-bg);
}

.notaice-item {
  border-left: 4px solid #17a2b8;
  background-color: var(--rich-color);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.notaice-item.expired {
  border-left-color: #6c757d;
  opacity: 0.7;
}

.notaice-item.pinned {
  border-left-color: #ffc107;
  background-color: #fff3cd;
}

.notaice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.notaice-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--message-sent-bg);
}

.notaice-time {
  font-size: 12px;
  color: #6c757d;
}

.notaice-content {
  font-size: 14px;
  margin-bottom: 8px;
  word-break: break-word;
}

.notaice-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6c757d;
}

.notaice-expiry {
  display: flex;
  align-items: center;
}

.notaice-expiry i {
  margin-right: 4px;
}

.notaice-actions {
  display: flex;
  gap: 10px;
}

.notaice-actions button {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
}

.btn-pin {
  color: #ffc107;
}

.btn-delete {
  color: #dc3545;
}

/* Button Styling */
#notaicesButton {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  margin-right: 10px;
  padding: 0;
}

#notaicesButton:hover {
  color: #17a2b8;
}

#notaicesTabButton,
#deleteGroupButton {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  margin-right: 10px;
}

#deleteGroupButton {
  color: #dc3545;
  margin-left: 1rem;
}

#notaicesTabButton:hover {
  color: #17a2b8;
}

/* Tooltip for personal chats */
.tooltip-notaices {
  position: relative;
}

.tooltip-notaices:hover::after {
  content: "Notaices are for group use only";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #343a40;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1000;
  margin-bottom: 5px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
  }
}

/* Group Image Upload Styles */
.groupimg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.change-group-img {
  position: absolute;
  bottom: 65px;
  right: 10px;
  z-index: 10;
}

.change-img-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--message-sent-bg);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.change-img-btn:hover {
  background-color: var(--navbar-buttons);
  transform: scale(1.05);
}

.upload-progress {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.progress {
  height: 10px;
  border-radius: 5px;
  margin-bottom: 5px;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: var(--bubble-parth);
}

.progress-text {
  text-align: center;
  font-size: 12px;
  color: #495057;
  font-weight: 600;
}

.Preview-File-item {
  border: 1px solid var(--rich-color);
  padding-inline-start: 10px;
  margin: 6px;
  border-radius: 8px;
  height: 64px;
  cursor: pointer;
  background-color: var(--navbar-bg);
  transition: background 0.3s;
  width: 200px;
  position: relative;
}

.Preview-File-item .bi.bi-x {
  position: absolute;
  right: -5px;
  top: -5px;
  height: 15px;
  width: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
  background-color: var(--navbar-bg);
  border: none;
  border-radius: 50%;
}

.Preview-File-item .bi.bi-x:hover {
  color: red;
}

.Preview-File-item:hover {
  background-color: var(--rich-color);
}

.previtemcontainers {
  display: flex;
  flex-direction: row;

}

.previtemcontainerslogo,
.flexcolumnn {
  height: 50px;
}

.flexcolumnn {
  display: flex;
  align-items: start;
  gap: 2px;
  flex-direction: column;
  justify-content: start;
  width: 80%;
  height: 100%;
  align-self: center;
}

.previtemcontainerslogo {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.flexcolumnn p {
  margin: 0;
}

.flexcolumnn .Fileprevname {
  font-size: 17px;

}

.flexcolumnn .flex-rows {
  display: flex;
  flex-direction: row;
  font-size: 12px;
  margin-top: 0.1rem;
  gap: 10px;
}

.flex-rows .Fileprevsize::after {
  content: '..';
  margin-left: 0.2rem;
}

.Preview-File-item .bi.bi-eye {
  width: 20%;
  background-color: var(--navbar-bg);
  color: var(--message-sent-bg);
  border: 1px solid var(--bubble-parth);
  border-radius: 20px;
}

.file-preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.file-preview-content {
  background: var(--navbar-bg);
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  height: 90%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.file-preview-content img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 90%;
  align-items: center;
  justify-content: center;
  align-self: center;
  display: flex;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--navbar-bg);
  color: var(--primary-strong);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
}

.Spantext {
  color: var(--text-primary);
}

.reciveparent .Spantext {
  color: var(--primary-strong);
}

.reactions {
  border-radius: 30px;
  height: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: var(--message-recieved-bg);
  box-shadow: inset 0.5px 1px 20px 20px rgba(var(--shadow-rgb), 0.13);
  position: absolute;
  left: 5px;
  bottom: -20px;
  color: var(--primary-strong);
  border: 2px solid var(--navbar-bg);
  padding-inline: 0.5rem;
}/* Modal Base */
.reaction-modal{
  position: absolute;
  right: 20%;
  display: flex;
  flex-direction: row;
  gap: 10px;
  font-size: 25px;
  border-radius: 80px;
  background-color: var(--message-sent-bg);
  padding: 4px;
}
.reaction-modal button{
  background-color: transparent;
  border: none;
}
.width-full{
  animation: widthfull 0.7s linear ease-in-out;
}
.width-gone{
  animation: widthgone 0.7s linear ease-in-out;
}
@keyframes widthfull {
  0%{
    width: 0;
    height: 80%;
  }
}
@keyframes widthgone {
  0%{
    width: 100%;
  }
  100%{
    width: 0;
  }
}
@media (min-width:426px) {
  
.message-modal {
  position: absolute;
  bottom: 60px;
  right: 10px;
  width: 230px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', sans-serif;
  z-index: 1000;
  overflow: hidden;
  animation: fadeInUp 0.25s ease-out forwards;
}

/* Modal Header */
.modaltopb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  padding: 10px 14px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  color: #333;
}
.modaltopb i {
  margin-right: 6px;
  color: #0d6efd;
}
.close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}
.close-btn:hover {
  color: #e63946;
}

/* Button Group Section */
.modal-button {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 8px;
}

.modal-button button,
.copy-btn,
.deletemessage ,.reply-btn , .react-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-button button:hover,
.copy-btn:hover,
.deletemessage:hover {
  background-color: #e4e4e4;
}

/* Copy Button Specific */
.copy-btn {
  padding: 10px 14px;
  justify-content: center;
  border-top: 1px solid #eee;
  background-color: #fafafa;
}
.copy-btn svg {
  margin-right: 6px;
}

/* Delete Button Specific */
.deletemessage {
  padding: 10px 14px;
  justify-content: center;
  color: #d62828;
  background-color: #fff4f4;
}
.deletemessage:hover {
  background-color: #ffe3e3;
}

/* Entrance Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Exit Animation */
@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* Utility class to trigger exit animation */
.message-modal.hide {
  animation: fadeOutDown 0.2s ease-in forwards;
}

.wrappermainbig {
  position: absolute;
  bottom: 70px;
  right: 80px;
  width: 260px;
  height: 300px;
  background-color: var(--rich-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  z-index: 10000;
  padding: 12px 14px;
  animation: popupIn 0.25s ease;
}

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

.wrappermainbig section.content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}
.user-reaction{
  width: 100%;
  height: 100%;
  overflow-y:auto ;
  &::-webkit-scrollbar{
    display: none;
  }
}
/* Avatar */
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* User Info Column */
.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Name and Time */
.reactionsname {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-strong);
  padding-left: 1rem;
}

/* Timestamp with blur */
.timestamps {
  font-size: 11px;
  color: var(--bubble-parth);
}
.bgblur {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Emoji shown */

.emojiused .user-emojis {
  font-size: 14px;
  display: inline-block;
  padding: 2px 4px;
  color: var(--primary-strong);
  cursor: pointer;
}

/* Close Button */
.wrappermainbig > button.bi-x {
  position: absolute;
  top: 0px;
  right: 0px;
  background: none;
  border: none;
  color: var(--primary-strong);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.wrappermainbig > button.bi-x:hover {
  color: #f55;
}

.wrappermain{
  display: flex;
  flex-direction: row;
  border-bottom: 2px solid var(--border);
}
}
@media (max-width:426px) {
  
.wrappermainbig {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background-color: var(--navbar-bg);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  z-index: 10000;
  padding: 12px 14px;
  animation: popupIn 0.25s ease;
}

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

.wrappermainbig section.content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}
.user-reaction{
  width: 100%;
  height: 100%;
  overflow-y:auto ;
  &::-webkit-scrollbar{
    display: none;
  }
}
/* Avatar */
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* User Info Column */
.col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Name and Time */
.reactionsname {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-strong);
  padding-left: 1rem;
}

/* Timestamp with blur */
.timestamps {
  font-size: 11px;
  color: var(--bubble-parth);
}
.bgblur {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Emoji shown */

.emojiused .user-emojis {
  font-size: 14px;
  display: inline-block;
  padding: 2px 4px;
  color: var(--primary-strong);
  cursor: pointer;
}

/* Close Button */
.wrappermainbig > button.bi-x {
  position: absolute;
  top: 0px;
  right: 0px;
  background: none;
  border: none;
  color: var(--primary-strong);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.wrappermainbig > button.bi-x:hover {
  color: #f55;
}

.wrappermain{
  display: flex;
  flex-direction: row;
  border-bottom: 2px solid var(--border);
}
  
.message-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', sans-serif;
  z-index: 1000;
  overflow: hidden;
  animation: fadeInUp 0.25s ease-out forwards;
  height: 300px;
}

/* Modal Header */
.modaltopb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f7f7;
  padding: 10px 14px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  color: #333;
}
.modaltopb i {
  margin-right: 6px;
  color: #0d6efd;
}
.close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}
.close-btn:hover {
  color: #e63946;
}

/* Button Group Section */
.modal-button {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 8px;
}

.modal-button button,
.copy-btn,
.deletemessage {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-button button:hover,
.copy-btn:hover,
.deletemessage:hover {
  background-color: #e4e4e4;
}

/* Copy Button Specific */
.copy-btn {
  padding: 10px 14px;
  justify-content: center;
  border-top: 1px solid #eee;
  background-color: #fafafa;
}
.copy-btn svg {
  margin-right: 6px;
}

/* Delete Button Specific */
.deletemessage {
  padding: 10px 14px;
  justify-content: center;
  color: #d62828;
  background-color: #fff4f4;
}
.deletemessage:hover {
  background-color: #ffe3e3;
}

/* Entrance Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Exit Animation */
@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* Utility class to trigger exit animation */
.message-modal.hide {
  animation: fadeOutDown 0.2s ease-in forwards;
}

}

.modal-button button,
.copy-btn,
.deletemessage ,.reply-btn , .react-btn{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-button button:hover,
.copy-btn:hover,
.deletemessage:hover {
  background-color: #e4e4e4;
}

/* Copy Button Specific */
.copy-btn {
  padding: 10px 14px;
  justify-content: center;
  border-top: 1px solid #eee;
  background-color: #fafafa;
}
.copy-btn svg {
  margin-right: 6px;
}

/* Delete Button Specific */
.deletemessage {
  padding: 10px 14px;
  justify-content: center;
  color: #d62828;
  background-color: #fff4f4;
}
.deletemessage:hover {
  background-color: #ffe3e3;
}
