@import url(theme.css);
@import url(form.css);
@import url(table.css);


@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');


* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style-type: none;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    transition: all 0.2s linear;
}

a {
    text-decoration: none;
}


:root {
    --color-primary: #6a11cb;
    --color-primary-dark: #2575fc;
    --color-dark-text: rgb(72, 79, 83);
    --blue: #0056f5;
    --red: #ff5454;
    --green: #07b57e;
    --color-pagination: #0342ff;
}

/* ================SCROLLBAR============= */

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #cfcfcf;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #dfdfdf;
}


/* ===================Siderbar============== */


body {
    display: flex;
}

main {
    max-height: 100vh;
    overflow: auto;
}

main .content {
    overflow-y: auto;
    padding: 15px;
}


aside {
    min-width: 240px;
    width: 240px;
    height: 100%;
    border-right: 1px solid #F0F0F0FF;
    display: flex;
    flex-direction: column;
}


@media screen and (max-width:600px) {
    aside {
        margin-left: -240px;
    }

    aside.open {
        margin-left: 0;
    }
}

@media screen and (min-width:600px) {
    aside {
        margin-left: 0;
    }

    aside.open {
        margin-left: -240px;
    }
}


aside a {
    display: block;
    padding: 10px 0;
    margin-top: 5px;
    margin-right: 5px;
    color: var(--color-dark-text);
    border-radius: 0 20px 20px 0;
    transition: all 0.5s;
}

aside a:hover,
aside a.active {
    background-color: var(--color-primary-dark);
    color: #fff;
}

aside a:hover i,
aside a.active i {
    color: #fff;
}

aside a i {
    margin: 0px 20px;
    font-size: 18px;
    color: var(--color-sidebar-text);
}

/* ==============Media Query========== */



/* -------------- Main ----------- */
main {
    width: 100%;
}

main header {
    height: 60px;
    background-color: var(--color-sidebar-bg);
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px;
}

main header i {
    font-size: 30px;
    cursor: grab;
    color: #808AA0FF;
}



header {
    background-color: #FFF;
    position: sticky;
    top: 0px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

header #pageName {
    /* background-color: var(--color-primary-dark); */
    color: var(--color-primary-dark);
    border-radius: 10px;
    font-weight: bolder;
}

header .menu {
    color: var(--color-primary-dark);
    cursor: pointer;
    font-size: 25px;
    font-weight: bolder;
}

header .menu span {
    margin-left: 20px;
    display: inline-block;
    text-transform: capitalize;
    font-weight: bolder;
}

/* ----------- page Loader---------- */

.page_loader {
    position: fixed;
    inset: 0;
    background-color: #ffffffe1;
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.page_loader i {
    font-size: 60px;
    color: #ff8898;
}

.page_loader .progress {
    width: 50px;
    height: 50px;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-color: var(--color-primary) #0000;
    outline: 10px solid white;
    background-color: white;
    animation: animated_pre_loader 1.5s infinite ease-out;
}

.page_loader .progress::before,
.page_loader .progress::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
}

.page_loader .progress::before {
    border-color: #f0f0f0 #0000;
    animation: inherit;
    animation-duration: 0.5s;
    animation-direction: reverse;
}

.page_loader .progress::after {
    margin: 8px;
}

@keyframes animated_pre_loader {
    100% {
        transform: rotate(1turn);
    }
}