:root {
    --color-primary: #6f68e8;
    --color-primary1: #5f54dc;
    --color-primary-dark: #3f36b8;
    --color-bg: #f5f7fa;      
    --color-white: #ffffff;   
    --color-black: #000000;   
    --color-gray: #ccc;       
    --color-gray-light: #f0f0f0;
    --color-gray-dark: #333;  
    --color-send: #77c270;    
    --color-receive: #5cafd7; 
}

.reply-token{opacity:0;font-size:0;user-select:none;pointer-events:none;line-height:0;display:inline-block;white-space:pre}


body {
    flex-direction: column;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--color-bg);
    overflow: hidden; 
}

body.modal-open {
    overflow: hidden;
}

#avatarDisplay {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    object-fit: cover;
    background-color: transparent;
    filter: none;
}

#avatarDisplay[src=""] {
    background-color: #111;
    filter: brightness(55%);
}

#typingIndicator{display:none;align-items:center;gap:4px;}
#participantsLine + #typingIndicator {
  margin-top: 0px !important;
}

.ti-dots{display:inline-flex;gap:2px;align-items:center}
.ti-dot{width:6px;height:6px;border-radius:50%;background:#cce7ff;opacity:.35;animation:tiBlink .8s infinite}
.ti-dot:nth-child(2){animation-delay:.1s}
.ti-dot:nth-child(3){animation-delay:.2s}
#typingIndicator .ti-text{color:#cce7ff;white-space:nowrap; font-size: 0.65em;}
@keyframes tiBlink{0%,80%,100%{opacity:.35}40%{opacity:1}}

#groupMenuButton {
    position: absolute; 
    top: 24px;
    right: 10px;
    z-index: 1000;
}


.separator {
    width: 0.5px; 
    background-color: #bebebe; 
    height: 160%; 
    margin-top: -10px; 
}


.container {
    display: flex;
    flex-grow: 1; 
    height: calc(100vh - 50px); 
}

.active-chat {
    background-color: #ffffff; 
    border-radius: 8px;
    padding: 10px;
    margin: 5px 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
}

.active-chat:hover {
    background-color: #d1f0ff; 
}

.reply-preview{
  margin:-2px -4px 8px;
  padding:8px 10px;
  border-radius:8px;
  background:color-mix(in oklab, var(--bubble-bg) 93%, black 7%);
  opacity:.92;
}

.reply-author{
  font-weight:700;
  line-height:1.2;
}

.reply-author::after{
  content:":";
  margin-left:2px;
}

.reply-snippet{
  line-height:1.25;
  opacity:.95;
  white-space:pre-line;
}

.reply-highlight{
  outline:2px solid rgba(255,255,255,.6);
  outline-offset:2px;
  transition:outline-color .2s ease;
}

.sender {
    color: #000000; 
    font-size: 1.1em; 
}


.reply-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  cursor: pointer;
}

.reply-snippet.expanded {
  -webkit-line-clamp: unset; 
  overflow: visible;
}

.reply-deleted {
  color: #888;
  font-style: italic;
  opacity: 0.7;
  user-select: none;
}

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

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f0f4f9);
    border-radius: 15px;
    width: 80%;
    max-width: 400px;
    max-height: 90vh; 
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow-y: auto; 
    position: relative;
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333; 
}

.modal-content button {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}


.modal-content button:hover {
    background-color: #0077b3; 
    color: rgb(255, 255, 255);
}

#confirmLockButton {
    background-color: #60c564; 
    color: rgb(255, 255, 255);
}

#confirmLockButton:hover {
    background-color: #4da551; 
}

#cancelLockButton {
    background-color: #3fa8ff; 
    color: white;
}

#AESBUTTON:hover {
    background-color: #e05b50; 
    color: white;
}

#AESBUTTON {
    background-color: #f9685b; 
    color: white;
}

#cancelLockButton:hover {
    background-color: #3698e9; 
}


