/* === CHAT TYPING INDICATOR === */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 8px 0;
    max-width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: typing-fade-in 0.3s ease;
}

@keyframes typing-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator-label {
    font-style: italic;
}

.typing-indicator-label strong {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary, #3b82f6);
    opacity: 0.4;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.typing-cancel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 3px 9px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.72rem;
    font-family: inherit;
    margin-left: 4px;
    transition: all 0.15s;
}

.typing-cancel-btn:hover {
    background: rgba(239,68,68,0.15);
    border-color: #ef4444;
    color: #ef4444;
}

/* === RECENT CHATS LIST (Empty-State) === */
.recent-chats-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.recent-chats-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.recent-chats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.recent-chat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: inherit;
    color: var(--text);
    width: 100%;
}
.recent-chat-card:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--surface), rgba(59,130,246,0.05));
    transform: translateY(-1px);
}

.recent-chat-card-info {
    flex: 1;
    min-width: 0;
}

.recent-chat-card-name {
    font-size: 0.85rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-chat-card-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-chat-card-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    font-size: 0.85rem;
}
.recent-chat-card:hover .recent-chat-card-remove {
    opacity: 1;
}
.recent-chat-card-remove:hover {
    color: #ef4444;
    background: rgba(239,68,68,0.1);
}