﻿app-container {
    position: absolute;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
    display: flex;
}

app-container-menu {
    /*display: none;
    flex-direction: column;
    height: 100%;
    width: 0;*/
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    width: 250px;
    transition: width 0.3s;
    background-color: #254259;
}

    app-container-menu.menu-visible {
        /*display: flex;*/
       width: 250px;
    }

    app-container-menu .header,
    app-container-menu .footer {
        flex-shrink: 0;
        background-color: #14354f;
    }

    app-container-menu .header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        height: 100px;
    }

    app-container-menu .logo {
        max-width: 100%;
        height: 65px;
    }

    app-container-menu .menu-items {
        flex-grow: 1;
        overflow-y: auto;
    }

        app-container-menu .menu-items ul {
            list-style-type: none;
            padding: 0;
            margin: 5px 0px 0px 0px;
        }

        app-container-menu .menu-items li {
            margin: 0;
        }
            app-container-menu .menu-items li.menu-header {
                margin: 0;
                padding: 10px;
                color: #fff;
                text-transform: uppercase;
                font-size: 0.9rem;
                color: #95bddd;
            }
    app-container-menu .menu-item {
        display: flex;
        flex-direction: column; /* Allow submenu to stack below */
        cursor: pointer;
        position: relative;
    }

    app-container-menu .menu-item-content {
        display: flex;
        /*align-items: center;*/
        padding: 0.8rem 0.6rem;
    }

    app-container-menu .menu-item i {
        margin-right: 1rem;
        color: #FFF;
        font-size: 1.2rem;
        width: 2rem;
        text-align: center;
        padding-top: 3px;
    }

    app-container-menu .menu-item .chevron {
        margin-left: auto;
/*        font-size: 16px;*/
    }

    app-container-menu .menu-item span {
        color: #FFF;
        /*font-size: 14px;*/
    }

    app-container-menu .menu-item-content:hover {
        background-color: #14354f; /* Highlight color on hover */
        border-radius: 0px;
    }

    app-container-menu .menu-item-content.selected {
        background-color: #14354f; /* Color for selected item */
        border-radius: 0px;
    }

    app-container-menu .footer-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        color: #fff;
    }

    app-container-menu .user-initials {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: #ccc;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin-right:0.6rem;
    }

    app-container-menu .user-info {
        flex-grow: 1;
        font-size: 0.9rem;
    }

    app-container-menu .logout-icon {
        cursor: pointer;
        font-size: 1.4rem;
        color: #fff;
    }

    app-container-menu .submenu {
        max-height: 0;
        overflow: hidden;
        list-style: none;
        margin: 0px !important;
        transition: max-height 0.3s ease;
        background-color: #242424;
    }

        app-container-menu .submenu .menu-item {
            display: flex;
        }

app-container-view {
    /*flex-grow: 1;
    display: flex;
    height: 100%;
    background-color: #ebecf1;
    flex-direction: column;
    overflow: hidden;
    transition: margin-left 0.3s;*/
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    overflow: hidden;
    background-color: #ebecf1;
    transition: left 0.3s;
}

body.menu-visible app-container-view {
    margin-left: 250px; /* Adjust to match the menu width */
}

app-container-view .view-stack {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

    app-container-view .view-stack > * {
        flex-grow: 1;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: auto;
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

        /* Ensure the last view is always on top */
        app-container-view .view-stack > *:not(:last-child) {
            z-index: 1;
        }

/* Styles for tablets and desktops */
@media (min-width: 769px) {
   
    app-container-menu {
        width: 250px;
    }
    app-container-view {
        left: 250px;
    }
    
}

.show-menu {
    left: 250px;
    right: -250px;
}



.root-view-head {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #14354f;
    color: #fff;
}

    .root-view-head .hamburger {
        display: inline-block;
        margin: 0px 15px 0px 0px;
    }

    .root-view-head i {
        margin-left: 15px;
        font-size: 1.4rem;
        cursor: pointer;
    }

    .root-view-head .title {
        font-size: 1.2em;
        flex-grow: 1;
        color: #fff;
    }


.child-view-head {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #14354f;
    color: #fff;
}

    .child-view-head i {
        margin-right: 5px;
        font-size: 1.4rem;
        height: 1.8rem;
        cursor: pointer;
        width: 1.8rem;
        line-height: 1.8rem;
        text-align: center;
    }

        .child-view-head i:hover {
            background-color: #606c76;
            border: 1px solid #606c76;
            color: #fff;
            border-radius: 5px;
        }

    .child-view-head .title {
        flex-grow: 1;
        font-size: 1.2rem;
    }



.view-body {
    flex: 1;
    background-color: #e1e1e1;
    display: flex;
    flex-direction: column; /* Allow children to stack vertically */
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%; /* Ensure the view takes 100% of the width */
    height: 100%; /* Ensure the view takes 100% of the height */
    padding: 10px;
    box-sizing: border-box; /* Include padding in element's total width and height */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

    .view-body .view-title {
        font-size: 1.6rem;
        color: var(--swimlynx-blue);
        margin-bottom: 20px;
    }


.select-container {
    width: 100%; /* Ensure the select container takes 100% of the width */
    display: flex;
    flex-direction: column; /* Stack child elements vertically */
    gap: 5px; /* Add space between child elements */
}




/* Styles for tablets and desktops */
@media (min-width: 769px) {
    app-container-menu {
        display: flex;
        width: 250px;
    }

    .root-view-head .hamburger {
        display: none;
    }

    .select-container {
        flex-direction: row; /* Arrange elements side-by-side on larger screens */
        align-items: center; /* Center items vertically */
    }

        .select-container > .flex-fill {
            flex: 1; /* First element fills the available space */
        }

        .select-container > .fixed-width {
            flex: 0 0 auto; /* Second element has fixed width */
            width: 250px; /* Adjust the width as needed */
        }
}