/* Chat */
/*.chat-list-container {
  height: 400px;*/ /* Set your desired fixed height */
  /*overflow-y: auto;*/ /* Enable vertical scrolling if the content exceeds the height */
  /*padding-right: 10px;*/ /* Add some space for the scrollbar */
/*}

.chat-list {
  list-style-type: none;
  padding-left: 0;
}

  .chat-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
  }

    .chat-list li:hover {
      background-color: #f0f0f0;
    }

  .chat-list .fw-bold {
    font-weight: bold;
  }

  .chat-list .text-muted {
    color: #888;
  }

  .chat-list .badge {
    margin-left: auto;
  }

.backbtnicon {
  padding-right: 20px;
}

  .backbtnicon .bi-arrow-left::before {
    font-size: 25px;
    color: #1e3046;
  }*/

/* chat.component.css */
.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-height: 450px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 9999;
}
.floating-chat-box {
  position: fixed;
  bottom: 5px;
  right: 20px;
  z-index: 9999;
  cursor: move; /* Show draggable cursor */
  width: 350px;
}
.dark-bg {
  background-color: slategray;
}
.chat-header {
  background: #000;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
}

.chat-users, .chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 100px;
}
  .chat-users li :hover {
    cursor: pointer
  }
.chat-body ul {
  list-style: none;
  padding: 0;
}

.chat-body li {
  margin-bottom: 10px;
}

  .chat-body li.me .message {
    background: #dcf8c6;
    text-align: right;
  }

.message {
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  background: #f1f0f0;
}

.chat-input {
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-input input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ccc;
}
.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff; /* white border around dot */
}

@media (max-width: 768px) {
  .chat-container {
    width: 90%;
    right: 5%;
  }
}
