:root {
    color-scheme: light only;
}

.btn-primary {
    background-color: #1f3165 !important;
}

.active {
    background-color: #1f3165 !important;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding:0;
}

.sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.nav-link:hover {
    background-color: white !important;
}

@media screen and (min-width: 1025px) {
    #secure-navbar {
        display: none !important;
    }
    
}


/* On screens that are less than 1024px wide, hide the sidebar */
@media screen and (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    
    .sidebar.is-active {
        position: fixed;
        top: 0;
        left: 0;
        display: flex !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999; /* Ensures it floats above everything */
        background-color: rgba(0, 0, 0, 0.1); /* Optional: adds a subtle overlay background */
    }
    
    /* The actual sidebar content */
    .sidebar.is-active aside {
        width: 280px !important; /* Keep your original sidebar width */
        height: 100vh;
        background-color: #f8f9fa; /* Ensure solid background */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); /* Optional: adds depth */
    }
    
    /* Optional: Click-to-close area */
    .sidebar.is-active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 280px; /* Start after the sidebar */
        right: 0;
        bottom: 0;
        background: transparent;
        cursor: pointer;
    }
}


.main-content {
    overflow-y: auto;
}
