/* MiniProf v6.0 — styles additifs (stabilité, streaming, status indicator, search) */

.message.error .message-content {
    border-left: 4px solid #ef4444;
    background: rgba(254, 226, 226, 0.5);
}

.mp-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.4rem 0.9rem;
    background: var(--blue, #007aff);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}
.mp-retry-btn:hover { transform: translateY(-1px); background: #0066d6; }
.mp-retry-btn:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.4);
    outline-offset: 2px;
}

.message.streaming .message-content::after {
    content: "▋";
    margin-left: 2px;
    color: #888;
    animation: mp-blink 0.9s steps(2, start) infinite;
}
@keyframes mp-blink { to { visibility: hidden; } }

#mp-backend-status {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 9999;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.2;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: opacity 0.25s ease;
}
#mp-backend-status.visible { display: inline-flex; }
#mp-backend-status .mp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}
#mp-backend-status[data-status="warming"] .mp-dot { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }
#mp-backend-status[data-status="down"] .mp-dot { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.7); }

.mp-history-search {
    margin: 0.5rem 0.75rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.mp-history-search input {
    flex: 1;
    padding: 0.45rem 0.75rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--white-glass-strong, rgba(255, 255, 255, 0.85));
    font-size: 0.9rem;
}
.mp-history-search input:focus-visible {
    outline: 2px solid var(--blue, #007aff);
    outline-offset: 1px;
}

.mp-hidden-by-search { display: none !important; }
