/* Search Component Styles */

/* Search Results */
.result-item {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.result-item:hover {
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
    border-color: #1e40af;
}

.result-content {
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 0.9rem;
}

.record-match-info {
    background: #f0f4ff;
    border: 1px solid #e0e8ff;
    padding: 0.75rem;
    margin: 0.75rem 0;
    color: #1e40af;
    font-size: 0.9rem;
}

.record-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
}

.record-link:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-left: 0.5rem;
}

.badge.success {
    background: #28a745;
}

.badge.warning {
    background: #ffc107;
    color: #212529;
}

/* Pagination */
.pagination-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
    display: inline-block;
}

.pagination-btn:hover {
    background: #f8f9fa;
    border-color: #1e40af;
    color: #1e40af;
    text-decoration: none;
}

.pagination-btn.active {
    background: #1e40af;
    border-color: #1e40af;
    color: white;
}

.pagination-btn.disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* Agency Filter */
.agency-filter-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    color: #333;
}

.agency-filter-input:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

.agency-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agency-dropdown-item {
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.agency-dropdown-item:hover {
    background: #f8f9fa;
}

.agency-dropdown-item:last-child {
    border-bottom: none;
}

.agency-dropdown-item.highlighted {
    background: #1e40af;
    color: white;
}

/* Matched Text Separator */
.matched-text-separator {
    display: flex;
    align-items: center;
    margin: 1rem 0 0.5rem 0;
}

.separator-line {
    flex: 1;
    height: 1px;
    background-color: #d1d5db;
}

.separator-text {
    margin: 0 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Record Skeleton Styles */
.record-skeleton {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton-header {
    padding: 2rem 0 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.skeleton-title {
    height: 2.5rem;
    background: #f0f0f0;
    margin-bottom: 1rem;
    width: 60%;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-description {
    height: 1.2rem;
    background: #f0f0f0;
    width: 80%;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-details {
    margin-bottom: 2rem;
}

.skeleton-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.skeleton-details-title {
    height: 1.5rem;
    background: #f0f0f0;
    width: 200px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-button {
    height: 2rem;
    background: #f0f0f0;
    width: 120px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.skeleton-nav-btn {
    height: 2.5rem;
    background: #f0f0f0;
    width: 150px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-content {
    padding: 1.5rem;
    background: #fafafa;
    border: 1px solid #f0f0f0;
}

.skeleton-metadata-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.skeleton-field {
    flex: 1;
    min-width: 200px;
}

.skeleton-field-full {
    flex: 100%;
}

.skeleton-label {
    height: 1rem;
    background: #f0f0f0;
    width: 80px;
    margin-bottom: 0.5rem;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-value {
    height: 1.2rem;
    background: #f0f0f0;
    width: 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skeleton-tag {
    height: 1.8rem;
    background: #f0f0f0;
    width: 80px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-pdf-reader {
    margin-top: 2rem;
    border: 1px solid #f0f0f0;
}

.skeleton-pdf-controls {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.skeleton-pdf-btn {
    height: 2.5rem;
    background: #f0f0f0;
    width: 100px;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

.skeleton-pdf-content {
    height: 500px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.skeleton-pdf-placeholder {
    width: 80%;
    height: 80%;
    background: #f0f0f0;
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: #f0f0f0;
    }
    100% {
        background-color: #e0e0e0;
    }
}

