main.dashboard {
    padding: 1vw;
    width: 100%;
    min-height: 50vw;
    justify-content: start!important;
}

.main-dash-contents {
    margin-right: 21%;;
    width: 78%;
    min-height: 40vw;
    position: relative;
}

.main-dash-contents > div {
    padding: 2vw 3vw 2vw 1vw;
    width: 100%;
    min-height: 40vw;
    gap: 1vw;
    justify-content: start!important;
    align-items: start!important;
    display: none;
}

.main-dash-contents > div.activated {
    display: flex;
    animation: animate-dash-pages 0.3s linear forwards;
}

@keyframes animate-dash-pages {
    0% {opacity: 0; visibility: hidden}
    100% {opacity: 1; visibility: visible}
}

.main-dash-contents > div h1.title {
    width: 100%;
    padding-right: 1vw;
    text-align: start;
    justify-content: start!important;
    position: relative;
    font-size: 1.25vw;
}

.main-dash-contents > div h1.title::before {
    content: "";
    width: 0.958vw;
    height: 2vw;
    background-color: var(--blue2);
    transform: skew(-20deg);
    border-radius: 0.1vw;
    position: absolute;
    right: -0.75vw;
    bottom: 12%;
}

.main-dash-contents > div h1.title::after {
    content: "";
    width: 100%;
    height: 0.2vw;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.05));
    transform: skew(-20deg);
    border-radius: 0.1vw;
    position: absolute;
    right: -1vw;
    top: 110%;
}

body.dark .main-dash-contents > div h1.title::after {
    background: linear-gradient(to left, rgba(224, 224, 224, 0.5), rgba(224, 224, 224, 0.05));
}

.user-dash-home-box-cards {
    padding: 1vw;
    width: 100%;
    position: relative;
    gap: 1.5vw;
}

.user-dash-home-box-cards .home-box-card {
    padding: 0.5vw;
    width: 20vw;
    height: 7vw;
    border-radius: 1vw;
    gap: 1vw;
    box-shadow: 0 0 0.75vw rgba(0, 0, 0, 0.2);
    justify-content: start!important;
    position: relative;
    color: var(--dark-font) !important;
    transform: scale(0.9);
}

body.dark .user-dash-home-box-cards .home-box-card {
    box-shadow: 0 0 0.75vw rgba(0, 0, 0, 0.55);
}

.user-dash-home-box-cards .home-box-card svg {
    fill: var(--dark-font) !important;
}

.user-dash-home-box-cards .home-box-card:nth-child(1) {
    background-color: rgba(255, 0, 89, 0.85);
}

.user-dash-home-box-cards .home-box-card:nth-child(2) {
    background-color: rgba(0, 255, 208, 0.85);
}

.user-dash-home-box-cards .home-box-card:nth-child(3) {
    background-color: rgba(0, 196, 255, 0.85);
}

.user-dash-home-box-cards .home-box-card .division1 {
    width: 6vw;
    height: 6vw;
    border-radius: 0.8vw;
    background-color: rgba(255, 255, 255, 0.4);
    font-size: 2.5vw;
}

.user-dash-home-box-cards .home-box-card .division2 {
    width: calc(100% - 6vw);
    gap: 0.5vw;
    align-items: start!important;
}

.user-dash-home-box-cards .home-box-card .division2 h4 {
    font-size: 0.85vw;
}

.user-dash-home-box-cards .home-box-card .division2 h2 {
    font-size: 1.6vw;
    font-family: Vazir, sans-serif;
    gap: 0.5vw;
}

.user-dash-home-widgets {
    width: 100%;
    padding: 1vw;
    gap: 1.5vw;
    align-items: start!important;
}

.user-dash-home-widgets > div {
    padding: 0.5vw;
    width: 47%;
    min-height: 24vw;
    box-shadow: 0 0 0.75vw rgba(0, 0, 0, 0.2);
    border-radius: 2vw;
    align-items: start!important;
    flex-wrap: wrap!important;
    position: relative;
}

body.dark .user-dash-home-widgets > div {
    box-shadow: 0 0 0.75vw rgba(0, 0, 0, 0.6);
}

