#tutor-chat-widget, #group-chat-widget {
    display: flex;
    border: 1px solid #ccc;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Sidebar */
#chat-teachers {
    width: 30%;
    background: #fff;
    border-right: 1px solid #dedede;
    overflow-y: auto;
}
span.avtar {
	font-size: 20px;
	font-weight: 500;
    border-radius: 50%;
    background: var(--tutor-color-primary);
    width: 40px;
    height: 40px;
    display: inline-flex;
    color: #fff;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.teacher-entry.active .avtar, .teacher-entry:hover .avtar {
    background: #fff;
    color: var(--tutor-color-primary);
}
.teacher-entry {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: capitalize;
    display: flex;
    align-items: center;
}
.teacher-entry .badge {
    background: #4CAF50;
    color: #fff;
    width: 20px;
    height: 20px;
    display: inline-flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.teacher-entry:hover {
    background: var(--tutor-color-primary);
	color: #fff;
}

.teacher-entry.active {
    background: var(--tutor-color-primary);
    font-weight: bold;
    color: #fff;
}
.teacher-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.teacher-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease-in-out;
}

.teacher-item:hover {
  background: #f3f3f3;
}

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

.teacher-name {
  font-weight: 500;
  font-size: 14px;
}

/* Chat section */
#chat-messages, #group-chat-messages {
    width: 70%;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

#chat-box,#group-chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 16px;
    display: table;
}

.message.me {
    background-color: #d1eaff;
    margin-left: auto;
    text-align: right;
}

.message.other {
    background-color: #eee;
    margin-right: auto;
    text-align: left;
}
select#group-course-select {
    padding: 15px;
    font-family: inherit;
    border: 1px solid #dedede;
}
#chat-input , #group-chat-input {
    border-top: 1px solid #ccc;
    padding: 10px;
    display: flex;
    gap: 10px;
    background: #fff;
}

#message-input, #group-message-input {
    flex: 1;
    resize: none;
    border: 1px solid #dedede;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
}

#send-message, #send-group-message {
    padding: 10px 20px;
    border: none;
    background: var(--tutor-color-primary);
    color: white;
    min-width: 120px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
	transition: ease 0.5s all;
}

#send-message:hover, #send-group-message:hover {
    background: #2e51bf;
	transition: ease 0.5s all;
}

/* Tabs */
.chat-tabs {
    display: flex;
    background: #ddd;
    font-size: 14px;
}

.chat-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background: #eee;
}

.chat-tab.active {
    background: #fff;
    border-bottom: 2px solid #0073aa;
}

/* aleart */

.teacher-entry .unread-count {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 6px;
}