#app-wrapper {
    padding: 20px;
}

#top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

:host ::ng-deep #top-nav #menu-switcher .neu-button {
    font-size: 20px;
}

:host ::ng-deep #top-nav #menu-switcher .neu-button i {
    margin: 0;
}

:host ::ng-deep #top-nav .neu-container {
    margin-bottom: 0px;
}

#main-logo, #right {
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    border-radius: 8px;
    box-shadow: -4px -4px 20px #FFF;
    position: relative;
}

#main-logo::before,
#right::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    box-shadow: 3px 3px 20px rgba(36, 65, 93, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

#main-logo {
    padding: 15px;
}

#main-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}

#main-logo .logo {
    width: 35px;
    margin: -5px 10px -5px 0;
}

#main-logo .text {
    width: 110px;
}

#right {
    padding: 10px;
    position: relative;
}

#quick-actions,
#box-selector, 
#user span,
#right .close {
    display: none;
}

#user img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 100%;
}

#right.dropdownsActive {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 5;
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    padding: 40px;
}

#right.dropdownsActive #quick-actions,
#right.dropdownsActive #user span,
#right.dropdownsActive #box-selector,
#right.dropdownsActive .close {
    display: initial;
}

#right.dropdownsActive #user {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

#right.dropdownsActive #user img {
    width: 150px;
    height: 150px;
    box-shadow: 3px 3px 20px rgba(36, 65, 93, 0.3);
    margin-bottom: 20px;
}

#right.dropdownsActive #user span {
    font-size: 18px;
}

#right.dropdownsActive .close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: auto;

}

:host ::ng-deep #right.dropdownsActive #box-selector .neu-dropdown,
:host ::ng-deep #right.dropdownsActive #quick-actions .neu-dropdown {
    width: 100%;
    margin: 0 auto 20px;
}

#right.dropdownsActive #box-selector,
#right.dropdownsActive #quick-actions {
    width: 90%;
}

#credits {
    display: block;
    margin: 0 auto;
}

#credits a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: none;
}

#credits a span {
    margin-right: 10px;
}

#credits a img {
    width: 80px;
}

#menu-wrapper {
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: fixed;
    visibility: hidden;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    padding: 20px;
    transition: opacity .3s linear;
}

#menu-wrapper ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#menu-wrapper ul li {
    width: calc(50% - 20px);
    height: auto;
    margin: 10px 10px;
    transition: transform .5s ease-out;
}

#menu-wrapper ul li:nth-child(odd) {
    transform: translateX(-150%);
}

#menu-wrapper ul li:nth-child(even) {
    transform: translateX(150%);
}

#menu-wrapper ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    border-radius: 8px;
    box-shadow: -4px -4px 20px #FFF;
    position: relative;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    border: unset;
}

#menu-wrapper ul li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    box-shadow: 3px 3px 20px rgba(36, 65, 93, 0.3);
    border-radius: 8px;
    pointer-events: none;
}

#menu-wrapper ul li.active a {
    box-shadow: 3px 3px 20px rgba(88, 108, 138, 0.5) inset;
    color: #8B278F;
}

#menu-wrapper ul li.active a::before {
    box-shadow: -4px -4px 20px #FFF inset;
}
 
#menu-wrapper ul li a i {
    font-size: 32px;
    margin-bottom: 20px;
}

#menu-wrapper ul li.active a i {
    background: -webkit-linear-gradient(135deg, #BD34C2 -50%, #8B278F 120%);
    background-clip: text;
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
}

#main.menuActive #menu-wrapper {
    visibility: visible;
    opacity: 1;
}

#main.menuActive #menu-wrapper ul li {
    transform: translateX(0px);
}

#main.menuActive #menu-wrapper ul li:nth-child(1) {
    transition-delay: 0s;
}

#main.menuActive #menu-wrapper ul li:nth-child(2) {
    transition-delay: .05s;
}

#main.menuActive #menu-wrapper ul li:nth-child(3) {
    transition-delay: .1s;
}

#main.menuActive #menu-wrapper ul li:nth-child(4) {
    transition-delay: .15s;
}

#main.menuActive #menu-wrapper ul li:nth-child(5) {
    transition-delay: .2s;
}

#main.menuActive #menu-wrapper ul li:nth-child(6) {
    transition-delay: .25s;
}

#main.menuActive #menu-wrapper ul li:nth-child(7) {
    transition-delay: .3s;
}
#main.menuActive #menu-wrapper ul li:nth-child(8) {
    transition-delay: .35s;
}

#loading {
    visibility: visible;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}

:host ::ng-deep #content .layout {
    display: none;
}

:host ::ng-deep #content .layout.active {
    display: initial;
}

:host ::ng-deep #quick-actions .neu-dropdown-options neu-button button {
    width: 100% !important;
}