.user-dash-home-widgets-div-header {
    padding: 0.5vw;
    width: 95%;
    justify-content: space-between!important;
    border-bottom: 0.1vw solid rgba(192, 192, 192, 0.5);
}

.user-dash-home-widgets-div-header h3 {
    font-size: 0.95vw;
}

.user-dash-home-widgets-div-header .btn {
    color: var(--blue2);
    font-size: 0.9vw;
    background-color: transparent;
    gap: 0.3vw;
}

.dash-home-widgets-my-courses {
    width: 100%;
    max-height: 30vw;
    padding: 0.5vw;
    gap: 0.5vw;
    position: relative;
    align-items: start!important;
    flex-wrap: wrap!important;
}

.dash-home-widgets-my-courses > div {
    width: 47%;
    min-height: 5vw;
    border-radius: 0.7vw;
    position: relative;
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.2);
    /*background-color: rgba(227, 227, 227, 0.5);*/
    overflow: hidden;
    justify-content: start!important;
    transition: all 0.3s;
}

.dash-home-widgets-my-courses > div:hover {
    transform: scale(1.025);
}

body.dark .dash-home-widgets-my-courses > div {
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.55);
}

.dash-home-widgets-my-courses > div a {
    width: 100%;
    min-height: 5vw;
    border-radius: 0.7vw;
    gap: 0.5vw;
    position: relative;
}

.dash-home-widgets-my-courses > div img {
    width: 100%;
    height: 8vw;
    border-radius: 0.65vw;
}

.dash-home-widgets-my-courses > div a h4 {
    width: 100%;
    padding: 0.5vw 1vw;
    margin-bottom: 1vw;
    font-size: 0.9vw;
    text-align: start!important;
    font-weight: 500;
    min-height: 4vw;
}

.dash-home-widgets-my-tickets {
    padding: 1vw 0.75vw;
    width: 100%;
    min-height: 18vw;
    max-height: 30vw;
    position: relative;
    justify-content: start!important;
    gap: 0.3vw;
}

.dash-home-widgets-my-ticket-card {
    padding: 0.5vw 0.75vw;
    width: 100%;
    height: 4vw;
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.2);
    border-radius: 0.75vw;
    justify-content: space-between!important;
    position: relative;
    gap: 0.5vw;
    transition: all 0.25s;
}

body.dark .dash-home-widgets-my-ticket-card {
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.6);
}

.dash-home-widgets-my-ticket-card:hover {
    transform: scale(1.02);
}

.dash-home-widgets-my-ticket-card > div.dash-home-widgets-my-tickets-div1 {
    width: 52%;
    align-items: start!important;
}

.dash-home-widgets-my-ticket-card > div.dash-home-widgets-my-tickets-div1 h6 {
    font-size: 0.75vw;
    font-family: Vazir, sans-serif;
    font-weight: normal;
}

.dash-home-widgets-my-ticket-card > div.dash-home-widgets-my-tickets-div1 h3 {
    font-size: 0.85vw;
    font-weight: 500;
}

.dash-home-widgets-my-ticket-card > div.dash-home-widgets-my-tickets-div2 {
    width: 38%;
    justify-content: space-between!important;
    gap: 1vw;
}

div.dash-home-widgets-my-tickets-div2 .ticket-label {
    padding: 0.1vw 0.35vw;
    min-width: 6vw;
    font-weight: normal;
    font-size: 0.72vw;
    border: 0.1vw solid;
    border-radius: 0.35vw;
}

div.dash-home-widgets-my-tickets-div2 .ticket-label.answered {
    border-color: #00e1ae;
    background-color: rgba(163, 215, 202, 0.2);
    color: #00b08c;
}

div.dash-home-widgets-my-tickets-div2 .ticket-label.waiting {
    border-color: #ff9900;
    background-color: rgba(227, 220, 205, 0.2);
    color: #ff9900;
}

div.dash-home-widgets-my-tickets-div2 .ticket-label.closed {
    border-color: #ff0000;
    background-color: rgba(227, 205, 205, 0.2);
    color: #ff0000;
}


div.dash-home-widgets-my-tickets-div2 .ticket-date {
    font-weight: normal;
    font-family: Vazir, sans-serif;
    font-size: 0.78vw;
}