#cancelLockButton:disabled {
    background-color: #d9d9d9; 
    color: #a0a0a0; 
    cursor: not-allowed; 
    opacity: 0.6; 
}

#cancelLockButton:disabled:hover {
    background-color: #d9d9d9; 
}


.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: black;
}

#imageModal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

#imageModal.open {
  display: flex;
}

.modal-content-wrapper {
  position: relative;
  max-width: calc(100dvw - 48px);
  max-height: calc(100dvh - 48px);
}

#modalImage {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

#imageModal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  border: none;
  z-index: 3001;
}

#imageModal .close:hover,
#imageModal .close:focus {
  color: #bbb;
}


input[type="text"] {
    width: 75%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px; 
    margin-right: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.send-button {
    padding: 10px 15px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 8px;
}
.send-button:hover {
  background-color: var(--color-primary-dark);
}


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


input[type="file"], input[type="text"] {
    width: 78%;
    padding: 10px;
    font-size: 16px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.add-avatar {
    padding: 10px;
    background-color: #0088cc; 
    color: white;
    border: none;
    border-radius: 50%; 
    cursor: pointer;
    width: 40px; 
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.add-avatar:hover {
    background-color: #0077b3; 
}

.error-message {
    color: red;
    margin-top: 5px;
    font-size: 14px;
}

.search-result {
    padding: 10px;
    margin: 10px 0;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
}

.start-chat-button {
    padding: 5px 10px;
    background-color: #0088cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.start-chat-button:hover {
    background-color: #0077b3;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: #3390ec;
  line-height: 1;
  user-select: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08),
              0 2px 6px rgba(0, 0, 0, .08);
}

.badge-22 {
  width: 26px;           
  height: 26px;          
  border-radius: 50%;    
  font-size: 1em;        
  font-weight: 900;
  transform: translateX(-3px);    
  white-space: nowrap;
}

.dialog-subtitle-badge {
  position: absolute;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.dialog-subtitle-badge-unread {}
.is-visible {}
.unread {}

.dialog-subtitle-badge-unread.muted {
    background-color: #bbbbbb !important;
}


body {
    overflow-x: hidden; 
}


@media (max-width: 1350px) {
    #fixedButtonWrapper {
      left: 200px; 
      transform: none; 
    }
}


@media (max-width: 737px){
  .container{
    flex-direction:column;
    display:flex;
    height:calc(var(--vh, 1vh) * 100);
    margin:0;
    padding:0;
  }

  .message{
    max-width:84%;
    align-self:flex-start;
    -webkit-user-select:none;
    -ms-user-select:none;
    user-select:none;
  }

  .wavesurfer{
    width:40%;
    height:45px;
    border-radius:5px;
    background-color:transparent;
    overflow:hidden;
    padding:0;
    box-shadow:none;
    flex-grow:1;
  }

  .my-message{
    align-self:flex-end;
    margin-left:auto;
    max-width:80%;
  }

  .active-chat-style{
    width:100%;
    height:85vh;
    display:flex;
    flex-direction:column;
    padding:10px;
    background-color:#ffffff;
    overflow:hidden;
  }

  #chatavatar-wrapper{
    flex-shrink:0;
    margin-left:40px;
    box-sizing:border-box;
  }

  #receiver-text{
    padding-right:40px;
    box-sizing:border-box;
  }

  .separator{ display:none; }


  input[type="text"], button.send-button{
    width:calc(100% - 20px);
    margin:5px 0;
    padding:10px;
  }

  .modal-content{ width:90%; }

  button.send-button{
    flex-grow:.4;
    width:0%;
    padding:10px;
    margin-left:1px;
  }

  .round-image{
    width:62px;
    height:62px;
    display:none;
    border-radius:50%;
    object-fit:cover;
    margin-left:10px;
    margin-top:3.2px;
    border:none;
    background-color:transparent;
    box-shadow:0 0 0 2.2px #ffffff;
  }

  .round-image[src]{ display:block; }

  .back-button{
    background:none;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    font-size:18px;
    color:#ffffff;
    position:absolute;
    z-index: 10000;
    left:20px;
  }

  .back-button:hover{ color:#4a5566;; }

  .back-button i{ font-size:26px; color: #3f4857;}

  .context-menu{ left:60%; }

  .v-divider{ display:none; }

  .sidePane{ display:none !important; }
}

:root {
  --tick-color: #75c566;
}


button.lock-button {
    padding: 5px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #8a8989;
    margin-right: 10px;
    transition: transform 0.2s ease-in-out;
}

button.lock-button:hover {
    transform: scale(1.1); 
    color: #7d7d7d;
}


.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe; 
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888; 
    width: 80%; 
}

.close {
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
}

.close:hover,
.close:focus {
    color: black; 
    text-decoration: none; 
    cursor: pointer; 
}





.input-error {
    border: 2px solid red; 
    animation: shake 0.3s; 
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(-2px); }
    50% { transform: translate(2px); }
    75% { transform: translate(-2px); }
    100% { transform: translate(0); }
}

