:root{
    --bg:#161616;
    --header:#1f1f1f;
    --sidebar:#1f1f1f;
    --card:#262626;
    --cardHover:#2d2d2d;
    --border:#393939;
    --text:#f4f4f4;
    --muted:#a8a8a8;
    --accent:#0f62fe;
    --radius:12px;
}

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

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:Inter,sans-serif;
    min-height:100vh;
    overflow-x:hidden;
}

.topHeader{
    height:72px;
    background:var(--header);
    border-bottom:1px solid var(--border);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 24px;
    position:sticky;
    top:0;
    z-index:1000;
}

.headerLeft{
    display:flex;
    align-items:center;
}

.headerBrand{
    display:flex;
    flex-direction:column;
}

.headerTitle{
    font-size:24px;
    font-weight:700;
    line-height:1.1;
}

.headerSubtitle{
    color:var(--muted);
    font-size:13px;
    margin-top:4px;
}

.headerRight{
    display:flex;
    align-items:center;
    gap:10px;
}

.headerIcon{
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--card);
    border:1px solid var(--border);
    border-radius:8px;
    color:#c6c6c6;
    text-decoration:none;
    transition:.15s ease;
}

.headerIcon:hover{
    background:#393939;
    color:#fff;
}

.appContainer{
    display:grid;
    grid-template-columns:260px 1fr;
    min-height:calc(100vh - 72px);
}

.sidebar{
    background:var(--sidebar);
    border-right:1px solid var(--border);
    padding:20px;
}

.mainContent{
    padding:20px;
    min-width:0;
}

.sidebarSection{
    margin-bottom:14px;
}

.sidebarSection label{
    display:block;
    margin-bottom:6px;
    font-size:12px;
    font-weight:600;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.4px;
}

input,
select{
    width:100%;
    height:40px;
    background:var(--card);
    border:1px solid var(--border);
    color:var(--text);
    border-radius:8px;
    padding:0 12px;
    outline:none;
    font-size:14px;
    font-family:inherit;
    transition:.15s ease;
}

input:focus,
select:focus{
    border-color:var(--accent);
}

select{
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%23a8a8a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:12px;
    padding-right:36px;
}

#resetButton{
    width:100%;
    height:40px;
    background:transparent;
    border:1px solid var(--border);
    color:var(--muted);
    border-radius:8px;
    font-size:14px;
    font-weight:500;
    cursor:pointer;
    transition:.15s;
}

#resetButton:hover{
    background:rgba(255,255,255,.05);
    color:var(--text);
}

.statsGrid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin-bottom:20px;
}

.statCard{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:18px;
}

.statCard div:first-child{
    color:var(--muted);
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:8px;
}

.statCard div:last-child{
    font-size:30px;
    font-weight:700;
}

.tableWrapper{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow:auto;
}

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

thead{
    position:sticky;
    top:0;
    z-index:5;
}

th{
    background:#2f2f2f;
    color:#fff;
    padding:14px;
    border-bottom:1px solid var(--border);
    text-align:center;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
    white-space:nowrap;
}

td{
    padding:12px;
    border-bottom:1px solid var(--border);
    text-align:center;
    vertical-align:middle;
}

tbody tr{
    transition:.15s;
}

tbody tr:hover{
    background:var(--cardHover);
}

th:first-child,
td:first-child{
    text-align:left;
    white-space:nowrap;
}

.programLink{
    color:var(--text);
    text-decoration:none;
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.programLink:hover{
    color:#78a9ff;
}

.linkIcon{
    font-size:12px;
    opacity:.65;
}

.programLink:hover .linkIcon{
    opacity:1;
}

.zipButton{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:64px;
    height:32px;
    background:#393939;
    color:#fff;
    text-decoration:none;
    border-radius:6px;
    font-size:12px;
    font-weight:600;
    transition:.15s;
}

.zipButton:hover{
    background:#4c4c4c;
}

footer{
    border-top:1px solid var(--border);
    text-align:center;
    padding:18px;
    color:var(--muted);
    font-size:13px;
}

::-webkit-scrollbar{
    width:8px;
    height:8px;
}

::-webkit-scrollbar-track{
    background:#1a1a1a;
}

::-webkit-scrollbar-thumb{
    background:#444;
    border-radius:999px;
}

::-webkit-scrollbar-thumb:hover{
    background:#555;
}

@media (max-width:768px){

    .topHeader{
        height:64px;
        padding:0 12px;
        justify-content:space-between;
        align-items:center;
    }

    .headerTitle{
        font-size:18px;
    }

    .headerSubtitle{
        font-size:11px;
        margin-top:2px;
    }

    .headerRight{
        gap:6px;
    }

    .headerIcon{
        width:34px;
        height:34px;
    }

    .appContainer{
        display:flex;
        flex-direction:column;
    }

    .sidebar{
        border-right:none;
        border-bottom:1px solid var(--border);
        padding:14px;
    }

    .mainContent{
        padding:10px;
    }

    .statsGrid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .statCard{
        padding:14px;
    }

    .statCard div:last-child{
        font-size:22px;
    }

    table{
        width:100%;
        font-size:12px;
    }

    th,
    td{
        padding:8px 4px;
    }

    .programLink{
        font-size:12px;
    }

    .zipButton{
        min-width:50px;
        height:28px;
        font-size:11px;
        padding:0 8px;
    }
}

@media (max-width:600px){

    th:nth-child(2),
    td:nth-child(2){
        display:none;
    }

    th:nth-child(5),
    td:nth-child(5){
        display:none;
    }

    .statsGrid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .statCard{
        padding:12px;
    }

    .statCard div:first-child{
        font-size:11px;
    }

    .statCard div:last-child{
        font-size:20px;
    }

    th:first-child,
    td:first-child{
        max-width:120px;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    table{
        width:100%;
    }
}