/* Bara laterală de chat */
#chat-sidebar {
    position: fixed;
    right: 0;
    top: 50px;
    width: 300px;
    height: 90vh;
    background: white;
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

/* Titlu și lista de utilizatori */
#chat-toggle {
    background: #007bff;
    color: white;
    text-align: center;
    padding: 10px;
    cursor: pointer;
}

#chat-users {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
}

.list-group-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s;
}

.list-group-item:hover,
.list-group-item.active {
    background: #007bff;
    color: white;
}

/* Chat Box */
#chat-box {
    display: none;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 10px;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f0f2f5;
}

/* Baloane de mesaje */
.message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.sent {
    background: #007bff;
    color: white;
    align-self: flex-end;
}

.received {
    background: #e4e6eb;
    color: black;
    align-self: flex-start;
}

.chat-input {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 50%;
    cursor: pointer;
}



.user-message {
    text-align: right;
    color: blue;
    margin-bottom: 10px;
}
.bot-message {
    text-align: left;
    color: green;
    margin-bottom: 10px;
}


