.gos-taskbar {
    background-color: #1a1a1ae6;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    backdrop-filter: var(--blur);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    transition: all 500ms var(--ease);
    border-top: 1px #ffffff11 solid;
    gap: 0;
    box-sizing: border-box;
    height: 40px;
    z-index: 2000;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.gos-taskbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.gos-taskbar-item {
    color: white;
    min-width: 40px;
    max-width: 160px;
    flex: 1 1 160px;
    /* Allows shrinking as more items are added */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: opacity 0.25s ease, max-width 0.25s ease, min-width 0.25s ease, padding 0.25s ease, flex-basis 0.25s ease;
    opacity: 1;
    container-type: inline-size;
}

@container (max-width: 85px) {
    .gos-taskbar-item {
        justify-content: center;
        padding: 0;
    }

    .gos-taskbar-item i {
        margin-right: 0 !important;
    }

    .gos-taskbar-item span {
        display: none;
    }
}

.gos-taskbar-item.mounting {
    opacity: 0;
    max-width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}

.gos-taskbar-item.removing {
    opacity: 0;
    max-width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Background Highlight Slide */
.gos-taskbar-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
    z-index: 0;
}

.gos-taskbar-item:hover::before,
.gos-taskbar-item.active::before {
    transform: translateY(0);
}

.gos-taskbar-item.active::before {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Bottom Multi-state Indicator */
.gos-taskbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 80%;
    background-color: #858585;
    transition: width 0.25s cubic-bezier(0.1, 0.9, 0.2, 1), background-color 0.25s ease;
    z-index: 1;
}

.gos-taskbar-item.active::after {
    width: 100%;
    background-color: var(--accent-color);
}

.gos-taskbar-item i,
.gos-taskbar-item span {
    position: relative;
    z-index: 2;
}

.gos-taskbar-item i {
    font-size: 1.2rem;
    margin-right: 8px;
    flex-shrink: 0;
}

.gos-taskbar-item span {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}