/* Light SBOM Dashboard Styles */

:root {
    --primary: #007acc;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-300: #dadce0;
    --gray-600: #5f6368;
    --gray-800: #3c4043;
    --gray-900: #202124;
    --border: #e8eaed;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --radius: 6px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray-800);
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Banner */
.hero-banner {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 100%;
}

.octobus-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.banner-image {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 100px);
    height: 80px;
    object-fit: contain;
    object-position: left center;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    flex-shrink: 0;
}

.company-logo {
    height: 180px;
    width: auto;
    object-fit: contain;
}

.header-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.header-info {
    flex: 1;
}

.header-info h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.header-info h1 i {
    color: var(--primary);
}

.header-components {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    min-width: 200px;
    max-width: 240px;
}

.header-components h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.components-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.component-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    line-height: 1.3;
}

.component-label {
    font-weight: 500;
    color: var(--gray-600);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.component-label i {
    color: var(--primary);
    font-size: 10px;
}

.component-value {
    text-align: right;
    color: var(--gray-900);
    font-weight: 600;
}

.header-metadata {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    min-width: 280px;
    max-width: 320px;
}

.header-metadata h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.metadata-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metadata-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    line-height: 1.3;
}

.metadata-label {
    font-weight: 500;
    color: var(--gray-600);
    flex-shrink: 0;
}

.metadata-value {
    text-align: right;
    color: var(--gray-900);
    word-break: break-word;
    flex: 1;
    margin-left: 8px;
}

.namespace-value {
    cursor: pointer;
    position: relative;
}

.namespace-value.expanded {
    white-space: normal;
}

.namespace-value.collapsed {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.namespace-expand {
    color: var(--primary);
    font-size: 10px;
    margin-left: 4px;
    cursor: pointer;
}

.header-stats {
    font-size: 12px;
    color: var(--gray-600);
}

.loaded-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
}

.loaded-file-label {
    color: var(--gray-600);
    font-weight: 500;
}

.loaded-file-info .file-status {
    color: var(--gray-600);
    font-weight: 500;
    font-style: italic;
}

.optimized-badge {
    background: #34a853;
    color: white;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

/* Navigation */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(0, 122, 204, 0.1);
}

