/* Search Bar */
.search-icon-container {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

#sbomSearch {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding-left: 2rem;
}

#sbomSearch:focus {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* SBOM Table */
.sbom-table-container {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.sbom-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 0.850rem;
    line-height: 1.5;
}

.sbom-table th {
    background: rgba(243, 244, 246, 0.9);
    color: #1f2937;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    font-size: 0.850rem;
}

.sbom-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.8125rem;
}

.sbom-table tr:last-child td {
    border-bottom: none;
}

.sbom-table tr:hover td {
    background: rgba(243, 244, 246, 0.5);
}

/* Package Name */
.package-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    color: #475569 !important;
    font-weight: 400 !important;
    font-size: 0.8125rem !important;
}

/* Package Version */
.package-version {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    color: #475569;
    font-size: 0.8125rem !important;
}

/* Package License */
.package-license {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important;
    color: #475569;
    word-break: break-word;
    text-transform: none;
    font-weight: 400;
    font-size: 0.8125rem !important;
}

/* Loading State */
.sbom-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6b7280;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sbom-loading::after {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.75rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .sbom-table th,
    .sbom-table td {
        padding: 0.5rem;
    }
}

/* Column widths */
.sbom-table th:nth-child(1),
.sbom-table td:nth-child(1) {
    width: 40%;
}

.sbom-table th:nth-child(2),
.sbom-table td:nth-child(2) {
    width: 25%;
}

.sbom-table th:nth-child(3),
.sbom-table td:nth-child(3) {
    width: 35%;
}

/* Header styling */
.sbom-header {
    margin-bottom: 1.5rem;
}

.sbom-header h3 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Container styling */
.sbom-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* SBOM Table Styles */
.sbom-table-container,
.vulnerabilities-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sbom-table,
.vulnerabilities-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.850rem;
}

.sbom-table th,
.vulnerabilities-table th {
    background: rgba(243, 244, 246, 0.9);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    font-size: 0.850rem;
}

.sbom-table td,
.vulnerabilities-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.850rem;
}

.sbom-table tr:last-child td,
.vulnerabilities-table tr:last-child td {
    border-bottom: none;
}

.sbom-table tr:hover td,
.vulnerabilities-table tr:hover td {
    background: rgba(243, 244, 246, 0.5);
}

/* Tab Pane Styles */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Compare Form Styles */
.compare-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.compare-form .search-bar {
    width: 100%;
    margin-bottom: 1rem;
}

/* Package name styling */
.sbom-table td:nth-child(1) {
    color: #0f172a;
}

/* Version styling */
.sbom-table td:nth-child(2) {
    color: #475569;
}

/* License styling */
.sbom-table td:nth-child(3) {
    color: #475569;
    word-break: break-word;
    text-transform: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Responsive Design */
@media (max-width: 640px) {
    .sbom-container {
        padding: 1rem;
    }
    .sbom-table th:nth-child(3),
    .sbom-table td:nth-child(3) {
        display: none;
    }
}

/* Latest Tag Badge */
.latest-badge {
    position: relative;
    overflow: hidden;
}

.latest-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
} 