#toggleOnlineUsers {
    position: fixed;
    top: 2%;
    left: 17%;
    color: lime;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 20px rgba(247, 247, 247, 0.6);
    z-index: 9999;
}

#toggleOnlineUsers:hover {
    box-shadow: 0 0 30px rgba(125, 250, 0, 0.7);
}

/* Styling for the online users container */
.onlineUsers {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: auto;
    min-height: 300px;
    max-width: 80%;
    background-image: url('images/BG.png');
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
    border: 2px solid #b86bff;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.8);
    padding: 20px;
    z-index: 999999999;
    overflow: auto;
    gap: 10px;
}

/* Header for the online users modal */
.onlineUsers h3 {
    margin-top: 0;
    border-bottom: 2px solid #b86bff;
    font-size: 1.25em;
    color: lime;
    padding-bottom: 10px;
    text-align: center;
    width: 100%;
}

/* Container for the user list */
#onlineUsers {
    margin-top: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Individual user entry */
.user {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(255,255,255,0.4);
    left: 0;
    right: 0;
}

.user:last-child {
    margin-bottom: 0;
}

.user-icon {
    font-size: 20px;
    margin-right: 20px;
    color: #b86bff;
}

.user-name {
    font-weight: bold;
    color: #fff;
    margin-right: 50px;
}

/* Button styling */
.user button {
    background-color: #03117c;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.875em;
    border-radius: 5px;
    margin-right: 30px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.user button:hover {
    background-color: #0056b3;
}

.user button i {
    margin-right: 5px;
}

.user .file-icon, .user .image-icon, .user .message-icon {
    font-size: 18px;
    color: #b86bff;
    cursor: pointer;
    margin-right: 30px;
    transition: color 0.3s;
}

.user .file-icon:hover, .user .image-icon:hover, .user .message-icon:hover {
    color: #fff;
}

/* Responsive design for small screens */
@media (max-width: 768px) {
    .user button span {
        display: none;
    }

    .user button {
        background-color: transparent;
        padding: 0;
    }

    .user button i {
        font-size: 18px;
        color: gold;
    }

    .user button:hover i {
        color: #fff;
    }
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(192, 160, 122, 0), rgba(192, 160, 122, 0.75), rgba(192, 160, 122, 0));
    margin: 10px 0;
    width: 100%;
}

.private-message {
    border: 2px solid #ff4444;
    background-color: rgba(255, 68, 68, 0.1);
}

.dm-badge {
    background-color: #ff4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    margin-left: 10px;
}

.dm-badge i {
    margin-right: 4px;
}