body {
    font-family: Arial, sans-serif;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    table-layout: fixed;
}

.file-table th:nth-child(1),
.file-table td:nth-child(1) {
    width: 43%;
}

.file-table th:nth-child(2),
.file-table td:nth-child(2) {
    width: 12%;
    min-width: 70px;
}

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

.file-table th:nth-child(4),
.file-table td:nth-child(4) {
    width: 20%;
}

.file-table th,
.file-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-table th {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    user-select: none;
}

.file-table th:hover {
    background-color: #45a049;
}

.file-table th.sortable::after {
    content: ' ↕';
    opacity: 0.5;
}

.file-table th.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

.file-table th.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

.file-table tr:hover {
    background-color: #f5f5f5;
}

.file-link {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
}

.file-link:hover {
    text-decoration: underline;
}

.loading {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

#publishedSection, #buildingSection, #testSection {
    margin-bottom: 40px;
}

#publishedSection h2, #buildingSection h2, #testSection h2 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Responsive design for narrow screens */
@media (max-width: 768px) {
    .file-table th:nth-child(4),
    .file-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 600px) {
    .file-table th:nth-child(3),
    .file-table td:nth-child(3) {
        display: none;
    }
    
    .file-table th:nth-child(1),
    .file-table td:nth-child(1) {
        width: 75%;
    }
    
    .file-table th:nth-child(2),
    .file-table td:nth-child(2) {
        width: 25%;
    }
}

@media (max-width: 480px) {
    .file-table th:nth-child(2),
    .file-table td:nth-child(2) {
        display: none;
    }
    
    .file-table th:nth-child(1),
    .file-table td:nth-child(1) {
        width: 100%;
    }
    
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
}