button.attach-button {
    padding: 5px;
    background-color: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #8a8989; 
    margin-right: 10px; 
    transition: transform 0.2s ease-in-out;
}

button.attach-button:hover {
    transform: scale(1.2);
    color: #7d7d7d; 
}

.message-image {
    width: 100%;
    height: auto;
    object-fit: cover; 
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

.message-image.square {
    width: 150px;
    height: 150px;
}

.message-image.landscape {
    width: 250px;
    height: auto;
}

.message-image.portrait {
    width: 150px;
    height: 250px;
}

.image-container {
    display: block;
    width: 100%;
    text-align: center; 
    margin-bottom: 10px; 
}

.message-video {
    width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    cursor: pointer;
}

.message-video.square {
    width: 150px;
    height: 150px;
}


.message-video.landscape {
    width: 250px;
    height: auto;
}


.message-video.portrait {
    width: 120px;
    height: 250px;
}


.video-container {
    display: block;
    width: 100%;
    text-align: center; 
    margin-bottom: 10px; 
}

#videoModal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

#modalVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.modal2-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}


.mic-button {
    background: none;
    border: none;
    font-size: 23.5px; 
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    color: #7d7d7d; 
    transition: color 0.3s ease;
    transition: transform 0.2s ease-in-out;
}

.mic-button:hover {
    transform: scale(1.2);
    color: #007bff; 
}

.mic-button i.fa-paper-plane {
  position: relative;
  left: -1.6px;
  top: 1px;
}



.file-download {
    display: inline-block;
    padding: 8px 12px;
    background-color: #cce7ff; 
    color: cce7ff;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.file-download:hover {
    background-color: #cce7ff; 
    transform: scale(1.05); 
}

.message-avatar {
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    margin-right: 10px; 
}


#messagesArea {
    overflow-y: scroll; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

#messagesArea::-webkit-scrollbar {
    width: 0; 
    height: 0; 
}

#messagesArea::-webkit-scrollbar-thumb {
    background: transparent; 
}

#messagesArea::-webkit-scrollbar-track {
    background: transparent; 
}


.message-button, .message-button1 {
    padding: 12px 18px; 
    font-size: 16px;
    border: none;
    border-radius: 10px; 
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s; 
    margin: 8px; 
    font-weight: bold;
}

