* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Downloads Section */
.downloads-section {
    padding: 4rem 0;
}

.downloads-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2d3748;
}

/* Directory Table Styles */
.directory-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.directory-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.directory-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.directory-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.directory-table tbody tr:hover {
    background-color: #f8fafc;
}

.directory-table tbody tr:last-child {
    border-bottom: none;
}

.directory-table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Column Widths */
.file-icon-col {
    width: 60px;
}

.file-name-col {
    width: 40%;
}

.file-size-col {
    width: 100px;
}

.file-type-col {
    width: 80px;
}

.file-actions-col {
    width: 180px;
}

/* File Icon */
.file-icon {
    text-align: center;
    color: #667eea;
    font-size: 1.5rem;
}

/* File Name */
.file-name-wrapper strong {
    display: block;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.file-description {
    color: #718096;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* File Size */
.file-size {
    font-weight: 500;
    color: #4a5568;
}

/* Type Badges */
.type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.dll {
    background: #e6fffa;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.type-badge.zip {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

/* Actions */
.file-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.download-btn, .info-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.info-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.info-btn:hover {
    background: #edf2f7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

#fileDetails {
    margin-top: 20px;
}

.file-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.file-detail-item:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    /* Responsive Design for Table */
    .directory-table-container {
        overflow-x: auto;
    }
    
    .directory-table {
        min-width: 600px;
    }
    
    .file-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .download-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* Add these styles to your existing CSS file */

/* ZIP Contents Styling */
.zip-contents {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
}

.zip-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.zip-file-item:last-child {
    border-bottom: none;
}

.zip-file-item:hover {
    background-color: #edf2f7;
}

.zip-file-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.zip-file-item span {
    color: #4a5568;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Enhanced modal for better content display */
.modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.file-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.file-detail-item:last-child {
    border-bottom: none;
}

.file-detail-item strong {
    min-width: 140px;
    flex-shrink: 0;
}
