﻿:root {
    --primary: #b90e0a;
    --primary-light: #b90e0a22;
    --primary-gradient: linear-gradient(90deg, #b90e0a 0%, #ffb300 100%);
    --bg-glass: rgba(35, 36, 42, 0.60);
    --border-glass: #b90e0a33;
}

.download-box {
    border-radius: 20px;
    padding: 26px 14px 14px 14px;
    color: #fff;
    min-height: 160px;
    box-shadow: 0 6px 24px #0006, 0 1.5px 0 var(--primary-light) inset;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--border-glass);
    margin-bottom: 30px;
}

    .download-box h3 {
        margin-top: 0;
        margin-bottom: 14px;
        font-size: 1.05rem;
        border-bottom: 1.2px solid #2e2f36;
        padding-bottom: 7px;
        letter-spacing: 0.4px;
        font-weight: 700;
        color: var(--primary);
        text-shadow: 0 1px 8px #b90e0a22;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .download-box h3 .bi {
            font-size: 1.1em;
            color: var(--primary);
            filter: drop-shadow(0 0 6px #b90e0a55);
        }

.download-list,
.download-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .download-list > li:not(:last-child) {
        /*margin-bottom: 10px;*/
        padding-bottom: 5px;
        position: relative;
    }

        .download-list > li:not(:last-child)::after {
            content: "";
            display: block;
            width: calc(100% - 16px);
            height: 1px;
            background: #23242a;
            opacity: 0.6;
            margin: 7px auto 0 auto;
            border-radius: 1px;
        }

    .download-list > li {
        margin-bottom: 6px;
    }

    .download-list a {
        color: var(--primary);
        text-decoration: none;
        padding: 4px 0 4px 8px;
        display: flex;
        align-items: center;
        border-radius: 6px;
        font-size: 0.91rem;
        transition: color 0.18s, transform 0.13s;
        position: relative;
        gap: 6px;
        font-weight: 500;
        margin-bottom: 1px;
        overflow: hidden;
        z-index: 1;
        background: none;
        min-height: 28px;
    }

        .download-list a.active {
            font-weight: 1000;
            position: relative;
            z-index: 2;
        }

            .download-list a.active:after {
                display: none;
            }

            .download-list a.active::before {
                content: "";
                position: absolute;
                right: 0;
                bottom: 0;
                width: 60%;
                border-bottom: 2.5px solid;
                /* border-image: var(--primary-gradient) 1; */
                /* border-radius: 0 0 6px 0; */
                pointer-events: none;
                z-index: 3;
            }

        .download-list a:after {
            content: '';
            position: absolute;
            left: 150px;
            right: 8px;
            bottom: 1px;
            height: 1.5px;
            /* background: var(--primary-gradient); */
            background: #FFF;
            border-radius: 1px;
            transform: scaleX(0);
            transition: transform 0.50s cubic-bezier(.4,2,.1,1);
            opacity: 0.5;
            z-index: 2;
        }

        .download-list a:hover:after {
            transform: scaleX(1);
        }

        .download-list a:hover {
            font-weight: 1000 !important;
            transform: scale(1.015);
            background: none;
        }

.toggle-btn {
    background: none;
    border: none;
    color: var(--heading-color);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0 4px 8px;
    margin-bottom: 2px;
    font-size: 0.97rem;
    border-radius: 6px;
    outline: none;
    transition: color 0.18s, transform 0.13s;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    font-family: inherit;
    z-index: 1;
    background: none;
    min-height: 28px;
}

    .toggle-btn .bi {
        font-size: 1em;
        color: var(--primary);
        margin-left: 2px;
        margin-right: 0;
        transition: color 0.18s;
    }

    .toggle-btn-hasData:after {
        content: "▶";
        font-size: 0.9em;
        margin-right: 6px;
        transition: transform 0.22s cubic-bezier(.4,2,.6,1), color 0.18s;
        display: inline-block;
        color: var(--primary);
    }

    .toggle-btn.expanded:after {
        transform: rotate(90deg);
        color: #ffb300;
    }

    .toggle-btn:hover {
        color: var(--primary);
        transform: scale(1.01);
        background: none;
    }

    .toggle-btn.expanded .bi {
        color: #ffb300;
    }

.download-list ul {
    margin-right: 10px;
    border-right: 1px solid #22242a;
    padding-right: 7px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-radius: 6px;
    background: none;
    transition: max-height 0.28s cubic-bezier(.4,2,.6,1), opacity 0.18s;
    margin-top: 1px;
    margin-bottom: 1px;
    box-shadow: none;
}

    .download-list ul.expanded {
        display: block;
        max-height: 100%;
        opacity: 1;
        animation: fadeIn 0.2s;
        background: none;
        box-shadow: none;
    }

    .download-list ul li {
        margin-bottom: 0;
        border: none;
        padding-bottom: 0;
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Scrollbar styling */
.download-box {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #23242a;
}

    .download-box::-webkit-scrollbar {
        width: 7px;
        background: #23242a;
        border-radius: 8px;
    }

    .download-box::-webkit-scrollbar-thumb {
        background: #b90e0a99;
        border-radius: 8px;
    }

@@media (max-width: 500px) {
    .download-box {
        min-width: 90vw;
        max-width: 98vw;
        padding: 10px 2vw 8px 2vw;
    }
}
