/* ===============================
   チャンク検索プログレスバー
   =============================== */
.search-progress-wrap {
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-top: 10px;
}

.search-progress-label {
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 500;
}

.search-progress-bar-outer {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.search-progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 99px;
    transition: width 0.2s ease;
    background-size: 200% 100%;
    animation: search-shimmer 1.2s infinite linear;
}

@keyframes search-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* キャンセルボタン */
#search-cancel-btn {
    font-size: 12px !important;
    padding: 4px 10px !important;
}

/* エラーメッセージ */
.search-error {
    color: #ef4444;
    font-size: 13px;
    padding: 8px;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* 一致行ハイライト */
.matched-lines mark {
    background: #fef08a;
    color: #1e293b;
    border-radius: 2px;
    padding: 0 2px;
}

/* 結果アイテムのファイル名 省略表示 */
.search-result-item h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    display: inline-block;
    vertical-align: bottom;
}

/* 絞り込み中バナー */
.filtered-view-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
