/* chat-features.css */

/* Styling for the Pinned and Archived sections */
.chat-group-header {
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px 4px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.chat-group-header:first-child {
    border-top: none;
    margin-top: 0;
}

/* Pinned Chat Item Styling */
.chat-item.pinned {
    background-color: rgba(0, 123, 255, 0.05);
    border-left: 3px solid var(--accent-blue);
    font-weight: 500;
}

.chat-item.pinned .chat-item-text::before {
    content: '📌';
    margin-right: 6px;
}

/* Archived Chats Section (Collapsible) */
#archived-chats-section {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
}

.archived-chats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #f8f9fa;
}

.archived-chats-header:hover {
    background-color: #e9ecef;
}

.archived-chats-title {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
}

.archived-chats-arrow {
    transition: transform 0.2s ease;
}

#archived-chats-container.collapsed .archived-chats-arrow {
    transform: rotate(-90deg);
}

#archived-chats-list {
    max-height: 300px;
    overflow-y: auto;
    display: block;
}

#archived-chats-container.collapsed #archived-chats-list {
    display: none;
}

/* Options in the chat item dropdown */
.chat-options-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.chat-options-menu button:hover {
    background-color: #f1f1f1;
}
