﻿.sidebar {
    position: fixed;
    top: 110px; /* Match navbar height */
    bottom: 0;
    left: -250px; /* Hide off-screen by default */
    width: 260px;
    z-index: 1000;
    background-color: #f8f9fa;
    transition: left 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.sidebar.show {
    left: 0;
}

.siderbar-top{
    top:125px;
}

@media (min-width: 769px) {
    .sidebar {
        left: 0; /* Always show on larger screens */
    }

    main {
        margin-left: 290px; /* Adjust margin for sidebar */
    }
}
@media (min-width: 768px) and (max-width: 768px) {
    .sidebar {
        top:125px; /* iPad Mini fix*/
    }
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 56px);
    padding-top: 2.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Responsive sidebar toggle */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    #sidebar {
        position: fixed;
        left: -250px; /* Hide sidebar off-screen */
        width: 250px;
        height: 100%;
        transition: left 0.3s ease;
        z-index: 999;
    }

    #sidebar.active {
        left: 0; /* Slide sidebar in */
    }

    /* Optional: Add overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@font-face {
    font-family: 'poppins-all-400-normal';
    font-style: normal;
    font-weight: 400;
    src: url('../lib/fontsource-poppins/files/poppins-all-400-normal.woff') format('woff');
}
body {
    font-family: 'poppins-all-400-normal', sans-serif;
}
