﻿/* Responsive Sidebar Layout */

/* Main page layout */
.page {
    position: relative;
    display: flex;
    flex-direction: row;
}

/* Sidebar styling */
.sidebar {
    width: 250px;   
    position: sticky;
    top: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

/* Main content area */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

/* Header styling */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

/* Content area */
article.content {
    flex: 1;
}

/* Logo styling */
.sidebar .logo, .offcanvas .logo {
    max-height: 40px;
    max-width: 100%;
    margin-bottom: 0;
}

/* Navigation scrollable area */
.nav-scrollable {
    height: calc(100vh - 70px);
    overflow-y: auto;
}

/* Offcanvas styling for mobile */
.offcanvas {
    width: 250px !important;
}

.offcanvas-body {
    padding: 0;
}