/*.chat-message {*/
/*    font-size: .85em;*/
/*}*/

@keyframes typing-dots {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.typing-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    animation: typing-dots 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-control {
    border-radius: 50%;
    width: 2em;
    height: 2em;
    border: 1px solid;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border-width .1s;
}
.chat-control:hover {
    border-width: 2px;
    cursor: pointer;
}

.chat-control.start {
   /*color: var(--bs-text-primary);*/
   color: var(--bs-success);
}

.chat-control.stop{
   /* color: var(--bs-text-danger);*/
    color: #ff7194;
}
.chat-controls-container:not(.stopped) .chat-control.start{
    display: none;
}
.chat-controls-container.stopped .chat-control.stop{
    display: none;
}

.chat-container:not(.chat-active) .chat-form{
    display: none;
}

.thread-contact .delete-contact{
    position: absolute;
    top: .5em;
    left: -.5em;
    border-radius: 50%;
}

.thread-contact {
    transition: transform 0.4s ease, opacity 0.4s ease, height 0.4s;
}

.thread-contact.removing {
    transform: translateX(100%);
    margin: 0;
    overflow: hidden;
}