body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Karla', Times, serif;
}

/*.wrapper {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 56px);*/ /* Subtract navbar height */
/*}*/


.main-content {
    margin-left: 300px;
    margin-top: 8vh;
    padding: 15px;
    flex: 1;
    transition: margin-left 0.3s ease-in-out;
}



.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow: scroll; /* Ensure scroll still works */
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

.sidebar {
    width: 300px;
    position: fixed;
    top: 70px; /* Below navbar */
    left: 0;
    bottom: 0;
    background-color: #f8f9fa;
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ff0000;
}

    .sidebar.hidden {
        transform: translateX(-300px);
    }

.sidebar-links {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0 20px 10px;
}

.sidebar-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(255, 255, 255, 0.20); /* Semi-transparent white */
    backdrop-filter: blur(5px); /* Blur effect */
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

@media (max-width: 1399.98px) {
    .sidebar {
        transform: translateX(-300px);
    }

        .sidebar.active {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
    }
}

.navbar {
    z-index: 100;
    height: auto;
}

.sidebar-toggle {
    display: none;
}

@media (max-width: 1399.98px) {
    .sidebar-toggle {
        display: block;
    }
}

.navbar-brand img {
    height: 55px;
    width: 55px;
}

.linkx {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

    .linkx::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        border-top: 25.7px solid transparent;
        border-bottom: 25.7px solid transparent;
        border-left: 20px solid #ffc107;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
        /*        box-shadow: 0px 0px 20px #DC3545;*/
    }


    .linkx:hover::before {
        transform: translateX(0%);
    }


.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

    .overlay.d-none {
        display: none;
    }

.link-first {
    border-top: 1px solid #cccccc3d;
    margin-top: 0.5rem;
}

.sidebar-footer {
    padding: 1.2rem;
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    text-align: justify;
}


.sidebar a {
    color: #676767;
    padding: 0.8rem 1.8rem;
    margin-bottom: 5px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    border-bottom: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
}

    .sidebar a:hover,
    .sidebar a.active {
        color: #fff;
        background-color: #DC3545; /* Bootstrap primary */
        transition: transform 0.5s ease;
    }

/*.sidebar-link.active {
    background-color: #6c757d;*/ /* Bootstrap danger color, adjust as needed */
/*color: white !important;
    font-weight: bold;
}*/
