/* Search styles */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.spinner {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: #3182ce;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner.active + .search-icon {
	display: none;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.result-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.result-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.result-title {
    font-size: 18px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
}

.result-reference {
    font-size: 14px;
    color: #718096;
}

.result-overview {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
}

.result-meta {
    display: flex;
    gap: 15px;
}

.result-severity,
.result-technology {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f7fafc;
}

.search-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-button {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-button:hover {
    background: #f7fafc;
}

.pagination-button.active {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #718096;
}

/* Sidebar search styles */

/* No CVEs message style */
.no-cves {
    text-align: center;
    padding: 40px;
    margin: 20px 0;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.no-cves p {
    color: #718096;
    font-size: 16px;
    margin: 0;
}