.message-button {
    background-color: #FF9800; 
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.message-button:hover {
    background-color: #FB8C00; 
}


.message-button1 {
    background-color: #ff6f61; 
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.message-button1:hover {
    background-color: #e05b50; 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.message-button:focus, .message-button1:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); 
}

:root{
  --sel-radius: 12px;
  --sel-pad-y: 10px;
  --sel-pad-x: 12px;
  --sel-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 24px rgba(0,0,0,.08);
  --ring: 0 0 0 3px rgba(96,165,250,.35); 
  --accent: #60a5fa;
}

.ss-main{ width:100%; }
.ss-main .ss-single-selected{
  background: var(--sel-bg);
  border: 1px solid var(--sel-border);
  border-radius: var(--sel-radius);
  color: var(--sel-text);
  padding: var(--sel-pad-y) calc(var(--sel-pad-x) + 24px) var(--sel-pad-y) var(--sel-pad-x);
  font: 500 14px/1.25 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Noto Sans",Arial,sans-serif;
  box-shadow: var(--sel-shadow);
  transition: border-color .15s ease, box-shadow .15s ease, transform .03s ease;
}
.ss-main .ss-single-selected:hover{ border-color: color-mix(in oklab, var(--accent) 45%, var(--sel-border)); }
.ss-main .ss-single-selected.ss-open{ border-color: var(--accent); box-shadow: var(--ring); }

.ss-main .ss-arrow{
  right: 12px;
  border-color: var(--sel-placeholder) transparent transparent transparent;
}

.ss-content{
  margin-top: 6px;
  background: var(--sel-bg);
  border: 1px solid var(--sel-border);
  border-radius: var(--sel-radius);
  box-shadow: var(--sel-shadow);
  inset-inline: 0; 
}

.ss-content .ss-list{
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: none;          
  -ms-overflow-style: none;       
}
.ss-content .ss-list::-webkit-scrollbar{ width:0; height:0; } 
.ss-content .ss-list .ss-option{
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--sel-text);
}
.ss-content .ss-list .ss-option:hover,
.ss-content .ss-list .ss-option.ss-highlighted{
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.ss-content .ss-list .ss-option.ss-selected{
  background: color-mix(in oklab, var(--accent) 18%, transparent);
}

.ss-main .ss-single-selected .placeholder{ color: var(--sel-placeholder); }

[dir="rtl"] .ss-main .ss-single-selected{
  padding: var(--sel-pad-y) var(--sel-pad-x) var(--sel-pad-y) calc(var(--sel-pad-x) + 24px);
}
[dir="rtl"] .ss-main .ss-arrow{ left:12px; right:auto; }


.modal-window {
    display: none; 
    position: absolute;
    background-color: #ffffff;
    border: 2px solid #4f4f4f65;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 4px;
    z-index: 10;
    width: 123px; 
    height: 159px; 
}

.modal-window ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modal-window li {
    padding: 0; 
    display: flex;
    align-items: center;
    cursor: pointer;
}

.modal-window li button {
    background: transparent; 
    border: none; 
    width: 100%; 
    height: 100%; 
    text-align: left; 
    display: flex; 
    align-items: center; 
    padding: 8px 10px; 
}

.modal-window li img {
    width: 20px;
    height: 20px;
    margin-right: 10px; 
}

.modal-window li:hover {
    background-color: #f0f0f0; 
}

.modal-window li button:focus {
    outline: none; 
}



.message-document, .message-file {
    color: #000000;
    text-decoration: underline;
    font-weight: 540;
    font-family: "Segoe UI Semibold", "Roboto Medium", "Inter", Arial, sans-serif;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    top: 20px;
    left: 54px;
}


.message-document:hover, .message-file:hover {
    color: #282828;  
    text-decoration: underline;  
}

.progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); 
    z-index: 1;
}

.progress-ring {
    stroke: #4caf50; 
    stroke-linecap: round; 
    transition: stroke-dashoffset 0.3s ease-in-out; 
    stroke-dasharray: 0 100; 
}

.arrow {
    z-index: 2; 
}

.message-file-container {
    display: block;
}

.file-size {
    font-size: 14px;
    color: #bdc3c6;   
    position: absolute; 
    top: 53px;         
    left: 64px;            
}

.file-size {
    font-size: 14px;
    color: #65bd58;    
    position: absolute; 
    top: 53px;         
    left: 64px;            
}

.custom-emoji {
    width: 1em;
    height: 1em;
    vertical-align: -0.1em;
}
  

