/* Recent Chats page styles */

/* Ensure height propagates like analyst-page */
.main-content-area > div:has(.recent-chats-page),
.main-content-area > div:has(.recent-chats-page) > .page-container {
    height: 100%;
}

.recent-chats-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

.recent-chats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-shrink: 0;
    border-bottom: 1px solid #dee2e6;
}

.recent-chats-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-chats-search-input {
    border: 1px solid #dee2e6;
    padding: 0.35rem 0.75rem;
    font-size: 0.85em;
    font-weight: 300;
    outline: none;
    border-radius: 4px;
    width: 220px;
}

.recent-chats-search-input:focus {
    border-color: #1d1d1d;
}

.recent-chats-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 3rem 1rem;
}

.recent-chats-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.recent-chat-card {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.15s;
}

.recent-chat-card:hover {
    background-color: #f8f9fa;
}

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

.recent-chat-preview {
    font-size: 0.9em;
    font-weight: 300;
    color: #1d1d1d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.recent-chat-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-chat-delete-btn {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1em;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    transition: color 0.15s;
    flex-shrink: 0;
}

.recent-chat-delete-btn:hover {
    color: #1d1d1d;
}
