#wrapper {
    display: flex;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin .25s ease-out;
    background-color: #212529; /* Darker, sleeker background */
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem; /* More padding */
    font-size: 1.2rem; /* Smaller font */
    font-weight: bold;
    color: #f8f9fa; /* Lighter text */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#sidebar-wrapper .list-group {
    width: 15vw; /* Set sidebar width to 15% of viewport width */
}

#sidebar-wrapper .list-group-item {
    background-color: #212529; /* Match sidebar background */
    color: #adb5bd; /* Lighter text */
    padding: 0.75rem 0.75rem; /* Reduced padding */
    border: none; /* Remove default borders */
    transition: background-color 0.3s ease, color 0.3s ease;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: #343a40; /* Slightly lighter on hover */
    color: #ffffff;
}

#sidebar-wrapper .list-group-item.active {
    background-color: #007bff; /* Highlight active item (Bootstrap primary blue) */
    color: #ffffff;
    font-weight: bold;
}

#sidebar-wrapper .list-group-item i {
    margin-right: 0.5rem;
}

#page-content-wrapper {
    min-width: 100vw;
}

/* Top Navbar */
#page-content-wrapper .navbar {
    background-color: #ffffff; /* White background */
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#page-content-wrapper .navbar .nav-link {
    color: #333333;
}

#page-content-wrapper .navbar .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.dashboard-card .card-footer {
    background-color: rgba(0,0,0,0.03);
    border-top: 1px solid rgba(0,0,0,0.125);
}

/* New Dashboard Card Styles (SB Admin 2 inspired) */
.card.shadow {
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15)!important;
}

.card.border-left-primary {
    border-left: .25rem solid #4e73df!important;
}

.card.border-left-success {
    border-left: .25rem solid #1cc88a!important;
}

.card.border-left-info {
    border-left: .25rem solid #36b9cc!important;
}

.card.border-left-warning {
    border-left: .25rem solid #f6c23e!important;
}

.text-xs {
    font-size: .7rem;
}

.font-weight-bold {
    font-weight: 700!important;
}

.text-primary {
    color: #4e73df!important;
}

.text-success {
    color: #1cc88a!important;
}

.text-info {
    color: #36b9cc!important;
}

.text-warning {
    color: #f6c23e!important;
}

.text-uppercase {
    text-transform: uppercase!important;
}

.mb-1 {
    margin-bottom: .25rem!important;
}

.h5 {
    font-size: 1.25rem;
}

.text-gray-800 {
    color: #5a5c69!important;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.text-gray-300 {
    color: #dddfeb!important;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.no-gutters > .col,
.no-gutters > [class*=col-] {
    padding-right: 0;
    padding-left: 0;
}

.py-2 {
    padding-top: .5rem!important;
    padding-bottom: .5rem!important;
}

.h-100 {
    height: 100%!important;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 85vw; /* Content area takes remaining 85% */
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }

    #wrapper.toggled #page-content-wrapper {
        width: 100vw; /* Take full width when sidebar is toggled */
    }
}

.scrollable-content {
    height: calc(100vh - 56px - 1rem); /* Adjust height based on navbar height and padding */
    overflow-y: auto;
    padding-bottom: 1rem; /* Ensure some padding at the bottom */
}