/* ═══════════════════════════════════════════════════
   Auto-Summary Bar (Phase 2.1)
   Shown at top of chat when opening a conversation
   ═══════════════════════════════════════════════════ */

.auto-summary-bar {
    display: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0;
    animation: summarySlideDown 0.25s ease;
}

@keyframes summarySlideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0;
    }

    to {
        opacity: 1;
        max-height: 200px;
    }
}

.summary-bar-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
}

.summary-bar-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.summary-bar-text {
    flex: 1;
    font-size: 12px;
    line-height: 1.5;
    color: #b8bcc8;
    max-height: 80px;
    overflow-y: auto;
}

.summary-bar-close {
    background: none;
    border: none;
    color: #6b7085;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.15s;
}

.summary-bar-close:hover {
    color: #e4e6eb;
    background: rgba(255, 255, 255, 0.08);
}

/* ── AI Suggestion Bar (chips above input) ────── */
.ai-suggest-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.06);
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    overflow-x: auto;
    scrollbar-width: none;
}

.ai-suggest-bar::-webkit-scrollbar {
    display: none;
}

.ai-suggest-chips {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.ai-suggest-chips::-webkit-scrollbar {
    display: none;
}

.ai-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    color: #c4b5fd;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ai-chip:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #e0d6ff;
    border-color: rgba(99, 102, 241, 0.4);
}

.ai-chip-other {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #9ca3af;
}

.ai-chip-other:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #d1d5db;
}

.ai-suggest-close {
    background: none;
    border: none;
    color: #6b7085;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.ai-suggest-close:hover {
    color: #e4e6eb;
    background: rgba(255, 255, 255, 0.08);
}