
.channel-message {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0.25rem 1rem;
    background-color: transparent;
    opacity: 1;
    transition: opacity .3s linear, background-color 0.15s ease;
    gap:1rem;
}

.channel-message:hover {
    background-color: #f1f5f9;
}

.channel-message > .content{
    display: flex;
    flex-direction: column;
    width:100%;
    max-width:100%;
    background-color: transparent;
    transition: background-color 0.15s ease;
}

.channel-message > .user-icon{
    font-size:2rem;
    color:var(--accent-color);
    -webkit-text-stroke:1px #00000055;
    min-height:48px;
    min-width:48px;
    max-height:48px;
    max-width:48px;
    overflow: hidden;
    border-radius: 4px;
    display:flex;
    align-items: center;
    justify-content: center;
    border:1px solid #00000055;

}

.channel-message > .content > .header{
    display: flex;
    align-items: center;
    gap:1rem;
}

.channel-message > .controls{
    display: flex;
    margin-left:auto;
    position:relative;
    top:0;
    right:0;
}

.channel-message > .controls > button{
    padding:.5rem;
    background-color:var(--accent-color);
    opacity:0;
    pointer-events: none;
    transition: opacity .3s linear;
}

.channel-message:hover > .controls > button{

    opacity:1;
    pointer-events: all;
}

.channel-message > .controls > button:first-of-type{
    border-bottom-left-radius: 4px;
}

.channel-message > .controls > button:last-of-type{
    border-bottom-right-radius: 4px;
}

.channel-message .message-sender {
    display: flex;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    align-items: center;
}

.channel-message .message-timestamp{
    display: flex;
    color: var(--text-muted);
    font-size: .8rem;
    align-items: center;
}

.channel-message .message-text {
    display: flex;
    color: var(--text-main);
    margin-top: 0.2rem;
    line-height: 1.5;

    word-break: break-word;
    font-family: monospace;
    font-size:1rem;
}

.channel-message.system {
    background-color: var(--system-bg);
    border-top: 1px solid #fee2e2;
    border-bottom: 1px solid #fee2e2;
}

.channel-message.system .message-sender {
    color: var(--system-crimson);
}

.channel-message.self {
    display: flex;
}

.channel-message.self .message-sender {
    color: var(--self-color);
}