/* 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 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;
}

/* Vulnerability Table Column Widths */
.vulnerability-table .column-tech {
    width: 45%;
    min-width: 45%;
}

.vulnerability-table .column-cve {
    width: 20%;
    min-width: 20%;
}

.vulnerability-table .column-cwe {
    width: 15%;
    min-width: 15%;
}

.vulnerability-table .column-severity {
    width: 20%;
    min-width: 20%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vulnerability-table .column-tech {
        width: 100%;
        min-width: auto;
    }

    .vulnerability-table .column-cve,
    .vulnerability-table .column-cwe,
    .vulnerability-table .column-severity {
        width: 33.33%;
        min-width: auto;
    }
}

/* Vulnerability Detail Page Styles */
.vulnerability-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.vulnerability-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.vulnerability-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.detail-section p {
    line-height: 1.5;
    color: #101820;
}

.reference-links {
    list-style: none;
    padding: 0;
}

.reference-links li {
    margin-bottom: 8px;
}

.reference-links a {
    color: #007cba;
    text-decoration: none;
}

.reference-links a:hover {
    text-decoration: underline;
}

.classification-boxes {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.classification-box {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-align: center;
    word-break: break-all;
	white-space: inherit;
}

.cve-box { background-color: #5bc0de; }
.cwe-box { background-color: #5bc0de; }
.cvss-box { background-color: #5bc0de; }
.cvss4-box { background-color: #d9534f; }

.classification-box a {
    color: #ffffff !important;
    text-decoration: none;
}

.classification-box a:hover {
    text-decoration: none;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-box {
    background-color: #5bc0de;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.tag-box a {
    color: #ffffff !important;
    text-decoration: none;
}

.tag-box a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .vulnerability-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Related Vulnerabilities Styles */
.related-vulnerabilities {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-vulnerability-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

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

.related-vulnerability-title {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
}

.related-vulnerability-header span {
    font-size: 14px !important;
	margin-right: 0px !important;
}

.common-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.common-tags-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    margin-right: 5px;
}

.common-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* References Styles */
.references-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reference-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.reference-content {
    padding: 12px 16px;
}

.reference-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.reference-icon {
    display: flex;
    align-items: center;
    color: #6c757d;
    flex-shrink: 0;
}

.reference-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
}

/* Page Header Section Styles */
.page-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 40px 0 0;
    gap: 10px;
    border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	border-bottom: 2px solid #5d40bd;
    position: relative;
	margin-bottom: 20px;
}

.left-navigation {
    display: flex;
    gap: 0;
    background: #fff;
    border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	margin-left: 10px;
	gap: 10px;
}

body.vdb .content .nav-link {
    display: inline-block;
    padding: 12px 20px;
    text-decoration: none;
    color: #5d40bd;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
	border: 1px solid #5d40bd;
	background: #f7f7f7;
    font-size: 14px;
	text-align: center;
	margin-bottom: 5px;
}

body.vdb .content .nav-link:hover {
    background: #5d40bd;
    color: #fff;
}

body.vdb .content .nav-link.active {
    background: #5d40bd;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
	border-bottom: 0;
	margin-bottom: 0;
	margin-top: -5px;
	padding-top: 18px;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border: 0;
}

.right-legacy-info {
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-size: 13px;
    color: #6c757d;
    text-align: right;
	margin-bottom: 10px;
}

.legacy-text {
    color: #6c757d;
    line-height: 1.5;
	text-align: center;
}

.legacy-links {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.legacy-link {
    color: #5d40bd;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
}

.legacy-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.legacy-icon {
    display: flex;
    align-items: center;
    color: #6c757d;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .page-header-section {
        gap: 10px;
    }

    .right-legacy-info {
        gap: 3px;
    }

    .legacy-links {
        gap: 10px;
		flex-direction: row;
    }
}

@media (max-width: 991px) {
    .legacy-links {
        gap: 9px;
		flex-direction: row;
    }
}

@media (max-width: 991px) {
    .page-header-section {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: center;
        padding: 25px 0 0;
        margin: 15px 0 0 0;
    }

    .nav-link {
        width: 50%;
        min-width: 200px;
    }

    .left-navigation {
        width: 100%;
        justify-content: center;
		margin-left: 0;
    }

    .right-legacy-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        width: 100%;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .legacy-text {
        font-weight: 500;
        color: #495057;
    }

    .legacy-links {
        justify-content: center;
        flex-direction: row;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-header-section {
        gap: 20px;
        padding: 20px 0px;
        margin: 10px 0 0px 0;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    .left-navigation {
        flex-direction: column;
        width: 100%;
    }

    .right-legacy-info {
        padding: 10px;
    }

    .legacy-links {
        justify-content: center;
        flex-direction: column;
        gap: 3px;
    }
}
