/* -------------------------------------- */
/* 1. GLOBALS, UTILITIES & BASE STYLES    */
/* -------------------------------------- */
:root {
    --dark-bg: #10121a;
    --card-bg: #1c212c;
    --neon-blue: #00eaff;
    --text-light: #e0e0e0;
    --text-muted: #999;
    --progress-bg: #333d52;
    --alt-btn-bg: #343e52;
    --error-red: #ff4d4d;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}
a {
    text-decoration: none;
    color: var(--text-light);
}

.download-container {
    width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
}

/* -------------------------------------- */
/* 2. HEADER STYLES                       */
/* -------------------------------------- */
.download-header {
    background-color: var(--card-bg);
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
    text-align: center;
    width: fit-content;
}
.download-header h1 {
    font-size: 1.8em;
    color: var(--text-light);
    margin: 0;
}

/* -------------------------------------- */
/* 3. NAVIGATION & FILTER TABS            */
/* -------------------------------------- */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}
.filter-label {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-right: 10px;
}
.filter-btn {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-muted);
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 0.9em;
}
.filter-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}
.filter-btn.active {
    background-color: var(--neon-blue);
    color: var(--dark-bg);
    border-color: var(--neon-blue);
    font-weight: bold;
}
.sort-toggle {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--neon-blue);
}
input:checked + .slider:before {
    transform: translateX(20px);
}

/* -------------------------------------- */
/* 4. FOOTER & PAGINATION                 */
/* -------------------------------------- */
.download-footer-links {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}
.footer-link:hover {
    color: var(--neon-blue);
}

.pagination-dots {
    text-align: center;
    margin-top: 30px;
    font-size: 2em;
    color: var(--text-muted);
}
.pagination-dots span {
    cursor: pointer;
    margin: 0 2px;
    transition: color 0.2s;
}
.pagination-dots span.active {
    color: var(--neon-blue);
}