@import "~scss/variables";

$sw-sidebar-navigation-item-icon-color: $color-darkgray-200;
$sw-sidebar-navigation-item-icon-color-active: $color-shopware-brand-500;
$sw-sidebar-navigation-item-hover-color-background: $color-shopware-brand-50;
$sw-sidebar-navigation-item-active-color-background: $color-shopware-brand-50;
$sw-sidebar-navigation-item-size: 64px;
$sw-sidebar-navigation-item-badge-color-info: $color-shopware-brand-500;
$sw-sidebar-navigation-item-badge-color-warning: $color-pumpkin-spice-500;
$sw-sidebar-navigation-item-badge-color-error: $color-crimson-500;
$sw-sidebar-navigation-item-badge-color-success: $color-emerald-500;

.sw-sidebar-navigation-item {
    position: relative;
    width: $sw-sidebar-navigation-item-size;
    height: $sw-sidebar-navigation-item-size;
    border: none;
    color: $sw-sidebar-navigation-item-icon-color;
    background: none;
    cursor: pointer;
    outline: none;

    &:hover:not(.is--disabled) {
        color: $sw-sidebar-navigation-item-icon-color-active;
    }

    &.is--active {
        background: $sw-sidebar-navigation-item-active-color-background;
        color: $sw-sidebar-navigation-item-icon-color-active;
        width: 64px;
        height: 64px;
    }

    &.is--disabled {
        cursor: not-allowed;
        opacity: 0.3;
        width: 64px;
        height: 64px;
    }

    .sw-icon {
        width: 20px;
        height: 20px;
        padding-top: 1px;
        padding-right: 1px;
        padding-bottom: 1px;
        padding-left: 1px;
    }

    .sidebar-item-badge {
        position: absolute;
        transform: translate(-30%, 70%);
        border-radius: 18px;
        color: $color-white;
        font-size: $font-size-xxs;
        font-style: normal;

        &.is--info {
            background-color: $sw-sidebar-navigation-item-badge-color-info;
        }

        &.is--warning {
            background-color: $sw-sidebar-navigation-item-badge-color-warning;
        }

        &.is--error {
            background-color: $sw-sidebar-navigation-item-badge-color-error;
        }

        &.is--success {
            background-color: $sw-sidebar-navigation-item-badge-color-success;
        }
    }

    .notification--badge {
        top: 0;
        right: 0;
        padding: 2px 8px;
    }

    .dot--badge {
        top: 8px;
        right: 10px;
        padding: 4px;
    }
}
