﻿ 
/* Height calc for main content between fixed header and footer */
body, html {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#sidebar {
    height: 100vh;
    overflow-y: auto;
    background: #343a40;
    color: #fff;
}

    #sidebar .nav-link {
        color: #adb5bd;
    }

        #sidebar .nav-link.active {
            background-color: #495057;
            color: #fff;
            font-weight: 600;
        }

        #sidebar .nav-link:hover {
            background-color: #495057;
            color: #fff;
        }

    #sidebar .submenu {
        padding-right: 1rem;
    }

        #sidebar .submenu .nav-link {
            font-size: 0.9rem;
        }
    /* Scrollbar for sidebar */
    #sidebar::-webkit-scrollbar {
        width: 6px;
    }

    #sidebar::-webkit-scrollbar-thumb {
        background-color: #6c757d;
        border-radius: 3px;
    }
/* Fixed header and footer of the whole page */
#page-header, #page-footer {
    height: 50px;
    line-height: 50px;
    background-color: #212529;
    color: white;
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
}

#page-header {
    top: 0;
    padding: 0 1rem;
}

#page-footer {
    bottom: 0;
    padding: 0 1rem;
}
/* Sidebar fixed on right */
#sidebar {
    position: fixed;
    top: 50px;
    bottom: 50px;
    width: 260px;
    right: 0;
    z-index: 1020;
}
/* Main container between header and footer */
#main-container {
    position: fixed;
    top: 50px;
    bottom: 50px;
    right: 260px;
    left: 0;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}
/* Inner header and footer inside main container */
#inner-header, #inner-footer {
    /*height: 45px;*/
    /*line-height: 45px;*/
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    /*padding: 3px 1rem;*/
    padding-left:60px;
    padding-right:60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#inner-footer {
    border-top: 1px solid #dee2e6;
    border-bottom: none;
}
/* Inner content area scrollable */
#inner-content-wrapper {
    flex-grow: 1;
    display: flex;
    overflow: hidden;
}
/* Left fixed column inside inner content */
#inner-left-column {
    /*width: 50px;*/
    background-color: white;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    overflow-y: hidden;
}

    #inner-left-column::-webkit-scrollbar {
        width: 6px;
    }

    #inner-left-column::-webkit-scrollbar-thumb {
        background-color: #adb5bd;
        border-radius: 3px;
    }
/* Right scrollable content */
#inner-right-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #fff;
}
/* Sidebar toggle button style */
#sidebarToggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}
/* Profile and dropdown styles */
.dropdown-toggle::after {
    margin-right: 0.25rem;
}
/* Submenu caret */
.submenu-toggle::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    float: left;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.submenu-open > .submenu-toggle::after {
    transform: rotate(-90deg);
}
/* Submenu collapse */
.submenu {
    display: none;
}

.submenu-open > .submenu {
    display: block;
}
/* Responsive adjustments */
@media (max-width: 991.98px) {
    #sidebar {
        width: 220px;
        right: -220px;
        transition: right 0.3s ease;
    }

        #sidebar.show {
            right: 0;
        }

    #main-container {
        right: 0;
    }

    #sidebarToggle {
        color: #212529;
    }
}

 
