
/* Find All panel content */
.find-all-searching-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.05);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 13px;
    color: #ffd700;
}

.find-all-searching-indicator.hidden {
    display: none !important;
}

body.light-mode .find-all-searching-indicator {
    background: rgba(139, 92, 246, 0.05);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    color: rgba(139, 92, 246, 1);
}

.find-all-spinner-small {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    animation: spin 0.8s linear infinite;
    color: #ffd700;
}

body.light-mode .find-all-spinner-small {
    color: rgba(139, 92, 246, 1);
}

.find-all-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.find-all-list.hidden {
    display: none !important;
}

.find-all-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    color: #a0aec0;
    gap: 16px;
}

.find-all-loading p {
    font-size: 14px;
    font-weight: 500;
}

.find-all-loading.hidden {
    display: none !important;
}

body.light-mode .find-all-loading {
    color: #64748b;
}

/* Book group container */
.find-all-book-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.find-all-book-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .find-all-book-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.find-all-book-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.light-mode .find-all-book-name {
    color: #1e1b4b;
}

.find-all-book-count {
    font-size: 11px;
    color: #a0aec0;
    flex-shrink: 0;
}

body.light-mode .find-all-book-count {
    color: #64748b;
}

/* Pages under a book group */
.find-all-pages {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 8px;
}

/* Individual result item */
.find-all-result-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--book-accent, #ffd700);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.find-all-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.find-all-result-item.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

body.light-mode .find-all-result-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .find-all-result-item:hover {
    background: #ffffff;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

body.light-mode .find-all-result-item.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Context snippet inside each result */
.find-all-context {
    font-size: 11px !important;
    line-height: 1.4;
    margin-top: 4px;
    color: #a0aec0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.light-mode .find-all-context {
    color: #64748b;
}

.find-all-context mark {
    background: rgba(255, 215, 0, 0.3);
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
}

body.light-mode .find-all-context mark {
    background: rgba(139, 92, 246, 0.2);
}
