@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    outline: none;
    text-transform: capitalize;
    transition: all 0.2s linear;
}

html {
    font-size: 85%;
    scroll-behavior: smooth;
    scroll-padding-top: 9rem;
}

html::-webkit-scrollbar {
    width: 1rem;
}

html::-webkit-scrollbar-track {
    background: #111;
}

html::-webkit-scrollbar-thumb {
    background: #29d9d5;
}

body,
button {
    font-family: "Inter", sans-serif;
}

a {
    text-decoration: none;
}

:root {
    --offcanvas-width: 269px;
    --topNavbarHeight: 56px;
    --purple-1: #300030;
    --purple-2: #480048;
    --purple-3: #601848;
    --purple-4: #c04848;
    --purple-5: #f07241;
}


.dashboard {
    min-height: calc(100vh - var(--topNavbarHeight) - 30px) !important;
}

.topbar {
    z-index: 999999;
}

.bg-purple1 {
    background-color: var(--purple-1);
}

.bg-purple2 {
    background-color: var(--purple-2);
}

.bg-purple3 {
    background-color: var(--purple-3);
}

.bg-purple4 {
    background-color: var(--purple-4);
}

.bg-purple5 {
    background-color: var(--purple-5);
}

.text-purple1 {
    color: var(--purple-1);
}

.text-purple2 {
    color: var(--purple-2);
}

.text-purple3 {
    color: var(--purple-3);
}

.text-purple4 {
    color: var(--purple-4);
}

.text-purple5 {
    color: var(--purple-5);
}

/* active class start */
.sidebar .nav-item.active .nav-link {
    font-weight: 700
}

.sidebar-light .nav-item.active .nav-link {
    color: #6e707e
}

.sidebar-light .nav-item.active .nav-link i {
    color: #6e707e
}

.sidebar-dark .nav-item.active .nav-link {
    color: #fff
}

.sidebar-dark .nav-item.active .nav-link i {
    color: #fff
}

/* active class end */

.sidebar-nav {
    width: var(--offcanvas-width);
}

.sidebar-link {
    display: flex;
    align-items: center;
}

.sidebar-link .right-icon {
    display: inline-flex;
    transition: all 0.25s;
}

.sidebar-link[aria-expanded="true"] .right-icon {
    transform: rotate(180deg);
}

.img-profile {
    width: calc(var(--topNavbarHeight) - 30px);
}

/* .img-logo {
    height: calc(var(--topNavbarHeight) - 15px);
} */
.sidebar a:hover {
    color: var(--purple-5);
}

.hide {
    display: none;
}

.logout-samping {
    display: none;
}

main {
    margin-top: var(--topNavbarHeight);
    padding: 15px 10px;
}

.preview {
    overflow: hidden;
    width: 160px;
    height: 160px;
    margin: 10px;
    border: 1px solid red;
}

.image_area {
    position: relative;
    height: fit-content;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, .5);
    overflow: hidden;
    transition: .5s ease;
    width: 100%;
}

.image_area:hover .overlay {
    height: 50%;
    cursor: pointer;
}

.image_area .text {
    color: #333;
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

@media (min-width:361px) {
    #sidebar-kecil {
        margin-top: var(--topNavbarHeight) !important;
    }

    .logout-samping {
        display: none;
    }

    .icon-consultant {
        padding: 0.7rem;
        width: 50%;
        font-size: 0.8rem !important;
    }

    .icon-consultant .btn {
        font-size: .8rem !important;
    }
}

@media (max-width:360px) {
    #sidebar-kecil {
        margin-top: var(--topNavbarHeight) !important;
    }

    .logout-samping {
        display: block;
    }

    #tombolnavbarSupportedContent {
        display: none;
    }

    .icon-consultant {
        padding: 1rem;
    }

    .nav-brand {
        font-size: 1rem;
    }
}

@media (min-width:650px) {
    .icon-consultant {
        width: 33%;
    }
}

@media (min-width:992px) {
    body {
        overflow: auto !important;
    }

    /* ::-webkit-scrollbar {
        display: none;
    } */
    ::-webkit-scrollbar {
        width: 1rem;
        height: 1rem;
    }

    ::-webkit-scrollbar-track {
        background: #111;
    }

    ::-webkit-scrollbar-thumb {
        background: #29d9d5;
    }

    .offcanvas-backdrop::before {
        display: none;
    }

    .nav-brand {
        color: var(--purple-5);
        display: none;
    }

    main {
        margin-top: var(--topNavbarHeight);
        padding: 15px 10px;
    }

    main,
    .topbar {
        margin-left: var(--offcanvas-width);
    }

    .img-logo {
        max-height: var(--topNavbarHeight);
    }

    .sidebar-nav {
        transform: none;
        visibility: visible !important;
        /* top: var(--topNavbarHeight); */
        /* height: calc(100% - var(--topNavbarHeight)); */
    }

    .icon-consultant {
        padding: 1rem;
    }
}