body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
}

.card {
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    overflow: hidden;
    /* height:500px !important; */
}

input.form-control, .input-group input {
    background: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
}

.input-group .btn {
    border-radius: 0 8px 8px 0;
}

.list-group-item {
    background: transparent;
    color: #ccc;
    border: none;
    padding: 10px 16px;
    transition: background 0.2s;
    border-bottom: 1px solid #343333 !important;
}
.list-group-item:hover {
    background: #2a2a2a;
}

.chat-messages {
    height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 10px;
}

.chat-message-right .flex-shrink-1,
.chat-message-left .flex-shrink-1 {
    padding: 10px;
    overflow: visible;
    word-wrap: break-word;
    max-width: 60%;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.2;
}

.chat-message-right .flex-shrink-1 {
    background: #0d47a1 !important;
    color: #fff !important;
}

.chat-message-left .flex-shrink-1 {
    background: #6c6262 !important;
    color: #fff !important;
}

.chat-message-right .font-weight-bold,
.chat-message-left .font-weight-bold {
    font-weight: 600;
    margin-bottom: 5px;
}

.chat-message-right img,
.chat-message-left img {
    border: 2px solid #333;
}

.input-group input {
    border-radius: 8px 0 0 8px;
}

.input-group .btn {
    background-color: #1976d2;
    color: white;
}

.border-top {
    border-top: 1px solid #333 !important;
}

.border-bottom {
    border-bottom: 1px solid #333 !important;
}

.text-muted small {
    color: #888 !important;
}

.recipient-list {
  width: 250px;
  scrollbar-width: thin;
  overflow-y: auto;
  height: 70%;
}
.recipient-list::-webkit-scrollbar {
  width: 6px;
}

.recipient-list::-webkit-scrollbar-track {
  background: #f1f1f1; /* Light background */
}

.recipient-list::-webkit-scrollbar-thumb {
  background-color: #888; /* Darker thumb */
  border-radius: 10px;
}

.recipient-list::-webkit-scrollbar-thumb:hover {
  background: #555; /* On hover */
}

.recipient-list {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1; /* thumb color track color */
}

.chat-offline{
    color: red;
}

.chat-online{
    color: green;
}

.chat-bg-img{
    background-image: url('../images/chat_background.webp');
}

.sidebar {
    width: 220px;
    background-color: #343a40;
    color: #fff;
    flex-shrink: 0;
}
.sidebar a {
    color: #fff;
    text-decoration: none;
    padding: 15px;
    display: block;
}
.sidebar a:hover {
    background-color: #495057;
}
.main {
    flex-grow: 1;
}
.navbar {
    background-color: #007bff;
}

