﻿.content {
    margin-left: 260px; /* This should be more than the width of the collapsed menu to prevent overlap */
}

/* Menu Styles */
.menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 0px; /* Default width */
    height: 100%;
    background-color: black;
    transition: all 0.3s ease;
    z-index: 9001;
}

.menu-toggle {
    position: absolute;
    top: 10px;
    right: 10px; /* Positioned inside the .menu-container */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 9002;
    background-color: black;
    padding: 10px;
    border-radius: 0 5px 5px 0;
}

.hamburger-toggle {
    position: fixed;
    top: 5px;
    left: 30px; /* Adjust according to the width of the menu-container. */
    z-index: 9010;
    transition: margin-left 0.8s ease;
}

    .hamburger-toggle .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 10px 0; /* Adjusted margin for better X formation */
        transition: transform 0.6s ease, opacity 0.3s ease; /* For smooth transformation */
    }

    .hamburger-toggle.active {
        margin-left: 220px;
        background-color: transparent;
    }

    /* Transformations to make the "X" */
    .hamburger-toggle.active .hamburger:nth-child(1) {
        background-color: #fff; /* Change color to white when active */
        transform: rotate(45deg) translateY(18px); /* Top bar rotated to 45 degrees */
    }

    .hamburger-toggle.active .hamburger:nth-child(2) {
        opacity: 0; /* Middle bar is faded out */
    }

    .hamburger-toggle.active .hamburger:nth-child(3) {
        background-color: #fff; /* Change color to white when active */
        transform: rotate(-45deg) translateY(-18px); /* Bottom bar rotated to -45 degrees */
    }


/*.arrow {
    font-size: 24px;
    color: #ffffff;
}*/

.menu-toggle .bar {
    background-color: #333;
    height: 3px;
    margin: 2px 0;
    width: 25px;
    display: none;
}


.nav-list > li > ul {
    margin-left: 5px; /* Adjust as needed for the desired indentation */
}

.nav-list {
    list-style-type: none;
    padding: 0;
    padding-top: 33px; /* Padding equal to the height of the hamburger button and its top margin */
    width: 100%;
    height: calc(100% - 60px); /* Subtracting the top padding */
    overflow-y: auto;
}

    .nav-list li {
        padding: 10px;
        border-bottom: 0px solid #ddd;
        text-align: left;
    }

    .nav-list a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
    }

    .nav-list label {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
    }

        .nav-list a:hover {
            background-color: darkgray;
        }

    .nav-list label:hover {
       /* background-color: darkgray;*/
    }

.icon {
    display: block;
    padding-left: 7px; /* Add some padding for icons */
}

.label {
    display: none;
    margin-left: 10px;
    color: white;
    font-family: Calibri, Lato, Helvetica, Arial, sans-serif !important;
    font-weight: bold;
    font-size: 12pt;
}

.contentPlaceHolder {
    padding-left: 0px;
    transition: padding-left 0.3s ease;
}

    .contentPlaceHolder.active {
        padding-left: 300px;
        transition: padding-left 0.3s ease;
    }

.menu-container.active {
    width: 300px; /* Expanding the menu container */
}

    .menu-container.active .nav-list .label {
        display: block;
    }

    .menu-container.active ~ .contentPlaceHolder,
    .menu-container.active ~ .mainHeader {
        padding-left: 300px;
        transition: padding-left 0.3s ease;
    }

.menu-disabled {
    pointer-events: none;
    filter: blur(2px);
    opacity: 0.4;
    transform: translateX(-220px);
    transition: filter 0.3s, opacity 2.3s, transform 2.3s;
}
    .menu-disabled + .page-content {
        filter: blur(5px);
        pointer-events: none; /* to prevent interactions while blurred */
    }

    .menu-disabled::before {
        content: "Please Wait...";
        position: absolute;
        top: 120px;
        left: 250px;
        transform: translate(-50%, -50%) rotate(-90deg); /* Centering and rotating */
        background-color: rgba(0, 0, 0, 0.5); /* Slight background for readability */
        padding: 5px;
        color: white;
        font-size: 32px;
        white-space: nowrap; /* Keeps text in one line */
        z-index: 1; /* Places text above the element content */
    }

.mainHeader {
    padding-left: 0px;
    transition: padding-left 0.3s ease;
}

    .mainHeader.active {
        padding-left: 250px;
        transition: padding-left 0.3s ease;
        background-color: transparent;
    }

.topUserInfo {
    display: inline-block;
    vertical-align: middle;
}

.responsive-panel {
    /*width: 500px;  Maximum width */
    /*width: 100%;  Relative width based on the container */
    /*margin: 0 auto;  Centers the panel if it's inside a larger container */
}

.expand-collapse-icon {
    float: right; /* Adjust as needed */
    cursor: pointer;
    transition: transform 0.3s; /* For rotating the triangle */
    color: white;
}

.has-children.expanded .expand-collapse-icon {
    transform: rotate(90deg); /* Rotate the triangle to indicate expanded state */
}

.has-children > ul {
    display: none; /* This will hide the submenus by default */
}

.expanded .triangle::before {
    content: '▼'; /* Down-pointing triangle symbol */
}

.triangle {
    cursor: pointer;
    display: inline-block;
    width: 30px; /* Increase width */
    height: 30px; /* Increase height */
    background-color: transparent; /* Optional: you can add a background color if needed */
    border-radius: 50%; /* Optional: make it circular */
    position: relative;
    margin-right: 10px; /* Add some margin to separate it from the text/icon */
}

    .triangle::before {
        content: '▶'; /* Right-pointing triangle symbol */
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Centering the triangle inside its container */
        font-size: 20px; /* Adjust the font size of the triangle here */
    }