:host ::ng-deep #quick-actions .neu-dropdown-options neu-button button span {
    text-align: initial;
}

@media screen and (min-width: 576px) {
    #menu-wrapper ul li {
        width: calc(33% - 20px);
    }
}

@media screen and (min-width: 768px) {
    
    

}

@media screen and (min-width: 992px) {

    #app-wrapper {
        padding: 20px 0 20px 20px;
    }
    
    #menu-switcher,
    #menu-wrapper .close,
    #right.dropdownsActive .close {
        display: none;
    }

    #top-nav, 
    #top-nav #user,
    #menu-wrapper {
        background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
        border-radius: 16px;
        box-shadow: -4px -4px 20px #FFF;
        position: relative;
    }

    #top-nav::before,
    #top-nav #user::before,
    #menu-wrapper::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-color: transparent;
        box-shadow: 3px 3px 20px rgba(36, 65, 93, 0.3);
        border-radius: 16px;
        pointer-events: none;
    }

    #top-nav {
        padding: 15px;
        margin-bottom: unset;
        z-index: 2;
        margin-right: 20px;
    }

    #main-logo,
    #right {
        background-image: unset;
        padding: 0;
        box-shadow: unset;
    }

    #main-logo::before,
    #right::before {
        content: none;
    }

    #main-logo .logo {
        width: 40px;
    }

    #main-logo .text {
        width: 130px;
    }

    #right,
    #right.dropdownsActive {
        position: relative;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0;
    }

    #right.dropdownsActive #quick-actions,
    #right.dropdownsActive #box-selector,
    #quick-actions,
    #box-selector {
        display: initial;
        width: auto;
        margin: unset;
        margin-bottom: unset;
        margin-right: 20px;
    }

    :host ::ng-deep #right #box-selector .neu-dropdown .neu-dropdown-title {
        padding: 12px 20px;
    }

    :host ::ng-deep #right.dropdownsActive #quick-actions .neu-dropdown,
    :host ::ng-deep #right.dropdownsActive #box-selector .neu-dropdown,
    :host ::ng-deep #quick-actions .neu-dropdown, 
    :host ::ng-deep #box-selector .neu-dropdown {
        margin-bottom: unset;
        width: auto;
    }

    #top-nav #user,
    #top-nav #user::before {
        border-radius: 8px;
    }

    #top-nav #user,
    #top-nav #right.dropdownsActive #user {
        display: inline-flex;
        padding: 8px;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        flex-direction: row;
        margin: 0;
    }

    #top-nav #user span,
    #top-nav #right.dropdownsActive #user span {
        display: inline-block;
        min-width: 140px;
        margin-left: 10px;
        text-align: left;
        font-size: 14px;
    }

    #top-nav #user img,
    #top-nav #right.dropdownsActive #user img {
        margin-left: 10px;
        width: 40px;
        height: 40px;
        margin-bottom: unset;
        box-shadow: unset;
    }

    #main {
        height: calc(100vh - 126px);
        max-height: calc(100vh - 126px);
        display: flex;
        align-items: stretch;
    }

    #menu-wrapper {
        visibility: visible;
        width: 230px;
        flex-grow: 0;
        position: relative;
        height: calc(100% - 20px);
        padding: 0px;
        opacity: 1;
        margin-top: 20px;
    }

    #content-wrapper {
        width: calc(100% - 230px);
        max-width: calc(100% - 230px);
        overflow-y: auto;
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #menu-wrapper .close {
        display: none;
    }

    #menu-wrapper ul {
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        overflow-y: auto;
        flex-grow: 1;
        padding: 20px;
    }

    #menu-wrapper ul li {
        width: 100%;
        margin: 0 0 15px;
        transform: unset !important;
        transition: none;
    }

    #menu-wrapper ul li a {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 20px;
    }

    #menu-wrapper ul li a i {
        font-size: 17px;
        margin: 0 15px 0 0;
    }

    #credits {
        flex-grow: 0;
        padding: 20px;
        margin-top: 10px;
    }

    #credits a img {
        width: 60px;
    }

    :host ::ng-deep #content {
        display: flex;
        align-items: stretch;
    }

    :host ::ng-deep #content .layout {
        display: initial;
        height: inherit;
        max-height: calc(100vh - 240px);
    }

    :host ::ng-deep #content #primary {
        flex-grow: 1;
        width: 30%;
    }

    :host ::ng-deep #content #secondary {
        flex-grow: 0;
        max-width: 300px;
        width: 30%;
        margin-left: 20px;
    }

    :host ::ng-deep #content .layout.inactive {
        display: none !important;
    }

}

@media screen and (min-width: 1200px) {
    body {
        padding: 20px;
    }
}