/* ─── Prior Search Animation ─────────────────────────────────────────────── */

.psearch-win {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    background: #0d0f14;
    border: 1px solid rgba(0, 255, 204, 0.25);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    box-shadow: 0 0 18px rgba(0, 255, 204, 0.07), 0 2px 12px rgba(0,0,0,0.4);
    animation: psearch-slide-in 0.25s ease;
}

@keyframes psearch-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.psearch-fade-out {
    animation: psearch-fade 0.38s ease forwards;
}

@keyframes psearch-fade {
    to { opacity: 0; transform: translateY(-4px); max-height: 0; margin: 0; padding: 0; }
}

/* ── Title bar ── */
.psearch-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.75rem;
    background: #13161e;
    border-bottom: 1px solid rgba(0, 255, 204, 0.12);
    user-select: none;
}

.psearch-dots {
    display: flex;
    gap: 5px;
    margin-right: 4px;
}

.psearch-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.psearch-dot.red    { background: #ff5f57; }
.psearch-dot.yellow { background: #febc2e; }
.psearch-dot.green  { background: #28c840; }

.psearch-title {
    flex: 1;
    color: rgba(255,255,255,0.55);
    font-size: 0.73rem;
    letter-spacing: 0.03em;
}

.psearch-status {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

.psearch-blink {
    animation: psearch-blink 0.9s step-start infinite;
    color: #febc2e;
}
@keyframes psearch-blink {
    50% { opacity: 0; }
}

.psearch-connected {
    color: #28c840;
}

/* ── Log area ── */
.psearch-log {
    padding: 0.55rem 0.85rem 0.6rem;
    max-height: 140px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,204,0.15) transparent;
}

.psearch-log::-webkit-scrollbar       { width: 3px; }
.psearch-log::-webkit-scrollbar-thumb { background: rgba(0,255,204,0.2); border-radius: 2px; }

/* ── Log lines ── */
.psearch-line {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    color: rgba(0, 255, 204, 0.82);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    animation: psearch-row-in 0.12s ease;
}

@keyframes psearch-row-in {
    from { opacity: 0; transform: translateX(-4px); }
    to   { opacity: 1; transform: translateX(0); }
}

.psearch-prefix {
    color: rgba(0, 255, 204, 0.35);
    flex-shrink: 0;
}

.psearch-dim   { color: rgba(255,255,255,0.38); }
.psearch-query { color: #8de0fc; }
.psearch-ok    { color: #28c840; }
.psearch-result-line { color: rgba(255,255,255,0.62); }
.psearch-result-url  { color: rgba(0, 255, 204, 0.45); font-size: 0.72rem; }

.psearch-done {
    color: #28c840;
    margin-top: 3px;
    font-weight: 600;
    padding-left: 1.1rem;
}