aside.dashboard {
    margin: 1vw;
    padding: 1vw;
    width: 20%;
    height: calc(100vh - 7vw);
    position: fixed;
    right: 0;
    top: 5vw;
    z-index: 3;
    border-radius: 2vw;
    box-shadow: 0 0 0.8vw rgba(0, 0, 0, 0.2);
    justify-content: start!important;
}

body.dark aside.dashboard {
    box-shadow: 0 0 0.8vw rgba(0, 0, 0, 0.6) !important;
}

aside.dashboard form.user-profile {
    padding-top: 1vw;
    padding-bottom: 1.5vw;
    width: 100%;
    position: relative;
    gap: 1.4vw;
}

aside.dashboard form.user-profile::before {
    content: "";
    width: 100%;
    height: 0.1vw;
    background: linear-gradient(to left, transparent, silver, transparent);
    position: absolute;
    bottom: 0;
    left: 0;
}

aside.dashboard form.user-profile input[type='file'] {
    display: none;
}

aside.dashboard form.user-profile .user-profile-photo {
    width: 4.5vw;
    height: 4.5vw;
    border-radius: 50%;
    border: 0.15vw solid rgba(192, 192, 192, 0.6);
    font-size: 2.5vw;
    position: relative;
}

aside.dashboard form.user-profile figure {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

aside.dashboard form.user-profile figure i {
    position: absolute;
    z-index: 1;
    opacity: 0.9;
}

aside.dashboard form.user-profile figure img {
    width: 100%;
    position: relative;
    z-index: 2;
}

aside.dashboard form.user-profile .user-profile-photo button.edit-profile {
    padding: 0!important;
    width: 1.8vw;
    height: 1.8vw;
    position: absolute;
    z-index: 4;
    left: -0.5vw;
    bottom: -0.5vw;
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    font-size: 0.9vw!important;
}

aside.dashboard form.user-profile .user-profile-photo button.edit-profile i {
    opacity: 0.7;
    transition: all 0.3s;
}
aside.dashboard form.user-profile .user-profile-photo button.edit-profile:hover i {
    color: var(--blue2);
    opacity: 1;
}

aside.dashboard form.user-profile h2 {
    max-width: 60%;
    font-size: 1.15vw;
    font-weight: 500;
    text-align: start;
    align-items: start!important;
    gap: 0.25vw;
    color: var(--blue2);
}

aside.dashboard form.user-profile h2 span {
    font-size: 0.65vw;
    font-weight: 300;
    color: var(--dark-font);
}

body.dark aside.dashboard form.user-profile h2 span {
    color: var(--light-font);
}

.dashboard-menu-container {
    width: 100%;
    height: calc(100vh - 16vw);
    position: relative;
    overflow: hidden;
    justify-content: start!important;
}

aside.dashboard ul.dashboard-menu {
    margin-top: 1vw;
    padding: 1vw;
    width: 90%;
    position: relative;
    gap: 0.75vw;
    overflow: auto;
    justify-content: start!important;
}

aside.dashboard ul.dashboard-menu::-webkit-scrollbar {
    width: 0.25vw;
}

aside.dashboard ul.dashboard-menu li {
    width: 100%;
    gap: 0.125vw;
    justify-content: start!important;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0.8vw;
    font-size: 0.95vw;
}

aside.dashboard ul.dashboard-menu li a {
    padding: 0.5vw 1vw;
    width: 100%;
    gap: 0.15vw;
    justify-content: start!important;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 0.8vw;
}

aside.dashboard ul.dashboard-menu li:hover {
    background-color: rgba(133, 204, 248, 0.5);
}

aside.dashboard ul.dashboard-menu li.active {
    background-color: var(--blue2);
    color: var(--light-font);
}

aside.dashboard ul.dashboard-menu li.active a {
    color: var(--light-font);
}

aside.dashboard ul.dashboard-menu li i {
    width: 2vw;
    text-align: center;
    transform: scale(1.1);
}

@media screen and (max-width: 450px) {
    main.dashboard {
        padding: 1vw;
        width: 100%;
        min-height: 50vw;
        justify-content: start!important;
    }

    .main-dash-contents {
        margin-right: 0;
        width: 100%;
        min-height: 100vw;
    }

    .main-dash-contents > div {
        padding: 6vw 2vw 2vw 2vw;
        min-height: 100vw;
        gap: 3vw;
    }

    .main-dash-contents > div h1.title {
        padding-right: 6vw;
        font-size: 4vw;
    }

    .main-dash-contents > div h1.title::before {
        width: 2.958vw;
        height: 5.5vw;
        border-radius: 0.5vw;
        right: 1vw;
    }

    .main-dash-contents > div h1.title::after {
        height: 0.5vw;
        border-radius: 0.6vw;
        right: -1vw;
    }

    .user-dash-home-box-cards {
        padding: 2vw 0;
        gap: 1vw;
        flex-wrap: wrap!important;
    }

    .user-dash-home-box-cards .home-box-card {
        padding: 1.5vw;
        width: 47%;
        height: 16vw;
        border-radius: 3vw;
        gap: 2vw;
        box-shadow: 0 0 2vw rgba(0, 0, 0, 0.2);
        transform: scale(0.95);
    }

    body.dark .user-dash-home-box-cards .home-box-card {
        box-shadow: 0 0 2vw rgba(0, 0, 0, 0.55);
    }

    .user-dash-home-box-cards .home-box-card .division1 {
        width: 14vw;
        height: 13vw;
        border-radius: 2vw;
        font-size: 6.5vw;
    }

    .user-dash-home-box-cards .home-box-card .division2 {
        width: calc(100% - 14vw);
        gap: 1vw;
    }

    .user-dash-home-box-cards .home-box-card .division2 h4 {
        font-size: 2.5vw;
    }

    .user-dash-home-box-cards .home-box-card .division2 h2 {
        font-size: 4vw;
        gap: 1.5vw;
    }

    .user-dash-home-box-cards .home-box-card .division2 h2 div.toman {
        width: 3.7vw!important;
        height: 3.7vw!important;
    }

    .admin-dash-home-analytics {
        padding: 1vw 2vw;
        gap: 3vw;
    }

    .admin-dash-home-chart {
        padding: 1vw;
        width: 100%;
        height: 48vw;
        box-shadow: 0 0 2.75vw rgba(0, 0, 0, 0.2);
        border-radius: 4vw;
    }

    body.dark .admin-dash-home-chart {
        box-shadow: 0 0 2.75vw rgba(0, 0, 0, 0.55);
    }

    .user-dash-home-widgets {
        width: 100%;
        padding: 2vw;
        gap: 3vw;
        flex-wrap: wrap!important;
    }

    .user-dash-home-widgets > div {
        padding: 1vw;
        width: 100%;
        min-height: 50vw;
        box-shadow: 0 0 2.75vw rgba(0, 0, 0, 0.2);
        border-radius: 4vw;
        flex-wrap: wrap!important;
    }

    body.dark .user-dash-home-widgets > div {
        box-shadow: 0 0 2.75vw rgba(0, 0, 0, 0.6);
    }

    .user-dash-home-widgets-div-header {
        padding: 2vw;
        width: 95%;
        border-bottom: 0.4vw solid rgba(192, 192, 192, 0.5);
    }

    .user-dash-home-widgets-div-header h3 {
        font-size: 3.5vw;
    }

    .user-dash-home-widgets-div-header .btn {
        font-size: 2.9vw;
        gap: 1vw;
    }

    .dash-home-widgets-my-courses {
        max-height: 150vw;
        padding: 3vw;
        gap: 2vw;
    }

    .dash-home-widgets-my-courses > div {
        width: 47%;
        min-height: 45vw;
        border-radius: 2.7vw;
        box-shadow: 0 0 2vw rgba(0, 0, 0, 0.2);
    }

    body.dark .dash-home-widgets-my-courses > div {
        box-shadow: 0 0 2vw rgba(0, 0, 0, 0.55);
    }

    .dash-home-widgets-my-courses > div a {
        min-height: 45vw;
        border-radius: 2vw;
        gap: 1.5vw;
        justify-content: start!important;
    }

    .dash-home-widgets-my-courses > div img {
        height: 23vw;
        border-radius: 2vw;
    }

    .dash-home-widgets-my-courses > div a h4 {
        padding: 1.5vw 3vw;
        margin-bottom: 3vw;
        font-size: 2.9vw;
        min-height: 6vw;
    }

    .dash-home-widgets-my-tickets {
        padding: 2vw 1.5vw;
        min-height: 18vw;
        max-height: 200vw;
        gap: 2.5vw;
    }

    .dash-home-widgets-my-ticket-card {
        padding: 1vw 2vw;
        height: 16vw;
        box-shadow: 0 0 2.5vw rgba(0, 0, 0, 0.2);
        border-radius: 2.5vw;
        gap: 2vw;
    }

    body.dark .dash-home-widgets-my-ticket-card {
        box-shadow: 0 0 2.5vw rgba(0, 0, 0, 0.6);
    }

    .dash-home-widgets-my-ticket-card > div.dash-home-widgets-my-tickets-div1 {
        width: 52%;
    }

    .dash-home-widgets-my-ticket-card > div.dash-home-widgets-my-tickets-div1 h6 {
        font-size: 3vw;
    }

    .dash-home-widgets-my-ticket-card > div.dash-home-widgets-my-tickets-div1 h3 {
        font-size: 3.3vw;
    }

    .dash-home-widgets-my-ticket-card > div.dash-home-widgets-my-tickets-div2 {
        width: 45%;
        gap: 1vw;
    }

    div.dash-home-widgets-my-tickets-div2 .ticket-label {
        padding: 0.3vw 1.5vw;
        min-width: 12vw;
        font-size: 2.4vw;
        border: 0.3vw solid;
        border-radius: 1vw;
    }


    div.dash-home-widgets-my-tickets-div2 .ticket-date {
        font-size: 2.3vw;
    }

    aside.dashboard {
        margin: 0;
        padding: 15vw 3vw 3vw 3vw;
        width: 60%;
        height: calc(100vh - 10vw);
        top: 14vw;
        border-radius: 0;
        box-shadow: 0 0 2.8vw rgba(0, 0, 0, 0.2);
        z-index: 19;
        background-color: var(--light-bg);
        transition: all 0.35s;
        transform: translateX(110%);
        opacity: 0;
        visibility: hidden;
    }

    body.dark aside.dashboard {
        box-shadow: 0 0 2.8vw rgba(0, 0, 0, 0.6) !important;
        background-color: var(--dark-bg);
    }

    aside.dashboard.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    aside.dashboard form.user-profile {
        padding-bottom: 4vw;
        gap: 3vw;
    }

    aside.dashboard form.user-profile::before {
        height: 0.4vw;
    }

    aside.dashboard form.user-profile .user-profile-photo {
        width: 13vw;
        height: 13vw;
        border: 0.3vw solid rgba(192, 192, 192, 0.6);
        font-size: 6.5vw;
    }

    aside.dashboard form.user-profile .user-profile-photo button.edit-profile {
        width: 5.5vw;
        height: 5.5vw;
        z-index: 4;
        left: -1.5vw;
        bottom: -1.5vw;
        font-size: 2.9vw!important;
    }

    aside.dashboard form.user-profile h2 {
        max-width: 60%;
        font-size: 3.5vw;
        gap: 1vw;
    }

    aside.dashboard form.user-profile h2 span {
        font-size: 2.5vw;
    }

    aside.dashboard ul.dashboard-menu {
        margin-top: 5vw;
        padding: 0 1vw;
        width: 90%;
        gap: 1vw;
    }

    aside.dashboard ul.dashboard-menu::-webkit-scrollbar {
        width: 1vw;
    }

    aside.dashboard ul.dashboard-menu li {
        gap: 1vw;
        border-radius: 3vw;
        font-size: 3.1vw;
    }

    aside.dashboard ul.dashboard-menu li a {
        padding: 2vw 3vw;
        width: 100%;
        gap: 2vw;
        border-radius: 3vw;
    }

    aside.dashboard ul.dashboard-menu li i {
        width: 5vw;
    }
}

