.dashboard-chat {
    display: flex;
    height: 100vh;
    background: #f4f4f9;
    font-family: Arial, sans-serif;
}

.sidebar {
    width: 250px;
    background: #333;
    color: #fff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar ul li:hover,
.sidebar ul li.active {
    background: #575757;
}

.chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-left: 1px solid #ddd;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.header span {
    font-size: 1.2rem;
    font-weight: bold;
}

.admin-profile {
    position: relative;
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #333;
    transition: transform 0.3s;
}

.admin-profile img:hover {
    transform: scale(1.1);
}

.profile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: #000000;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.profile-menu button {
    width: 100%;
    padding: 10px;
    border: none;
    background: #00fff2;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-menu button:hover {
    background: #ff0000;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    max-width: 60%;
    word-wrap: break-word;
}

.message.sent {
    background: #007bff;
    color: #fff;
    align-self: flex-end;
    text-align: right;
}

.message.received {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
}

.input-area {
    display: flex;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.input-area input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    outline: none;
    transition: border-color 0.3s;
}

.input-area input:focus {
    border-color: #007bff;
}

.input-area button {
    padding: 10px 20px;
    border: none;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.input-area button:hover {
    background: #0056b3;
}

.end-conversation, .delete-messages {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.end-conversation {
    background: #dc3545;
}

.end-conversation:hover {
    background: #c82333;
}

.delete-messages {
    background: #f0ad4e;
}

.delete-messages:hover {
    background: #ec971f;
}
    