@font-face {
    font-family: "sh";
    src: url("assets/fonts/Shabnam.ttf");
}

:root {
    --blue: #0b3d6d;
    --light: #f4f6f8;
    --border: #cfd6dd;
    --text: #222;
    --soft: #6f7782;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: sh, Tahoma, sans-serif;
    background: var(--light);
    color: var(--text);
    padding: 30px 10px;
}

/* Topbar */

.topbar {
    background: var(--blue);
    color: #fff;
    padding: 8px 20px;
    font-size: 13px;
    text-align: center;
}

/* Main Container */

.container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    border: 1px solid var(--border);
}

/* Header */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 2px solid var(--blue);
    background: #f7f9fb;
}

.title h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
}

.subtitle {
    font-size: 12px;
    color: var(--soft);
}

.stats {
    font-size: 13px;
}

/* Tool Panel */

.toolbar {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.toolbar input,
.toolbar select {
    height: 34px;
    border: 1px solid var(--border);
    padding: 0 8px;
    font-family: inherit;
    background: #fff;
}

.toolbar input {
    flex: 1;
}

/* Table Head */

.table-head {
    display: grid;
    grid-template-columns: 40px 1fr 120px 100px 120px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    background: #eef2f6;
    border-bottom: 1px solid var(--border);
}

/* File list */

#list {
    list-style: none;
}

.list-item {
    display: grid;
    grid-template-columns: 40px 1fr 120px 100px 120px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    align-items: center;
}

.file-name {
    font-weight: 600;
}

.format {
    color: var(--soft);
}


/* Download Button */

.download {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #aab2bb;
    background: #f3f5f7;
    color: #222;
    height: 30px;
    font-size: 12px;
    transition: 0.2s;
}

.download:hover {
    background: #e6eaef;
}

/* Footer */

.footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 12px;
    background: #f7f7f7;
    border-top: 1px solid var(--border);
}

/* Responsive */

@media(max-width:700px) {

    .table-head {
        display: none;
    }

    .list-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .file-name {
        font-size: 15px;
    }

    .download {
        width: 100%;
        height: 36px;
    }

    .footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

}