/* Chat history view + transcript dialog styles.
   Активниот chat е во floating widget (separate стилови во chat-widget.css). */

/* KPI cards на /chat */
.chat-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.chat-kpi {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--rz-base-300, #e0e0e0);
    border-radius: 8px;
}
.chat-kpi .material-icons {
    font-size: 32px;
}
.chat-kpi-value {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}
.chat-kpi-label {
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
    margin-top: 4px;
}

/* Transcript dialog (read-only past conversation) */
.chat-transcript-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0.75rem;
    background: var(--rz-base-50, #f7f7f7);
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.chat-transcript {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 65vh;
    overflow-y: auto;
    padding: 0.5rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    position: relative;
    word-wrap: break-word;
}
.chat-bubble--user {
    align-self: flex-end;
    background: var(--rz-primary, #0078d4);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-bubble--ai {
    align-self: flex-start;
    background: var(--rz-base-100, #f0f0f0);
    border-bottom-left-radius: 4px;
}
.chat-bubble-meta {
    font-size: 0.7rem;
    opacity: 0.75;
    margin-bottom: 4px;
}
.chat-bubble-content {
    white-space: pre-wrap;
}
.chat-bubble-tools {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.chat-tool-pill {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.25);
    padding: 2px 6px;
    border-radius: 10px;
    cursor: help;
}
.chat-bubble--ai .chat-tool-pill {
    background: rgba(0,0,0,0.08);
}
