.content-wrapper {
    flex: 1;
}

footer {
    padding: 10px 0;
}

.bg-gradient-sidebar {
    background: linear-gradient(to top, #1e2c61, #3c56b6);
    box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.1);
    color: #fff;
}

.bg-gradient-top {
    background: linear-gradient(to top, #095cde, #53c3f3);
    box-shadow: 0 0 0 0.1rem rgba(9, 92, 222, 0.2);
}

.bg-gradient-bottom {
    background: linear-gradient(to bottom, #095cde, #53c3f3);
    box-shadow: 0 0 0 0.1rem rgba(9, 92, 222, 0.2);
}

.navbar {
    height: var(--navbar-height);
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    background-color: #fff;
}

.layout-navbar {
    --navbar-height: 70px;
}

.navbar-fixed .navbar-top {
    background-color: #fff;
}

.sidebar-wrapper {
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 2000;
    overflow-y: auto;
    background: linear-gradient(to top, #1e2c61, #3c56b6);
    color: #fff;
    bottom: 0;
    transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-wrapper .menu .sidebar-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    transition: all 0.5s;
    text-decoration: none;
    color: #fff;
}

.sidebar-wrapper .menu .sidebar-link svg,
.sidebar-wrapper .menu .sidebar-link i {
    color: #fff;
}

.sidebar-wrapper .menu .sidebar-item.active > .sidebar-link {
    background-color: #3651b0;
}

.sidebar-wrapper .menu .submenu .submenu-item.active > a {
    background-color: #3651b0;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
}

.sidebar-wrapper .menu .sidebar-link:hover {
    background-color: #3651b0;
}

.navbar {
    height: var(--navbar-height);
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    background-color: #fff;
}

html[data-bs-theme="dark"] .layout-navbar {
    --navbar-height: 70px;
}

html[data-bs-theme="dark"] .sidebar-wrapper {
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    background: linear-gradient(to top, #1e2c61, #3c56b6);
    color: #fff;
    bottom: 0;
    transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    transition: all 0.5s;
    text-decoration: none;
    color: #fff;
}

html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-link svg,
html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-link i {
    color: #fff;
}

html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-item.active > .sidebar-link {
    background-color: #3651b0;
}

html[data-bs-theme="dark"] .sidebar-wrapper .menu .submenu .submenu-item.active > a {
    background-color: #3651b0;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
}

html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-link:hover {
    background-color: #3651b0;
}

@media (max-width: 768px) {
    .sidebar-wrapper {
        z-index: 1000;
        background: linear-gradient(to top, #1e2c61, #3c56b6);
        color: #fff;
        left: -100%; /* Sidebar disembunyikan secara default */
    }

    /* Teks sidebar tetap putih */
    .sidebar-wrapper .menu .sidebar-link {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        border-radius: 0.5rem;
        transition: all 0.5s;
        text-decoration: none;
        color: #fff;
    }

    .sidebar-wrapper .menu .sidebar-link svg,
    .sidebar-wrapper .menu .sidebar-link i {
        color: #fff;
    }
    
    .sidebar-wrapper .menu .sidebar-item.active > .sidebar-link {
        background-color: #3651b0;
    }
    
    .sidebar-wrapper .menu .sidebar-link:hover {
        background-color: #3651b0;
    }
    
    html[data-bs-theme="dark"] .sidebar-wrapper {
        z-index: 1000;
        background: linear-gradient(to top, #1e2c61, #3c56b6);
        color: #fff;
        left: -100%; /* Sidebar disembunyikan secara default */
    }

    /* Teks sidebar tetap putih */
    html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-link {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        border-radius: 0.5rem;
        transition: all 0.5s;
        text-decoration: none;
        color: #fff;
    }

    html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-link svg,
    html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-link i {
        color: #fff;
    }
    
    html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-item.active > .sidebar-link {
        background-color: #3651b0;
    }
    
    html[data-bs-theme="dark"] .sidebar-wrapper .menu .sidebar-link:hover {
        background-color: #3651b0;
    }
}
