// Contains layout styling. e.g: nav, sidebar, tabs etc

header.primary-header {
    display: flex;
    align-items: center;

    width: 100%;
    height: 86px;
    background: #ffffff 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 25px #81818129;
    padding: 15px 40px;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;

    .logo {
        margin-right: 35px;
    }

    .secondary-nav {
        & > div:last-child button:nth-child(3) {
            display: none;
        }
    }
}

// main sidebar
aside.primary-aside {
    width: 225px;
    height: 100vh;
    background: transparent
        linear-gradient(169deg, $color-secondary 0%, $color-primary 100%) 0% 0%
        no-repeat padding-box;
    box-shadow: 0px 0px 20px #0000002b;
    border-radius: 0px 20px 20px 0px;
    opacity: 1;

    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;

    .logo-container {
        width: 225px;
        height: 121px;
        background: transparent
            linear-gradient(140deg, #ffffff 0%, #f3f3f3 100%) 0% 0% no-repeat
            padding-box;
        border-radius: 0px 20px 0px 0px;

        display: flex;
        align-items: center;
        justify-content: center;
    }
    .heading {
        color: #bebee6;
        font-weight: 300;
        font-size: 12px;
        padding-bottom: 8.5px;
        border-bottom: 1px solid #9897d6;
        margin: 24px 20px 16px;
    }

    ul {
        padding-left: 16px;
        li {
            a {
                width: 212px;
                height: 30px;

                border-radius: 4px 0px 0px 4px;
                padding: 4px 13px;
                margin-bottom: 17px;

                text-decoration: none;

                display: flex;
                align-items: center;

                &,
                &:hover {
                    color: #ffffff;
                }
                span {
                    padding: 0 7px;
                }
            }
        }
        li.active a {
            background: transparent
                linear-gradient(289deg, #2d2ba8 0%, #089752 100%) 0% 0%
                no-repeat padding-box;
            box-shadow: 0px 0px 20px #0000002b;
        }
    }
}

// RTL styling overrides
*[dir="rtl"] aside.primary-aside {
    position: fixed;
    left: auto !important;
    right: 0;

    border-radius: 20px 0 0 20px !important;

    .logo-container {
        border-radius: 20px 0 0 0 !important;
    }

    ul {
        padding-left: 0 !important;
        padding-right: 16px;
        li {
            a {
                border-radius: 0 4px 4px 0 !important;
            }
        }
    }

    li.active a {
        background: transparent
            linear-gradient(289deg, #089752 0%, #2d2ba8 100%) 0% 0% no-repeat
            padding-box;
    }
}

// main top nav bar - primary navbar
.nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 63px;
    padding: 0 20px 0 250px;

    position: fixed;
    right: 0;
    top: 0;
    z-index: 9;

    background-color: #fff;
    box-shadow: 3px 0 15px #85858529;
}

// RTL styling overrides
*[dir="rtl"] .nav {
    padding: 0 250px 0 20px;
}

// profile container
.profile-container {
    cursor: pointer;
    span {
        display: inline-block;
        vertical-align: middle;
        font-size: 18px;
        font-weight: 600;
        transform: scale(1);
        transition: transform 0.2s ease-in-out;
        color: #04041c;

        margin-left: 10px;
        margin-right: 47px;
    }
}

// RTL styling overrides
*[dir="rtl"] .profile-container {
    span {
        margin-right: 10px !important;
        margin-left: 47px;
    }
}

.profile-container:hover span {
    transform: scale(1.2);
}

// main - content (admin)

.primary-main {
    min-height: 100vh;
    margin: 95px 25px 25px 250px;
    padding-bottom: 20px;
}

// RTL styling overrides
*[dir="rtl"] .primary-main {
    margin: 95px 250px 25px 25px;
}

.secondary-main {
    margin: 110px 40px;
    padding: 0;
}

// secondary top nav

.secondary-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex: 1;
}

// # RTL styling overrides

*[dir="rtl"] .primary-header {
    .logo {
        margin-right: 0 !important;
        margin-left: 35px;
    }
}
