@font-face {
    font-family: 'Noto Sans Mono';
    src: url('../fonts/NotoSans-Monospace.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

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

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --hover-bg: #f5f5f5;
    --accent: #d64545;
}

body {
    font-family: 'Noto Sans Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 3rem 2rem;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.header {
    padding: 3rem 3rem 2rem;
    border-bottom: 2px solid var(--border-color);
}

.title {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

thead tr {
    border-bottom: 1px solid var(--border-color);
}

th {
    text-align: left;
    padding: 1.5rem 3rem;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

th:hover {
    color: var(--text-primary);
}

th::after {
    content: ' ↓';
    opacity: 0.4;
    font-size: 0.9em;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    animation: fadeInUp 0.4s ease-out backwards;
}

tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

tbody tr:nth-child(2) {
    animation-delay: 0.15s;
}

tbody tr:nth-child(3) {
    animation-delay: 0.2s;
}

tbody tr:nth-child(4) {
    animation-delay: 0.25s;
}

tbody tr:hover {
    background: var(--hover-bg);
    transform: translateX(4px);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 1.5rem 3rem;
    font-size: 1.05rem;
}

.file-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
}

.file-name:hover {
    color: var(--accent);
}

.icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

.file-size {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.date {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.footer {
    padding: 2rem 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    .container {
        border-radius: 4px;
    }

    .header {
        padding: 1.5rem 1rem 1rem;
    }

    .title {
        font-size: 1.8rem;
        letter-spacing: 0.02em;
    }

    th,
    td {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    th {
        font-size: 0.75rem;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    .file-name {
        gap: 0.5rem;
    }

    .footer {
        padding: 1rem;
        font-size: 0.75rem;
    }
}