.text-finder-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
}

.text-finder-search {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
    transition: box-shadow 0.3s ease;
}

/* Add shadow when sticky */
.text-finder-search.is-sticky {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.text-finder-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.text-finder-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    background: #fff;
}

.text-finder-input::placeholder {
    color: #a0aec0;
}

.text-finder-count {
    color: #4a5568;
    font-size: 14px;
    min-width: 100px;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-align: center;
    font-weight: 500;
}

.text-finder-count:empty {
    display: none;
}

.text-finder-content {
    position: relative;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    line-height: 1.6;
}

.text-finder-highlight {
    background-color: rgba(255, 235, 59, 0.5);
    border-radius: 2px;
    padding: 2px 1px;
    transition: background-color 0.2s ease;
}

.text-finder-highlight.active {
    background-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.4);
}

/* No results message */
.text-finder-no-results {
    color: #718096;
    font-style: italic;
    display: inline-block;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
} 