@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.msg-appear {
    animation: fadeIn 0.25s ease-out;
}

#messages-container::-webkit-scrollbar {
    width: 6px;
}
#messages-container::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 3px;
}

#session-list::-webkit-scrollbar {
    width: 4px;
}
#session-list::-webkit-scrollbar-thumb {
    background: #36344d;
    border-radius: 2px;
}

textarea#message-input {
    max-height: 200px;
    overflow-y: auto;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #176BE0;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

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

input:focus, select:focus, textarea:focus {
    outline: none;
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    text-align: left;
    transition: background 0.1s;
}
.ctx-item:hover {
    background: #f2f3f6;
}

#folder-tree::-webkit-scrollbar {
    width: 4px;
}
#folder-tree::-webkit-scrollbar-thumb {
    background: #36344d;
    border-radius: 2px;
}
