/* Wrapper styling */
.pdf-search-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 20px auto;
    width: 100%;
}

/* Search input with thicker gradient border and black text */
#pdf-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: #000;
    border: 4px solid transparent;
    border-radius: 10px;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg, #0073aa, #f1c40f, #8e5c2c);
    transition: box-shadow 0.3s ease;
    outline: none;
}

/* Suggestions */
.pdf-search-suggestions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.pdf-search-suggestion {
    background-color: #eaf5ff;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    border: none;
}

.pdf-search-suggestion:hover {
    background-color: #d1ecff;
}

/* Loading spinner - centered */
.loading-spinner {
    display: none;
    width: 30px;
    height: 30px;
    border: 3px solid #ccc;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result area */
#pdf-search-results {
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Individual result card */
.pdf-result-card {
    background: #f7f9fb;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
    width: 100%;
}

.pdf-result-card:hover {
    background: #eaf5ff;
}

.pdf-result-card a {
    color: #005177;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
}

.no-result {
    color: #999;
    font-style: italic;
    text-align: center;
}
