/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.2rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: #333;
}



/* Main Content */
.main {
    padding: 2rem 0;
    min-height: 200px;
}

.main-content {
    padding: 2rem 0;
    min-height: 200px;
}

.packages-section {
    margin-top: 1rem;
}

.packages-list, .version-list, .file-list {
    max-width: 1000px;
    margin: 0 auto;
}

.packages-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Packages list alignment with breadcrumb */
.packages-list {
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Table header */
.table-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.3rem 1.2rem;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 400;
    font-size: 0.85rem;
    color: #495057;
    text-transform: none;
    letter-spacing: 0.5px;
}

.table-header .header-name {
    text-align: left;
}

.table-header .header-size {
    text-align: right;
    min-width: 80px;
}

.table-header .header-date {
    text-align: right;
    min-width: 180px;
}

/* File listing style (Camunda-like) */
.file-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: background-color 0.2s ease;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background-color: #f8f9fa;
}

.file-name {
    font-size: 1rem;
    font-weight: 400;
}

.file-name a {
    color: #0066cc;
    text-decoration: none;
    font-weight: normal;
}

.file-name a:hover {
    text-decoration: underline;
}

.file-size {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    min-width: 80px;
    font-weight: normal;
}

.file-date {
    font-size: 0.85rem;
    color: #666;
    text-align: right;
    min-width: 180px;
    font-weight: normal;
}

/* Breadcrumb */
.breadcrumb {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #333;
    padding: 1rem 1.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #e9ecef;
}

/* All breadcrumbs should have consistent top margin */
.packages-list .breadcrumb,
#breadcrumb,
#breadcrumbFiles {
    margin-top: 1rem;
}

/* All breadcrumbs should have consistent width */
#breadcrumb, #breadcrumbFiles, #breadcrumbPackages {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.breadcrumb a {
    color: #0d6efd;
    text-decoration: none;
    cursor: pointer;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

.versions, .files {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

/* Table Structure */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    table-layout: fixed;
    margin-top: 0;
}

.data-table th:nth-child(1),
.data-table td:nth-child(1) {
    width: 70%;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 15%;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
    width: 15%;
}

/* Files table specific layout (4 columns) */
.files-table th:nth-child(1),
.files-table td:nth-child(1) {
    width: 55%;
}

.files-table th:nth-child(2),
.files-table td:nth-child(2) {
    width: 15%;
    text-align: center;
}

.files-table th:nth-child(3),
.files-table td:nth-child(3) {
    width: 15%;
}

.files-table th:nth-child(4),
.files-table td:nth-child(4) {
    width: 15%;
}

.data-table thead {
    background-color: #f8f9fa;
}

.data-table th,
.data-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    font-weight: 700;
    color: #495057;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-name {
    font-weight: 500;
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
}

.table-name:hover {
    text-decoration: underline;
}

.table-size,
.table-date {
    color: #6c757d;
    font-size: 0.85rem;
}



/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
    color: #6b7280;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}





/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    

    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .header {
        padding: 1rem 0;
    }
}

/* Version badges */
.version-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
}

.version-badge.beta {
    background-color: #f59e0b;
    color: white;
}

.version-badge.alpha {
    background-color: #ef4444;
    color: white;
}

/* File type indicator */
.file-type {
    display: inline-block;
    padding: 3px 8px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

.table-type {
    text-align: center !important;
}

/* Breadcrumb style updated */
.breadcrumb {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #333;
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px 8px 0 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #e9ecef;
}

/* Home icon styling for breadcrumb */
.breadcrumb .home-icon {
    font-size: 1rem;
    color: #0066cc;
    font-weight: 900;
    transition: color 0.2s ease;
}

.breadcrumb .home-icon:hover {
    color: #004499;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.package-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.package-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.package-title a:hover {
    color: #0066cc;
}

.package-category {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-category.framework {
    background-color: #e3f2fd;
    color: #1976d2;
}

.package-category.library {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.package-category.tool {
    background-color: #e8f5e8;
    color: #388e3c;
}

.package-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.package-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.package-version {
    font-weight: 600;
    color: #0066cc;
}

.package-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid #dee2e6;
}

/* Version Cards */
.version-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef;
}

.version-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.version-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.version-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.version-title a:hover {
    color: #0066cc;
}

.version-date {
    color: #6c757d;
    font-size: 0.875rem;
}

.version-files {
    color: #666;
    font-size: 0.875rem;
}

.file-count {
    font-weight: 500;
}

/* File Cards */
.file-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.file-icon {
    font-size: 2rem;
    color: #0066cc;
    min-width: 3rem;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.file-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.file-size {
    font-weight: 500;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.download-btn {
    background-color: #0066cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #0056b3;
    color: white;
}

.download-btn i {
    font-size: 0.875rem;
}

/* Section Titles */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}