/* Desktop Sidebar */
.sidebar {
    min-height: 100vh; /* Full height for desktop */
    background-color: #17a2b8; /* Bootstrap bg-info */
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

/* Sidebar Links */
.sidebar .nav-link {
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease-in-out;
}

/* Hover Effect */
.sidebar .nav-link:hover {
    background-color: #495057;
}

@media (min-width: 992px) {
    .sidebar {
        flex: 0 0 15%; /* Set width to 12.5% */
        max-width: 15%;
    }
}


@media (max-width: 768px) {

    .btn {
        padding: 5px 8px !important; /* Reduce padding */
        font-size: 14px !important; /* Adjust font size */
        white-space: nowrap; /* Prevent text wrapping */
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling */
    }
    
    .sidebar {
        min-height: auto; /* Remove forced full height */
        height: auto; /* Only take required height */
        width: 100%; /* Full width for mobile */
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: center; /* Center the links */
        align-items: center;
        padding: 0px 0; /* Reduce padding */
        background-color: #17a2b8;
        margin: 0 !important; /* Remove any unwanted margins */
    }

    .sidebar ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
        list-style: none; /* Remove default bullets */
        width: 100%;
    }

    .sidebar ul li {
        list-style: none;
        margin: 0 10px; /* Space between links */
    }

    .sidebar ul li a {
        text-align: center;
        color: white;
        font-size: 16px;
        display: flex;
        align-items: center;
        padding: 5px 10px;
        white-space: nowrap; /* Prevent text from wrapping */
    }
}
