﻿.mp-navbar {
    background-color: var(--mud-palette-drawer-background);
    height: 100%;
    grid-area: navbar;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.mp-navbar .nav-item {
    height: 64px;
    cursor: pointer;
}

.mp-navbar .nav-link {
    display: grid;
    grid-template-columns: 4px 1fr;
    grid-template-areas: "indicator button";
    height: 100%;
    padding: 0;
    align-self: center;
    text-align: center;
    background-color: transparent;
    transition-duration: 0.25s;
}

    .mp-navbar .nav-link:hover {
        background-color: var(--mud-palette-overlay-dark);
        transition-duration: 0.25s;
    }

    .mp-navbar .nav-link:focus {
        stroke: none;
    }

.nav-active-indicator {
    grid-area: indicator;
}

.nav-button {
    grid-area: button;
    align-self: center;
    padding-right: 4px;
}

.nav-button-title {
    color: var(--mud-palette-text-primary);
    font-size: 12px;
    padding: 5px 0.5rem 0px 0.5rem;
}

.nav-button-path {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 24px;
    margin-top: 4px;
}

.active {
    background-color: var(--mud-palette-secondary-darken);
}

    .active .nav-active-indicator {
        background-color: var(--mud-palette-primary);
    }

    .active .mp-icon {
        fill: var(--mud-palette-primary);
    }

    .active .nav-button-title {
        color: var(--mud-palette-primary);
    }

/* Responsive styles - The NavigationBar is set horizontal at min-width: 640px in site.css */
@media (max-width: 639.9px) {
    .mp-navbar {
        height: 52px;
    }

    .mp-navbar .nav-item {
        height: auto;
        width: 52px;
    }

    .mp-navbar .nav-link {
        grid-template-columns: 1fr;
        grid-template-rows: 4px 1fr;
        grid-template-areas: "indicator" "button";
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        height: 100%;
        margin: 0;
    }

    .nav-button-title {
        visibility: collapse;
        padding: 0;
        height: 0;
    }

    .nav-button-path {
        margin-top: 0px;
    }

    .nav-button {
        padding-right: 0px;
        padding-bottom: 4px;
    }
}
