@media (min-width: 768px) {
    .messages-container, .thread-container {
        height: 100%;
        min-height: 65vh;
        max-height: 65vh;
        overflow: auto;
    }
}

@media (max-width: 768px) {
    .thread-container {
        max-height: 300px;
        overflow: auto;
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 10px;
    }

    .messages-container {
        overflow: auto;
        max-height: 400px;
        border-top: 4px solid #e9ecef;
    }
}

.messages-container {
    border-left: 1px solid #e9ecef;
}

.thread-container a {
    height: fit-content;
}

.thread {
    font-size: 15px;
}

.thread.active {
    background-color: #f1f1f0;
}

.message {
    font-size: 15px;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
}

.message p {
    margin: 0 !important;
}

.created-at {
    font-size: 11px;
    color: #6c757d;
    text-align: right;
    display: block;
}

.assistant-message {
    background-color: #f1f1f0;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.user-message {
    background-color: black;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}