.nav-shortcuts {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.nav-shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.nav-shortcut:hover {
    background: var(--primary);
    color: white;
}

.nav-shortcuts {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.nav-shortcut {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.nav-shortcut:hover {
    background: var(--primary);
    color: white;
}

.file-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 16px;
}

.load-file-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.load-file-btn:hover {
    background: #0066cc;
    box-shadow: 0 2px 4px rgba(0, 122, 204, 0.3);
}

.load-file-btn i {
    font-size: 11px;
}

.drop-file-btn {
    background: #5C4D7D;
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.drop-file-btn:hover {
    background: #4a3d66;
    box-shadow: 0 2px 4px rgba(92, 77, 125, 0.3);
}

.drop-file-btn i {
    font-size: 11px;
}

.create-pdf-btn {
    background: #dc3545;
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.create-pdf-btn:hover:not(:disabled) {
    background: #c82333;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.create-pdf-btn:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    opacity: 0.6;
}

.create-pdf-btn i {
    font-size: 11px;
}

.load-sample-btn {
    background: #17a2b8;
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.load-sample-btn:hover {
    background: #138496;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

.load-sample-btn i {
    font-size: 11px;
}

/* Drop File Overlay */
.drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(92, 77, 125, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drop-overlay.active {
    display: flex;
    opacity: 1;
}

.drop-overlay-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.drop-overlay-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-overlay-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.drop-zone {
    background: rgba(255,255,255,0.1);
    border: 3px dashed rgba(255,255,255,0.5);
    border-radius: 20px;
    padding: 60px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover,
.drop-zone.drag-over {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.8);
    transform: scale(1.02);
}

.drop-zone.drag-over {
    border-color: #34a853;
    background: rgba(52, 168, 83, 0.2);
}

.drop-zone-content {
    pointer-events: none;
}

.drop-zone-icon {
    font-size: 72px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    display: block;
}

.drop-zone h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.drop-zone p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
}

.drop-zone-hint {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.drop-zone-status {
    margin-top: 20px;
    font-size: 14px;
    color: white;
    min-height: 24px;
}

.drop-zone-status.error {
    color: #ff6b6b;
}

.drop-zone-status.success {
    color: #34a853;
}

.drop-zone-status .spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.file-status {
    font-size: 11px;
    color: var(--gray-600);
    font-weight: 500;
    white-space: nowrap;
}

.search-box {
    margin-left: auto;
    position: relative;
}

.search-box input {
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    width: 200px;
    background: var(--white);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.search-box input:disabled {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
    font-size: 12px;
}

/* Inline search box for filters row */
.search-box-inline {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box-inline input {
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    width: 200px;
    background: var(--white);
    transition: var(--transition);
}

.search-box-inline input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

.search-box-inline input:disabled {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
}

.search-box-inline i {
    position: absolute;
    left: 10px;
    color: var(--gray-600);
    font-size: 12px;
    pointer-events: none;
}

/* Main Content */
.main {
    padding: 20px 0;
}

.section {
    margin-bottom: 24px;
}

.section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skip-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.skip-link:hover {
    background: var(--primary);
    color: white;
}

/* Overview Grid - Dynamic Width */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    width: 100%;
    justify-items: stretch;
    align-items: start;
}

/* Responsive grid that adapts to zoom and screen size */
@media (max-width: 767px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    .overview-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.overview-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    height: 280px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.overview-card h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.overview-card canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 250px;
    flex: 1;
}

.supplier-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.supplier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 12px;
}

.supplier-name {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-count {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
}

.supplier-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.supplier-show-more:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.supplier-show-more i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.supplier-show-more:hover i {
    transform: translateY(1px);
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span:first-child {
    font-weight: 500;
    color: var(--gray-600);
    flex-shrink: 0;
}

.detail-row span:last-child {
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

.filters select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 12px;
    background: var(--white);
    min-width: 120px;
    transition: var(--transition);
}

.filters select#license-filter {
    max-width: 200px;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Packages List */
.packages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.package-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.package-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-color: var(--primary);
}


.package-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.package-version {
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.package-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

.package-license {
    color: #34a853;
    font-weight: 500;
}

.package-supplier {
    color: var(--gray-600);
}

.package-type {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(0, 122, 204, 0.1);
    color: var(--primary);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    margin-top: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.pagination button {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 12px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.category-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
}

.category-card p {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

.category-count {
    margin-top: 10px;
    padding: 4px 10px;
    background: rgba(0, 122, 204, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* Use Cases Grid */
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.usecase-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.usecase-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.usecase-card h4 i {
    color: var(--primary);
    font-size: 16px;
}

.usecase-card p {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Licenses Grid */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.license-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 120px; /* Fixed height for all boxes */
    overflow: hidden;
}

.license-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.license-item.expanded {
    height: auto; /* Allow expansion when needed */
}

.license-content {
    padding: 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.license-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    padding: 8px 12px;
    text-align: center;
}

.license-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.3;
    word-break: break-word;
    min-height: 2.6em; /* Ensure consistent height */
}

.license-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
}

.license-expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 12px;
}

.license-expand-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.license-menu-container {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.license-menu-container .license-expand-btn {
    position: static;
}

.license-hamburger {
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 3px;
    border-radius: 3px;
    transition: var(--transition);
    background: transparent;
}

.license-hamburger:hover {
    background: var(--gray-200);
}

.license-hamburger-line {
    width: 12px;
    height: 2px;
    background: var(--gray-600);
    margin: 1.5px 0;
    border-radius: 1px;
    transition: var(--transition);
}

.license-hamburger:hover .license-hamburger-line {
    background: var(--primary);
}

.license-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.license-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.license-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.license-dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.license-dropdown-item i {
    font-size: 12px;
    color: var(--primary);
}

.license-percentage {
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    max-width: 300px;
    width: 90%;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* File input responsive */
@media (max-width: 768px) {
    .file-input-container {
        flex-direction: column;
        gap: 8px;
        margin-right: 8px;
        align-items: flex-start;
    }

    .file-status {
        font-size: 10px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .header-main {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .header-components {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .header-metadata {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .nav {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .search-box {
        margin-left: 0;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .packages-list {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filters select {
        min-width: 100px;
        flex: 1;
    }

    .filters select#license-filter {
        max-width: none;
        flex: 2;
    }

    .pagination {
        flex-direction: column;
        gap: 8px;
    }
}

/* Footer */
.footer {
    background: var(--gray-100);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-text {
    text-align: right;
    font-size: 12px;
    color: var(--gray-600);
}

.footer-text p {
    margin: 2px 0;
}

/* Hamburger Menu and Expanded Package Details */
.package-card.expanded {
    max-height: none;
    animation: expand-card 0.3s ease-out;
}

.package-card.collapsed {
    max-height: 120px;
    overflow: hidden;
}

@keyframes expand-card {
    from {
        max-height: 120px;
        opacity: 0.8;
    }
    to {
        max-height: 1000px;
        opacity: 1;
    }
}

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

.package-title-section {
    flex: 1;
}

.hamburger-menu {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
    background: var(--gray-100);
    border: 1px solid var(--border);
}

.hamburger-menu:hover {
    background: var(--gray-200);
    border-color: var(--primary);
}

.hamburger-menu.active {
    background: var(--primary);
    border-color: var(--primary);
}

.hamburger-menu .hamburger-line {
    width: 14px;
    height: 2px;
    background: var(--gray-600);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

.hamburger-menu.active .hamburger-line {
    background: white;
}

.package-details {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    animation: fade-in 0.3s ease-out;
}

.package-details.expanded {
    display: block;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-section {
    margin-bottom: 16px;
}

.details-section:last-child {
    margin-bottom: 0;
}

.details-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-section h4 i {
    color: var(--primary);
    font-size: 12px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 11px;
    border-bottom: 1px solid var(--gray-200);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: var(--gray-600);
    flex-shrink: 0;
}

.detail-value {
    text-align: right;
    color: var(--gray-900);
    word-break: break-word;
    flex: 1;
    margin-left: 8px;
}

.package-description {
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--gray-700);
}

.description-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-600);
    font-style: italic;
}

.description-loading i {
    animation: spin 1s linear infinite;
}

.description-error {
    color: #ea4335;
    font-style: italic;
}

/* Responsive adjustments for expanded cards */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .detail-value {
        text-align: left;
        margin-left: 0;
    }
}
