* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0, .2) transparent;
}
.chat-messages {
      overflow-y: auto;
      flex-grow: 1;
      min-height: 0;
      padding: 20px;
      background: url("../img/whatsapp.webp");
   
     
    }

     .chat-container {
      box-shadow: 0 4px 25px rgba(0,0,0,0.1);
      padding: 0;
    }
    .chat-sidebar {
      border-right: 1px solid #ddd;
      height: calc(100dvh - 168px);
      
      overflow-y: auto;
      background: #fff;
      padding: 4px;
    }
    .chat-sidebar .list-group-item {
      cursor: pointer;
      padding: 15px;
      border-radius: .25rem;
      border: 1px solid #e5e9f2;
      border-radius: .25rem;
      transition: all .3s ease;
      margin: 2px 0;
    }

    .chat-sidebar .list-group-item:hover {
              border-color: #16A085;
    }

    .chat-sidebar .list-group-item.active {
              background: #16A085;
        border: 1px solid #16A085;
    }
    .chat-header {
      padding: 12px;
      background: #16A085;
      color: #fff;
    }
    .chat-header img {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      margin-right: 10px;
    }

    .chat-sidebar img {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      margin-right: 10px;
    }

    .chat-sidebar .list-group-item .contents{
      
    transition: all .4s;
    overflow: hidden;
    max-width: 100%;
    flex: 1 1 auto;
        display: block;
}
  .chat-sidebar .list-group-item .contents .content-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .375rem;
}

.chat-sidebar .list-group-item .contents  .content-info .chat-name {
    font-size: .875rem;
    margin-bottom: 0;
    margin-right: auto;
    font-weight: revert;
    color: #625d5d;
}

    .chat-sidebar .list-group-item.active .contents  .content-info .chat-name {
        color: #fff;
    }


    .chat-time {
    font-size: .875rem;
    display: flex;
    align-items: center;
    color: #adb5bd;
    white-space: nowrap;
    
}

.chat-sidebar .list-group-item.active .contents  .content-info .chat-time {
        color: #fff;
    }

.content-texts {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
   
}
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
.content-texts p {
    font-size: .875rem;
    line-height: 1.34;
    margin-bottom: 0;
    margin-right: auto;
    color: #ADB5BD;
   
    
}
   .sidebar-header {
    background: #fff;
    border-bottom: 1px solid #e5e9f2;
}

/* Collapsible section toggles: align with normal nav links, caret pinned right.
   Selectors are doubled up (.sidebar-link.sidebar-collapse-toggle) so they win
   over AdminKit's `a.sidebar-link { display:block }`. */
.sidebar-link.sidebar-collapse-toggle {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.sidebar-link.sidebar-collapse-toggle .sidebar-caret {
    margin-left: auto;
    margin-right: 0;
    width: 14px;
    height: 14px;
    color: #adb5bd;
    transition: transform .2s ease;
}
.sidebar-link.sidebar-collapse-toggle[aria-expanded="true"] .sidebar-caret {
    transform: rotate(180deg);
}

/* Nested submenu items sit slightly indented under their section. */
.sidebar-submenu {
    margin: 0;
    padding-left: 0;
}
.sidebar-submenu .sidebar-link {
    padding-top: .45rem;
    padding-bottom: .45rem;
    padding-left: 2.9rem;
    font-size: .84rem;
}
.sidebar-submenu .sidebar-link svg {
    width: 15px;
    height: 15px;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
    

    .chat-messages-welcome {
      height: calc(100vh - 75px);
     
    }
    .chat-message {
      margin-bottom: 15px;
      clear: both;
      max-width: 75%;
      position: relative;
    }
    .chat-message .msg {
      border-radius: 18px;
      display: inline-block;
      word-wrap: break-word;
      font-size: 14px;
      color: #383838;
    }
    .chat-message.sent {
      float: right;
    }
    .chat-message.sent .msg {
      background: #dcf8c6;
    }
    .chat-message.sent .msg .custom-padding-msg .time {
      float: right;
    }
    .chat-message.template {
      float: right;
    }
    .chat-message.template .msg {
      background: #dcf8c6;
    }
    .chat-message.template .msg .custom-padding-msg .time {
      float: right;
    }
    .chat-message.received {
      float: left;
    }
    .chat-message.received .msg {
      background: #fff;
      border: 1px solid #ddd;
    }

    .clear-float{
    clear: both;
}
   
    
    .time {
      font-size: 11px;
      color: gray;
      display: block;
      margin-top: 3px;
    }
    .ticks {
      font-size: 12px;
      color: #34b7f1;
      margin-left: 4px;
    }
    .chat-footer {
       position: sticky;
      bottom: 0;
      display: flex;
      z-index: 10;
      padding: 10px;
      background: #f1f1f1;
    }
    .chat-footer input {
      border-radius: 30px;
      padding: 10px 15px;
    }
    .chat-footer .icon-btn {
      background: none;
      border: none;
      font-size: 20px;
      color: #666;
      margin-right: 8px;
      cursor: pointer;
    }
    .chat-footer .icon-btn:hover {
      color: #000;
    }

    .chat-footer button {
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

    .textearea-editor {
    display: block;
    height: auto;
    max-height: 6.25rem;
    width: 100%;
    overflow: auto;
    background-color: #fff;
    padding: 12px 23px 12px 23px;
    border: 0;
    cursor: text;
    margin-right: 7px;
    border-radius: 30px;
    box-shadow: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.textearea-editor:focus {
    border: 0;
    outline: 0;
    box-shadow: none;
}

.input-search-margin{
        margin-top: 4px;
}


.new-msg-btn {
  position: absolute;
  bottom: 72px; /* above Add Message button */
  right: 50%;
  padding: 8px 14px;
  background: #16A085; /* WhatsApp green */
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 50;
}
.new-msg-btn:focus {
    outline: none !important;
}
.custom-fluid{
  padding: 1.5rem 1.5rem 0px 1.5rem;
}

.chat-footer .icon-btn:focus{
  outline: 0;
}
.chat-footer img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 6px;
}

.footer-bot{
  height: 48px;
  margin-left: 6px;
}
.footer-bot .span-one{
 color: #d30000;
}

.footer-bot .span-two{
   color: #006f00;
}

.dropdown-item:active {
  background-color: #1b7765 !important;

}
.block-text{
    color: #be2617 !important;
}
.block-text:active{
    color: #fff !important;
}
.transform-text{
  text-transform: capitalize;
}

.go-down-btn {
    position: absolute;
    bottom: 72px;
    right: 50%;
    padding: 6px 9px;
    background: #16A085;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.go-down-btn:focus {
    outline: none !important;
}

.custom-dropdown{
  top: 100% !important
}

.message-space{
  white-space: pre-line;
}

.whatsapp-msg::after {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-top-color: #fff;
    border-right-color: #fff;
    border-bottom: 0;
    margin-top: 1px;
}

.badge-template{
      background: #3b7ddd;
    margin-bottom: 5px;
}

/* templates */
.template-preview{
background: url("../img/whatsapp.webp");
padding: 14px !important;
}