/* Navbar toggler */

@media (min-width: 768px) {
    .navbar-toggler {
        display: none;
    }
}


/* Sidebar styling */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 250px;
    padding: 20px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    z-index: 1040; /* Ensure the sidebar is above other elements */
}

.sidebar-sticky {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

.sidebar-toggler {
    cursor: pointer;
}

.sidebar-toggler span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 5px 0;
}

.sidebar-body {
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    background-color: #e2e6ea;
}

.link-icon {
    margin-right: 10px;
    padding-right: 5px;
}

.nav-category {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 20px;
    padding: 10px 0;
}

/* Footer styling */
.footer {
    font-size: small;
    margin-top: auto;
    margin-bottom: 20px;
}

/* Main content styling */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Ensure buttons are aligned properly in the list group items */
.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.button-group {
    display: flex;
    gap: 10px;
}

.modal-body pre {
    white-space: pre-wrap; /* CSS3 */
    white-space: -moz-pre-wrap; /* Mozilla */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}