html, body, div {
  scroll-behavior: smooth !important;  
}
.skype-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
 }

.left-column {
    min-width: 300px;
    width: 350px;;
    background-color:#010101;
    border-right:1px solid #515151;
    height: 100vh;
    position: relative;
}

.right-column {
    flex-grow: 1;
    min-width: 400px;
    background-color:#010101;
    height: 100vh;
    position: relative;
}

.header, .footer {
    position: absolute;
    left: 0;
    right: 0;
    padding: 10px;
    background-color: rgb(0, 0, 0);
    color: white;
    text-align: center;
    z-index: 100;
}
.header {
    top: 0;
    border-bottom: 1px solid   #343333;
    text-align: left;
    padding-left: 25px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
}
.footer {
    bottom: 0;
}
.content {
    padding: 50px 10px 5px 10px; 
    overflow-y: auto;      
    scrollbar-gutter: stable;
    height: calc(100vh - 60px);
    color: #fff;
    scroll-behavior: smooth;  
}
.content::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

/* chat window */
#chat_data {
  scroll-behavior: smooth;
}
.chat-container {
  padding: 15px;
  padding-top:50px;
}

ul.chat-history {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

ul.chat-history li {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 10px;
  word-wrap: break-word;
}

.my-message { 
  text-align: right;
  border-bottom-right-radius: 0;
  padding-right: 20px !important;
  position: relative;
}

.blue {
  background: #1f1f1f;
  color: #f1f1f1;
  display:inline-block;
  padding:10px;
  max-width: 70%;
  border-radius: 10px;  
  border-bottom-right-radius: 0;
  align-self: flex-start;
}
.white {
  align-self: flex-end;
  background: #292929;
  color: #f1f1f1;
  display:inline-block;
  padding:10px;
  border-radius: 10px;
  border-top-left-radius: 0;  
  max-width: 70%;
}

.other-message {  
  align-self: flex-start;
  text-align: left;
  border-bottom-left-radius: 0;
  position: relative;
}

.message-header {
  font-size: 0.75rem;
  margin-bottom: 4px;
}

.message-content {
  font-size: 0.95rem;
}
.no-messages {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #999;
  font-style: italic;
  font-size: 16px;
}
.date-separator {
  position: relative;
  text-align: center;
  margin: 20px 0;
  color: #f1f1f1;
  font-size: 14px;
  padding: 10px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.date-separator::before,
.date-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #474646;
  margin: 0 10px;
}
.message-content {
  text-align:left;
  line-height: 1.6; 
  word-wrap: break-word;
}

.message-content.has-new-lines {
  white-space: pre-line;
  line-height: 1.4; 
}
.message-section { clear:both;}
.avatar {
    width: 40px;
    height: 40px;
    float: left;
    border-radius: 50%;
    background-color: #ccc;
    color: #000000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 20px;
    flex-shrink: 0;
  }
  .avatar.pink  {
    background-color:#f2cff9;
    font-size: 17px;
  }
  .avatar-image {
    left:-14px !important;
  } 
  /* left menu */
  .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;      
    scrollbar-gutter: stable;
    max-height: 100vh;
    padding-top: 100px;
    box-sizing: border-box;
  }
  .nav-menu::-webkit-scrollbar {
    width: 0px;
    background: transparent;
  }
  .nav-menu li {
    display: flex;
    padding: 15px 25px;
    box-sizing: border-box; 
    justify-content: space-between;
    transition: all 0.3s ease;
  } 
  .head {
    position: absolute;
    left: 0;
    right: 0;
    background-color:#010101;
    display: flex;
    z-index: 100;
    padding: 25px;    
    border-bottom: 1px solid #343333;    
  }
  .head a {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
  }
  .avatar-wrapper {
    position: relative;    
    float: left;
  }
  
  .mavatar {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
  }
  .read-avatar {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
  }
  .read-avatar .avatar{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color:#ccc;
    color: #000000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
  
  .online-badge {
    position: absolute;
    top: 9px;
    left: 0px;
    width: 12px;
    height: 12px;
    background-color: #28a745;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgb(0, 0, 0);
    border-radius: 50%;
    cursor: pointer;
  }
  .online-badge.offline{
    background-color: #818180;
  }
  .online-badge.away{
    background-color: #ffc107;
  }
  .online-badge.away::after {
    content: '!';
    font-size: 8px;
    color: #fff;
    font-weight: bold;
  }
  .online-badge.busy,
  .online-badge.dnd {
    background-color: #dc3545;
  }  
  .online-badge.dnd::after {
    content: '-';
    font-size: 8px;
    color: #fff;
    font-weight: bold;
  }
  .floater3 {
    color: #fff;
    cursor: pointer;
    align-self: center;
  }
  .cst {
    background-color:#292a2d;
    color: #fff;
    border-radius: 10px;
  }
  .cst a:hover {
    background-color:#141415;
    color: #fff;
  }
  .uavatar-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;    
    width: 100%;
  }
  .sidebar-group-left {
    display: flex;
    align-items:flex-start;
  }
  .sidebar-group-right {
    color: #fff;
    line-height: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 50px;
  }
  .justify-left {
    justify-content: space-between;
  }
  
  .uchat {
    color: #fff;
    font-size: 18px;
  }
  .nav-menu li:hover,  .nav-menu li.active {
    background-color:#081e40;
    border-radius: 20px;;
    cursor: pointer;
  }
  .chat-input {
    width: 100%;
    min-height: 38px;
    max-height: 150px;
    resize: none;
    padding: 8px 12px;
    font-size: 16px;
    border:none !important;
    border-radius: 18px;
    background-color: #292929;
    color:#fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    transition: height 0.2s;
    line-height: 1.4 !important;    
    white-space: pre-wrap;
  }
  .badge-counter {
    height: 20px;
    width: 20px;
    background-color: #ff0707;
    color: white;
    border-radius: 50%; 
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    /* position: absolute;
    right: 29px; */
  }
  .chat-home-window {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
  }
  .typing-status {
    color: #808080;
    text-align: left;
    display: flex;
    justify-content: flex-start;
  }
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 120;
  }
  .settings-modal {
    background: white;
    padding: 20px;
    border-radius: 12px;
    min-width: 320px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }
  .preview-img {
    width: 60px;
    height: 60px;
    margin-top: 10px;
    object-fit: cover;
    border-radius: 50%;
  }
  /* Transition animations */
