.menu-slider {
    trough {
        border-radius: $bar-menus-slider-progress-radius;
        background: $surface0;

        highlight,
        progress {
            background: $peach;
            border-radius: $bar-menus-slider-progress-radius;
        }
    }

    slider {
        box-shadow: none;
        background-color: transparent;
        min-height: 0.6rem;
        min-width: 0.6rem;
        border: 0rem solid transparent;
        border-radius: $bar-menus-slider-slider-radius;
    }

    &:hover {
        trough {
            background: $surface0;
        }

        slider {
            background: $overlay0;
            box-shadow: none;
        }
    }
}

.menu-switch {
    font-size: 1.3em;
    background-color: $surface0;
    border-radius: $bar-menus-switch-radius;

    &:checked {
        background: $sky;
    }

    trough {
        highlight,
        progress {
            background-color: $peach;
            border-radius: $bar-menus-switch-radius;
        }
    }

    slider {
        box-shadow: none;
        background-color: $overlay0;
        min-height: 1em;
        min-width: 1em;
        border: 0em solid transparent;
        border-radius: $bar-menus-switch-slider-radius;
        margin: 0.1em 0.15em;
    }

    &:hover {
        trough {
            background: $surface0;
        }

        slider {
            background: $overlay0;
            box-shadow: none;
        }
    }

    &:active {
        background-color: $sky;
    }
}

.menu-separator {
    min-height: 0.1rem;
    margin: 0.6rem 0rem;
    background: $surface1;
}

.menu-items {
    background: $crust;
    border: $bar-menus-border-size solid $bar-menus-border-color;
    border-radius: $bar-menus-border-radius;
    color: $text;
}

.menu-items-container {
    border-radius: 0.4em;
    font-size: 1.3em;
}

.menu-section-container {
    margin: 1em 0em;

    .menu-label {
        color: $text;
        font-size: 1.1em;
        font-weight: bold;
    }

    .menu-label-container {
        background: $base;
        border-radius: $bar-menus-card_radius;
        border-bottom-left-radius: 0em;
        border-bottom-right-radius: 0em;
        margin: 0em 1em;
        min-height: 2em;
    }

    &:first-child {
        margin-bottom: 0em;
    }

    &:last-child {
        margin-top: 0em;
    }

    &:nth-child(2) {
        margin-top: 1em;
    }

    .menu-items-section {
        background: $base;
        border-radius: $bar-menus-card_radius;
        border-top-left-radius: 0em;
        border-top-right-radius: 0em;
        padding: 0.9em;
        margin: 0em 1em;
    }
}

.menu-active {
    font-size: 0.9em;
    font-weight: bold;
    margin: 0rem 1em;
    margin-bottom: 0.9em;
}

.menu-active-container {
    &:first-child {
        margin-bottom: 0.5em;
    }
}

.menu-active-button {
    padding: 0.1em;
    margin-bottom: -0.2em;

    .menu-active-icon {
        font-size: 1.4em;
        font-weight: bold;
    }

    &.muted image {
        color: $maroon;
    }

    &:hover image {
        color: $maroon;
    }
}

.menu-active-percentage {
    font-size: 0.9em;
    min-width: 2.5em;
    font-weight: bold;
}

.menu-active-slider {
    margin-left: 1rem;
    margin-right: 1.5rem;
}

.menu-active-slider * {
    min-height: 0.85em;
    border-radius: $bar-menus-slider-progress-radius;
}

.menu-slider-container {
    margin-bottom: 0.7rem;
}

.menu-label-dim {
    color: $overlay0;
    margin-right: 1rem;
    font-size: 1em;
    font-weight: bold;
}

.menu-icon-button {
    &:hover {
        color: $surface2;
    }
}

.menu-dropdown-label-container {
    background: $base;
    border-radius: 0.4em;
}

.menu-button {
    margin-bottom: 0.4em;
}

.menu-button-name {
    font-size: 0.95em;
    font-weight: bold;
    margin-left: 0.5em;
    margin-right: 1.2rem;
}

.menu-button-icon {
    font-size: 1.3em;
    font-weight: bold;
    margin-right: 0.5rem;
}

.menu-item-box {
    margin-bottom: 0.5rem;
}

.dropdown-menu-container {
    min-height: 10em;
}

.dropdown-content {
    border-radius: $bar-menus-border-radius;
    margin: if($bar-menus-enableShadow, $bar-menus-shadowMargins, 0px);
    box-shadow: if($bar-menus-enableShadow, $bar-menus-shadow, 0 0 0 0);
}

.menu-label {
    margin: 0.5em 1em;
    color: $sky;
}

.event-box-container {
    min-height: 0em;
    margin-top: $bar-dropdownGap;
}

.event-top-padding * {
    min-height: 0em;
    margin-top: if($bar-floating and $bar-location == 'top', $bar-margin_top, 0);
    margin-bottom: if($bar-floating and $bar-location == 'bottom', $bar-margin_bottom, 0);
}

@keyframes spin {
    to {
        -gtk-icon-transform: rotate(1turn);
    }
}

.spinning-icon {
    animation-name: spin;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.menu-scroller {
    margin-right: 0em;
    min-width: 0.35em;

    scrollbar contents trough slider {
        min-width: $bar-menus-scroller-width;
        border-radius: $bar-menus-scroller-radius;
        background: $bar-menus-text;
    }
}
