.dmselpopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    padding: 20px;
    background-color: #2c2540;
    border: 1px solid #3d3452;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow-y: auto;
    max-height: 80vh;
    border-radius: 8px;
}

.dmselpopup.active {
    display: block;
}

.dmselpopup h2 {
    margin-top: 0;
    color: #b39ddb;
}

.dm-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #3d3452;
    cursor: pointer;
}

.dm-item img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border: 2px solid #6a5c96;
}

.dm-item .info {
    display: flex;
    flex-direction: column;
}

.dm-item .info .name {
    font-weight: bold;
    color: #e0e0ff;
}

.dm-item .info .handle {
    color: #b39ddb;
}

.dm-item.disabled {
    opacity: 0.5;
    color: #72678f;
    cursor: not-allowed;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #e0e0ff;
}

button {
    background-color: #6a5c96;
    color: #e0e0ff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #836aa8;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 2px #9e7dc7;
}

.dm-item.success {
    background-color: #2e4d2e;
    border: 1px solid #4caf50;
    color: #a5d6a7;
}

.dm-item.success .info .name,
.dm-item.success .info .handle {
    color: #a5d6a7;
}

.dm-item.error {
    background-color: #4d2e2e;
    border: 1px solid #f44336;
    color: #ef9a9a;
}

.dm-item.error .info .name,
.dm-item.error .info .handle {
    color: #ef9a9a;
}

/* message send success */
.checkmark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.checkmark::after {
    content: '';
    width: 12px;
    height: 24px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    animation: checkmark 0.3s ease-in-out forwards;
    margin-top: -5px;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: scale(0) rotate(45deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }
}


/* message send failure */
.crossmark {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f44336;
    /* Red background for error */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.crossmark::before,
.crossmark::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    animation: crossmark 0.3s ease-in-out forwards;
}

/* .crossmark::before {
    transform: rotate(45deg);
}

.crossmark::after {
    transform: rotate(-45deg);
} */

@keyframes crossmark {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}