/* === CSS proměnné === */
:root:root[class~="dark"] {
    --light-red: #f28b82;
    --background: rgb(20, 20, 20);
    --surfacePrimary: rgb(30, 30, 30);
    --surfaceSecondary: rgb(50, 50, 50);
}

nav > div {
    border-top: none !important;
}

.file-icons [data-dir=true] i {
    color: #9e9e9e !important;
}

nav {
    background-color: var(--surfacePrimary) !important;
    top: 4em !important;
    bottom: 0 !important;
    height: auto !important;
    width: 17em !important;
}


@media (max-width: 1024px) {
    nav {
        width: 11em !important;
    }
}


#listing {
    background-color: var(--background) !important;
}

#listing .item {
    background: var(--background) !important;
}

#listing.list .item.header p:hover {
    color: #90caf9 !important;
}

#listing.list .item.header p:hover i {
    color: #90caf9 !important;
}

#listing.list .item.header p.active {
    color: var(--blue) !important;
}

#listing.list .item.header p.active i {
    color: var(--blue) !important;
}

header {
    background-color: var(--surfacePrimary) !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* === Ikonka souboru/složky === */
#listing.list .item div:first-of-type i {
    font-size: 1.5em !important;
}

.file-icons [data-ext=".mp3"] i {
    color: #f28b82 !important;
}

.file-icons [data-ext=".wav"] i {
    color: #ffe082 !important;
}

.breadcrumbs {
    border-bottom: none !important;
}

.breadcrumbs span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: none;
    display: inline-block;
    vertical-align: middle;
}

.breadcrumbs a {
    background: transparent !important;
}

.breadcrumbs a:hover {
    color: #90caf9 !important;
    background: transparent !important;
}

.breadcrumbs span:last-of-type a {
    color: var(--blue) !important;
    font-weight: 700 !important;
}

/* === Výběr souboru === */
#listing .item[aria-selected=true] {
    background: rgba(33, 150, 243, 0.3) !important;
    color: var(--iconPrimary) !important;
}

/* === Border řádků === */
#listing.list .item {
    border: 0 !important;
    position: relative;
}

#listing.list .item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0em;
    right: 0em;
    height: 1px;
    background: var(--borderPrimary);
}


#listing.list .item .name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* === Responzivita – datum pod název na malých obrazovkách === */
@media(max-width: 450px) {
    #listing.list .item div:last-of-type {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    #listing.list .item .name {
        width: 100%;
    }

    #listing.list .item .modified {
        display: block;
        width: 100%;
        font-size: .8em;
        opacity: .7;
    }
}

.credits {
    width: unset !important;
}

.vue-simple-progress {
    background: rgb(50, 50, 50) !important;
}

.file-icons [data-type=audio] i::before {
    content: "headphones" !important;
}
