﻿ui-view {
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    flex: 0 0 50px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #e1e1e1;
}

.aside-main-wrapper {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    min-height: 0;
}

aside, main {
    overflow-y: auto;
    min-width: 0;
}

aside {
    flex: 0 0 200px;
    background-color: #bfbfbf;
    transition: all ease-in-out 300ms;
}

main {
    flex-grow: 1;
    background-color: #eef1f5;
    overflow-x: hidden;
}

footer {
    flex-grow:0;
    flex-shrink:0;
    flex-basis:auto;
    display:flex;
    justify-content:center;
    align-items:center;
    background-color:#e1e1e1;
}

/*#region header */

.header-logo {
    /*flex: 0 0 300px;*/
}
.header-menu {
    display: flex;
    height:50px;
    justify-content:flex-end;
}
    .header-menu > li {
        display:flex;
        align-items:center; 
        justify-content:center;
    }    
    .header-menu li a {
        display:flex;
        align-items:center; 
        justify-content:center;
        
        height:100%;
        width:100%;
        padding:0 20px;
        position: relative;
        color: #656565;
    }
    .header-menu > li a:hover {
        background-color:#cfcfcf;
    }
    /*.header-menu > li a.active{
        background-color: #5bc0de;
        color: #fff;        
    }*/
    .header-menu li .count {
        display: block;
        width: 20px;
        height: 20px;
        position: absolute;
        top: 5px;
        left: 15px;
        background-color: #ec5555;
        color: #fff;
        border-radius: 50%;
        font-size: 11px;
        padding-top: 3px;
        text-align: center;
        animation: notify 2000ms infinite;
    }
    .header-menu .project {
        background-color:#656565;
        color:#fff;
        padding:0 20px;
    }

/*#region dropdown */

.header-dropdown {
    padding: 0;
    width: 300px;
}
.header-dropdown-header {
    background-color: #59a182;
    color: #fff;
    padding: 7px;
}
    /*.header-dropdown-header span { }*/
    .header-dropdown-header a {
        float: right;
    }
/*.header-dropdown-body { }*/
.header-dropdown-body > a {
    display: block;
    padding: 5px;
    border-bottom: 1px solid #e4e4e4;
}
    .header-dropdown-body > a:hover {
        background-color: #f7f7f7;
    }
/*#endregion */

/*#region box-message */

/*.box-message { }*/
.box-message-author {
    color: #59a182;
}
.box-message-time {
    float: right;
    color: #bfbfbf;
}
.box-message-text {
    margin-top: 5px;
    color: #626262;
}

/*#endregion */

/*#region Status */

.user-status {
    display: block;
    width: 15px;
    height: 15px;
    background-color: #bfbfbf;
    border-radius: 50%;
}
    .user-status[data-status='Connected'] {
        background-color: #47e000;
    }

/*#endregion */

.header-menu-toggle {
    display: none;
}
/*#endregion */

/*#region Menu */
.sidebar-menu { 
    display: flex;    
    flex-direction:column;    
}
.sidebar-menu li a {
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content:center;
    padding:10px;
    color: #656565;
}
.sidebar-menu li a:hover {
    background-color:#a5a5a5;
    color: #fff;
}
/*.sidebar-menu li a.active {
    background-color: #5bc0de;
    background-color: #00BFA5;
    color: #fff;
}*/
.sidebar-menu li a.active i {
    animation: menuItemSelected 500ms ease-in-out;
}

.sidebar-menu .subMenu li a {
    background-color:#555;
    color:#bfbfbf;
    font-size:0.9em;
}
.sidebar-menu .subMenu li a.active {
    background-color:#656565;
}
.sidebar-menu .subMenu li a:hover {
    background-color:#757575;
    color:#eee;
}
.sidebar-menu .subMenu {
    max-height:0;
    overflow:hidden;
    transition: max-height ease-in-out 500ms;
}
.sidebar-menu .subMenu.expanded {
    max-height:500px;
}

/*#region Collapsed */
aside.collapsed {
        flex: 0 0 50px;
    }
aside.collapsed .sidebar-menu li a {
        flex-direction:row;
    }
aside.collapsed .sidebar-menu li span {
        display: none;
    }
aside.hidden {
        display: none;
    }
/*#endregion */

/*#endregion */

/*#region FastBar */
.fastBar {
    height: calc(100% - 50px);
    width: 350px;
    position: fixed;
    z-index: 50;
    right: 0;
    top: 50px;
    background-color: rgba(255, 255, 255, 1);
    border-left: 5px solid #eef1f5;
    transition: all ease-in-out 300ms;
    overflow: hidden;
}
.fastBar-header {
    flex: 0 0 auto;
}
.fastBar-content {
    overflow-y:auto;
    flex: 1 1 auto;
}
.fastBar-footer {
    /*flex: 0 0 100px;*/
}
.fastBar.collapsed {
    transform:translateX(350px);
    border-top-left-radius:80%;
    border-bottom-left-radius:80%;
}
/*#endregion */

/*#region Fullscreen Menu */
.fullscreen-menu {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99999;
    background-color: #59a182;
    background-color: #bfbfbf;
    overflow-y: auto;
}
    .fullscreen-menu.collapsed {
        display: none;
    }
.fullscreen-menu-close {
    color: #fff;
    display: block;
    text-align: center;
    margin: 10px;
}
.fullscreen-menu li a {
    display: block;
    padding: 15px;
    color: #315847;
    color: #656565;
    font-size: 1.5em;
}
    .fullscreen-menu li a:hover {
        background-color: #49896d;
        background-color: #bfbfbf;
        color: #fff;
    }
/*#endregion */

/*#region Pages */

.page-flex-container {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    min-height: 1px;
    height: 100%;
}
.page-flex-aside,
.page-flex-main {
    overflow-x: hidden;
    overflow-y: auto;
}
.page-flex-aside {
    flex: 0 1 350px;
    display:flex;
    flex-direction:column;
}
.page-flex-main {
    flex:1;
}

.page-loading {
    background-color: #fff;
}
.page-breadcrumb {
    color: #8a8a8a;
    font-size: 1.2em;
    margin: 10px 15px 20px;
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 10px;
}
.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height:100%;
}
.page-padding {
    padding: 10px;
    box-sizing: border-box;
}

.custom-error-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: #f00;
    font-size: 8em;
    color: #000;
    animation: bounce 2000ms infinite;
}

/*#endregion */

/*#region Themes */
.header-menu > li a.active,
.sidebar-menu li a.active {
    background-color: #3f51b5;
    background-color: #26b99a;
    color:#fff;
}
/*#endregion */

/*#region Media */

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    aside {
        flex: 0 0 50px;
    }

    .sideBarMenuToggle {
        background-color: transparent !important;
        color: #a0a0a0 !important;
    }

    .sidebar-menu li span {
        display: none;
    }

    .hidden-less-md,
    .hidden-less-sm,
    .hidden-less-xs {
        display: block;
    }

    .visible-less-md,
    .visible-less-sm,
    .visible-less-xs {
        display:block;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .hidden-less-md {
        display: none;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    aside, .header-menu {
        display: none;
    }

    .header-menu-toggle {
        display: block;
        margin-right: 20px;
    }

    .fullscreen-menu {
        display: block;
    }

    .hidden-less-sm {
        display: none;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    .hidden-less-xs {
        display: none;
    }
}

/*#endregion */