<style>
    /* Modern color scheme */
    body {
        background-color: #f1f3f5;
        font-family: 'Roboto', sans-serif;
        color: #495057;
        margin: 0;
        padding: 0;
    }

    .container {
        margin-left: 270px !important;
        padding: 30px;
    }

    .main-content {
        padding: 30px;
        margin-left: 270px; /* Adjusted width of the sidebar */
        transition: margin-left 0.3s ease; /* Smooth transition for any future dynamic changes */
    }

    h2 {
        font-size: 2rem;
        color: #343a40;
        margin-bottom: 20px;
        font-weight: 600;
    }

    h1 {
        font-size: 2rem;
        color: #343a40;
        margin-bottom: 20px;
        font-weight: 600;
    }

    /* Cards */
    .card {
        border: none;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .card-header {
        background-color: #007bff;
        color: #fff;
        font-weight: 500;
        border-radius: 10px 10px 0 0;
    }

    .card-body {
        background-color: #fff;
        border-radius: 0 0 10px 10px;
    }

    .card-body h5 {
        font-size: 2rem;
        font-weight: 600;
        color: #343a40;
    }

    /* List items */
    .list-group-item {
        border: none;
        padding: 15px;
        background-color: #fff;
        font-size: 1.1rem;
        color: #495057;
        border-radius: 8px;
        margin-bottom: 10px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .list-group-item:hover {
        background-color: #f8f9fa;
        transform: translateY(-3px);
    }

    /* Sidebar */
    .sidebar {
        background-color: #343a40;
        color: #fff;
        height: 100vh;
        width: 250px; /* Adjusted to 250px for better balance */
        position: fixed;
        top: 0;
        left: 0;
        padding-top: 30px;
        padding-bottom: 30px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: width 0.3s ease; /* Smooth transition for any future dynamic changes */
    }

    .sidebar .avatar {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        text-align: center;
    }

    .sidebar .avatar img {
        border-radius: 50%;
        margin-right: 10px;
    }

    .sidebar .avatar span {
        font-size: 1.2rem;
        font-weight: bold;
    }

    .sidebar a {
        color: #fff;
        font-size: 1.1rem;
        padding: 10px 20px;
        text-decoration: none;
        display: block;
        transition: background-color 0.3s ease;
    }

    .sidebar a:hover {
        background-color: #007bff;
        border-radius: 5px;
    }

    .sidebar .dropdown-toggle {
        cursor: pointer;
    }

    .sidebar .collapse {
        background-color: #2c3e50;
        margin-left: 10px;
        border-radius: 5px;
        margin-top: 5px;
    }

    .sidebar .collapse a {
        font-size: 1rem;
        padding: 8px 20px;
        color: #dcdcdc;
        transition: background-color 0.3s ease;
    }

    .sidebar .collapse a:hover {
        background-color: #007bff;
        color: #fff;
    }

    /* Grid layout */
    .row {
        display: flex;
        justify-content: space-between;
    }

    .col-md-4 {
        flex: 1;
        margin-right: 20px;
    }

    .col-md-4:last-child {
        margin-right: 0;
    }

    /* Ensure the charts have the same height */
    .chart-container {
        height: 400px; /* Set a fixed height for both charts */
    }
    .card-body.chart-container {
    height: 400px !important;
}
</style>