#fixedButtonWrapper > div {
  transition: transform 0.3s ease;
}
#fixedButtonWrapper > div:hover {
  transform: scale(1.1);
}
  
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
  
.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-emoji {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
}


.input-group input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}
  
.input-group input:focus {
    border-color: #007BFF;
    outline: none;
}
  
.icon-button1 {
    background-color: #007BFF;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
  
.icon-button1 i {
    color: #fff;
    font-size: 20px;
    position: relative;
    right: -3px;
}
  
.icon-button1:hover {
    background-color: #0056b3;
}

.icon-button1:disabled {
    background-color: #A9A9A9; 
    cursor: not-allowed;     
    opacity: 0.6;            
}

.icon-button1:disabled:hover {
    background-color: #A9A9A9; 
}

.scrollable-list {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}
  
.scrollable-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
  
.scrollable-list li {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
}
  
.scrollable-list li:last-child {
    border-bottom: none;
}

.create-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 5px 0;
    padding: 12px;
    font-size: 18px;
    background: linear-gradient(135deg, #0099cc, #66ccff);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, transform 0.2s;
}
  
.create-button:hover {
    background: linear-gradient(135deg, #0088cc, #59a3d4);
    transform: scale(1.05);
}


#fixedButtonWrapper {
    position: absolute;
    z-index: 1000;
    left: 87%; 
    top: 586px;
    transform: translateX(-50%); 
}


.disintegrate {
    animation: disintegrate 0.8s forwards;
}

@keyframes disintegrate {
    0% {
      opacity: 1;
      transform: translate(0, 0) scale(1);
    }
    50% {
      opacity: 0.5;
      transform: translate(10px, -10px) scale(0.8);
    }
    100% {
      opacity: 0;
      transform: translate(50px, -50px) scale(0);
    }
}


.composer{
  display:flex;
  flex:1;
  min-width:0;
  flex-direction:column;
  gap:6px;
}

#replyHost{ display:none; }

.input-reply-bubble{
  position:relative;
  display:flex;
  gap:10px;
  align-items:center;
  width:100%;
  max-width:100%;
  padding:10px 36px 10px 12px;
  border-radius:16px;
  background:var(--edit-bubble-bg, rgba(51,144,236,.12));
  border:1px solid var(--edit-bubble-border, rgba(51,144,236,.25));
}


@keyframes pulse {
  0% {
    transform: scale(1);
    background-color: red;
  }
  50% {
    transform: scale(1.1);
    background-color: red;
  }
  100% {
    transform: scale(1);
    background-color: red;
  }
}


.input-reply-bubble, .input-edit-bubble {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: 10px 36px 10px 12px;
  border-radius: 16px;
  background: var(--edit-bubble-bg, rgba(51,144,236,.12));
  border: 1px solid var(--edit-bubble-border, rgba(51,144,236,.25));
}

.input-reply-bubble .reply-icon,
.input-edit-bubble .edit-icon {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--edit-bubble-title, #3390ec);
}

.input-reply-bubble .reply-cancel,
.input-edit-bubble .reply-cancel {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b6b6b;
}

.input-edit-bubble .reply-content,
.input-edit-bubble .reply-title,
.input-reply-bubble .reply-title{ font-weight:700; color:var(--edit-bubble-title,#3390ec); line-height:1.2; }
.input-edit-bubble .reply-subtitle,
.input-reply-bubble .reply-subtitle{
  line-height:1.25;color:var(--edit-bubble-text,#111);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;
}

.composer.has-reply #replyHost,
.composer.has-meta #replyHost{ display:flex; }

.composer{
  flex: 1 1 auto;
  min-width: 0;
}

#replyHost{
  width: 100%;
}

.input-reply-bubble,
.input-edit-bubble{
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 6px;
}

.input-reply-bubble .reply-title,
.input-edit-bubble .reply-title{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-reply-bubble .reply-subtitle,
.input-edit-bubble .reply-subtitle{
  overflow: hidden;
  text-overflow: ellipsis;
}

.composer{
  align-self: stretch;
}

:root{
  --sidebarWidth: 28.5%;
  --dividerColor: #bebebe;
}

.sidePane {
    display: none; 
    width: 21.6%;
    padding: 0px; 
    background-color: #ffffff; 
    border-left: 1px solid #bebebe; 
    overflow-y: auto; 
    height: 100vh; 
    box-sizing: border-box; 
    position: fixed; 
    top: 0; 
    right: 0; 
    z-index: 1000; 
    scrollbar-width: none; 
}

.v-divider{
  position:absolute;
  top:0;
  bottom:0;
  left:var(--sidebarWidth);
  width:1px;
  background:var(--dividerColor);
  pointer-events:none;
  z-index:10;
}


:root{
  --sidebarWidth: 28.5%;     
  --groupSidebarW: 270px;    
}


:root { --sender-offset: 22px; }

.message:not(.my-message) .file-size {
  color: #b7b2c5;
}

.message:not(.my-message):has(> .sender:not([style*="display: none"])) .file-size {
  top: calc(53px + var(--sender-offset));
}

@media (max-width: 737px) {
  #sidebar-stickers {
    width: 100% !important;
    height: 40% !important;
    bottom: 0 !important;
    top: auto !important;
    border-left: none !important;
    border-top: 2px solid #a2a2a2ff !important;
  }
}


.image-container {
  min-height: 150px;
}

.call-button i {
    margin-right: 8px;
    font-size: 20px;
    color: #f0f0f0;
    display: none;
}
.call-button i:hover {
    color: #e3e2e2;
}
.call-button:hover {
    background: none !important;
    filter: none !important;
    opacity: 1 !important;
}


.call-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.call-overlay.active {
    display: flex;
}

.call-window {
    background: #1e1e1e;
    padding: 20px 24px;
    border-radius: 16px;
    min-width: 260px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.call-status {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
}

.call-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.call-control {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.call-control.accept {
    background: #2ecc71;
    color: #ffffff;
}

.call-control.reject,
.call-control.end {
    background: #e74c3c;
    color: #ffffff;
}

#remoteAudio {
    display: none;
}

.call-button {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5; 
}


.call-button i {
    color: #3f4857 !important;
}


.call-button:hover {
    background: none !important;
    opacity: 1 !important;
    color: #4a5566;
}

.menu-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: none;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    display: none;
}

.menu-button i {
    color: #3f4857;
}

.menu-button i:hover {
    color: #4a5566;
}

.menu-button:hover {
    background: none !important;
    filter: none !important;
    opacity: 1 !important;
}


.menu-dropdown {
    position: absolute;
    right: 10px;
    top: 45px;
    background: #1e1e1e;
    border-radius: 10px;
    padding: 6px 0;
    display: none;
    flex-direction: column;
    min-width: 160px;
    z-index: 9999;
}

.menu-dropdown button {
    width: 100%;
    padding: 10px 14px;
    background: none;
    color: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 15px;
}


.menu-dropdown button.delete-chat {
    color: #9a1818;           
}

.menu-dropdown button.delete-chat i {
    color: #e03131;           
}



.menu-dropdown button:hover {
    background: rgba(255,255,255,0.08);
}
.menu-dropdown {
    position: absolute;
    top: 60px;
    right: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 9999;
    padding: 8px 0;
}

.menu-dropdown.open {
    display: flex;
}

.menu-dropdown button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    font-size: 15px;
    cursor: pointer;
    color: #313131;
}

.menu-dropdown button:hover {
    background: #f0f0f0;
}
.menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    color: #313131;
}

.menu-dropdown button i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .context-menu li:hover {
    background: #f0f0f0;
  }
}


@media (hover: none) and (pointer: coarse) {
  .context-menu li:active {
    background: #f0f0f0;
  }
}