.fade-slide-enter-active, .fade-slide-leave-active {
  transition: all 0.3s ease;
}
.fade-slide-enter-from {
  opacity: 0;
  transform: translateX(20px);
}
.fade-slide-leave-to {
  opacity: 0;
  transform: translateX(-20px);
}
.list-move {
  transition: all 0.3s ease;
}

.list-enter-active,
.list-leave-active {
  transition: all 0.3s ease;
}
.list-enter, .list-leave-to {
  opacity: 0;
  transform: translateY(10px);
}
.chat-icon {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color:#fff;
  background-color:#292929
}
.file-preview {
  background-color:#292929;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 70%;
  padding: 5px;
}
.file-close {
  position: absolute;
  right: 20px;
  top:20px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
}
.media-thumbnail {
  width: 120px;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 5px;
}

.file-thumbnail {
  background-color: #f0f0f0;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  color: #000000;
}

.file-message-text {
  margin-top: 5px;
  white-space: pre-line;
}
.drag-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  border-radius: 5px;
  border:2px dotted red;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-left-color: #4A90E2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 10px;
}
.emoji-large {
  font-size: 3rem;
  line-height: 1.2;
  background: transparent !important;
}
.emoji-medium {
  font-size: 2rem;
  line-height: 1.4;
  background: transparent !important;
}
.emoji-small {
  font-size: 1.5rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Chat edits dropdown */
.message-actions-wrapper {
  position: absolute;
  top: 5px;
  right: 10px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.other-message:hover .message-actions-wrapper, .my-message:hover .message-actions-wrapper {
  opacity: 1;
}
.message-actions-dots {
  font-size: 18px;
  user-select: none;
}
.message-dropdown {
  position: absolute;
  right: 0;
  background-color:#292a2d;
  color: #fff;
  border-radius: 5px;
  z-index: 10;
  width:150px;
  font-size: 14px;
  text-align: left;
  display: none;
}
.message-dropdown-active {
  display: block;
}
.message-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0px;
}
.message-dropdown li {
  padding: 5px 5px;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 1px solid #000000;
}
.message-dropdown li:hover {
  background-color:#141415;
  color: #fff;
}
.edit-message-icon {
    position: absolute;
    left: -20px;
    top: 11px;
    color: #625d5d;
}
.edit-message-icon.pencil-right {
    left: auto;    
    right: -20px;  
}
/* reply to message */
.reply-preview, .reply-block {
  background: #292929;
  border-left: 4px solid #ff6f02;
  text-align: left;
  padding: 5px 10px;
  margin-bottom: 5px;
  font-size: 0.85rem;
}
.reply-user {
  font-weight: bold;
}
.reply-header {
  font-size: 10px;
}
textarea, input, .emoji-mart-emoji {
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif;
}
.search-bar-container {
  position: absolute;
  top: 0px;
  right: 0px;
  width:100%;
  background-color:#010101;
  border:1px solid #515151;
  padding: 8px;
  z-index: 1000;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.search-bar-header {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  flex-grow: 1;
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  margin-right: 10px;
  background-color:#010101;
  color: #fff;
  font-size: 16px;
  outline: none;
}
.search-input::placeholder {
  color: #ccc;     
  opacity: 1;        
}

.search-status {
  margin-right: 10px;
  font-size: 14px;
  color: #fcfcfc;
  min-width: 80px;
  text-align: right;
}

.nav-arrow {
  cursor: pointer;
  font-size: 16px;
  color: #515151;
  margin-right: 10px;
}

.nav-arrow:hover {
   color: #fcfcfc;
}

.close-icon {
  cursor: pointer;
  font-size: 16px;
  color: #515151;
}
.close-icon:hover {
    color: #fcfcfc;
}

.blue_highlight {
  background-color: rgb(240, 194, 12);
  color: #000000;
  transition: background-color 0.3s ease;
}

@media (max-width: 749px) {
  .skype-container {
    flex-direction: column;
  }
  .left-column, .right-column {
    width:100%
  }
}