/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* rest styles */
button,
input,
textarea,
select {
    outline: none;
    font-family: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
    border: none;
    background: none;
}

button {
    cursor: pointer;
    color: inherit
}

input {
    color: inherit;
}

select,
option {
    color: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

/* fonts */
@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/yekan/woff/IRANYekanX-Light.woff') format('woff'),
        url('../fonts/yekan/woff2/IRANYekanX-Light.woff2') format('woff2');
    font-display: swap;
}



@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/yekan/woff/IRANYekanX-Black.woff') format('woff'),
        url('../fonts/yekan/woff2/IRANYekanX-Black.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 950;
    src: url('../fonts/yekan/woff/IRANYekanX-ExtraBlack.woff') format('woff'),
        url('../fonts/yekan/woff2/IRANYekanX-ExtraBlack.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/yekan/woff/IRANYekanX-Bold.woff') format('woff'),
        url('../fonts/yekan/woff2/IRANYekanX-Bold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/yekan/woff/IRANYekanX-Regular.woff') format('woff'),
        url('../fonts/yekan/woff2/IRANYekanX-Regular.woff2') format('woff2');
    font-display: swap;
}

/* public styles */
.hidden {
    display: none !important;
}

.overflow-hidden {
    overflow: hidden;
}



:root {
    --bg-color: #E2E8F0;
    --bg-section: #F1F5F9;
    --bg-blue: #155DFC;
    --text-primary: #0F172B;
    --text-secondary: #4A5565;
    --btn-color: #7C3AED;
    --text-red: #FB2C36;
    --text-white: #fff;
    --bg-rose: #ff2058c5;
    --bg-green: #00a63dd3;
    --bg-slate: #2D355A;
    --purple-700: #7008E7;
    --yellow: #FFDF20;
}

body.dark {
    --bg-color: #1D293D;
    --text-primary: #fff;
    --bg-section: #364153;
}

html {
    box-sizing: border-box;
    font-size: 10px;
    scroll-behavior: smooth;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: IRANYekanX, sans-serif;
    font-weight: normal;
    font-size: 1.6rem;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-primary);

}

.loader-wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}




.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid lightblue;
    border-right-color: orange;
    animation: l2 1s infinite linear;
}

@keyframes l2 {
    to {
        transform: rotate(1turn)
    }
}





.new-task-wrapper {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all .3 ease-in-out;
}

.new-task-wrapper--show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-task-wrapper--edit {
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-task-wrapper--edit .new-task__rest-btn,
.new-task-wrapper--edit .new-task__submit {
    display: none;
}

.new-task {
    background: var(--bg-section);
    padding: 2rem 1rem;
    border-radius: 1rem;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, .3);
    width: 45rem;
}

.new-task__head {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.new-task__title,
.new-task__title--edit {
    font-weight: 600;
}

.new-task-wrapper--edit .new-task__title {
    display: none;
}

.new-task__title--edit {
    display: none;
}

.new-task-wrapper--edit .new-task__title--edit {
    display: block;
}

.new-task__close-btn {}

.new-task__close-btn svg {
    width: 2.5rem;
    height: 2.5rem;
}

.new-task__main {
    margin: 3rem 0;
}

.new-task__input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.new-task__input-wrapper:not(:first-child) {
    margin-top: 2rem;
}

.new-task__label {}

.new-task__input {
    border: 1px solid var(--bg-color);
    border-radius: .5rem;
    height: 4rem;
    padding: 0 1rem;
}

.new-task__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.new-task__detail-wrapper {}

.new-task__detail-wrapper select {
    border: 1px solid var(--bg-color);
    padding: .5rem 1rem;
    border-radius: .5rem;
}

.new-task__detail-wrapper option {
    background: var(--bg-color);
}

.new-task__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.new-task-wrapper--edit .new-task__edit {
    display: inline-block;
}

.new-task__edit {
    display: none;
}

.new-task__footer button {
    border-radius: .5rem;
    border: 1px solid var(--bg-color);
    height: 4rem;
    width: 9rem;
    background: var(--bg-green);
    color: var(--text-white);
}

.new-task__footer button:first-child {
    background: var(--bg-rose) !important;
}


.notific-wrapper {
    position: fixed;
    left: 1rem;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1001;
}

.notific {
    background: var(--bg-section);
    border-radius: 1rem;
    width: 30rem;
    height: 15rem;
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
}

.notific svg {
    width: 2.5rem;
    height: 2.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

.notific use {
    pointer-events: none;
}

.category-wrapper {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;

}

.category-wrapper--show {
    display: flex;
}

.new-category {
    background: var(--bg-section);
    padding: 2rem 1rem;
    border-radius: 1rem;
    position: relative;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
}

.new-category__close-btn {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.new-category input {
    border: 1px solid var(--bg-color);
    height: 4rem;
    border-radius: 1rem;
    padding: 1rem;
}

.new-category__title {
    font-weight: 600;
    margin-bottom: 2rem;
}

.new-category__btn {
    height: 4rem;
    background: var(--bg-blue);
    padding: 0 3rem;
    margin-right: 1rem;
    border-radius: 1rem;
    color: var(--text-white);
}


.main {}

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 20%;
    max-height: 100vh;
    background: var(--bg-section);
    color: var(--text-primary);
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    overflow-y: auto;
    z-index: 50;

}

.sidebar--show {
    right: 0 !important;
    display: flex !important;
    box-shadow: -1px 1px 2px rgb(0 0 0 / 23%)
}

.sidebar__close-btn {
    cursor: pointer;
    position: absolute;
    top: .5rem;
    left: 0.5rem;
    display: none;

}

.sidebar__close-btn svg {
    width: 2.5rem;
    height: 2.5rem;
}


.sidebar__logo {
    height: 5.8rem;
    width: 5.8rem;
    margin: 0 auto;
}

.sidebar__logo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.sidebar__title {
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
}

.sidebar__btn {
    display: block;
    background: var(--btn-color);
    color: var(--text-white);
    height: 6rem;
    width: 80%;
    border-radius: .5rem;
    margin: 3rem auto;
    font-size: 1.8rem;
    cursor: pointer;
}

.category {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 -2rem;
}



.category__item {
    display: flex;
    align-items: center;
    height: 4rem;
}

.category__item--active {
    background: var(--bg-color);
    position: relative;
}

.category__item--active::after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    bottom: 0;
    width: .3rem;
    background-color: var(--text-red);
}

.category__item>span {
    padding-right: 3rem;
    transition: all .3s ease-in-out;
    cursor: pointer;

}

.category__item>span:hover {
    color: var(--text-red);
}

.todo-category {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    margin: 1rem 0 0;
    padding-right: 1rem;
    cursor: pointer;
}

.todo-category--active svg {
    transform: rotate(0deg) !important;
}

.todo-category svg {
    width: 1.5rem;
    height: 1.5rem;
    transform: rotate(180deg);
    transition: all .3s ease-in-out;
}

.todo-category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 4rem;
    margin: 1rem 0;
    height: 0;
    overflow: hidden;
    transition: all .3 ease-in-out;

}

.todo-category-list--show {
    height: auto;
}



.todo-category-list__item {
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
}



.dark .todo-category-list__item {

    color: var(--text-primary) !important;

}


#new-category-btn {
    border: 1px dotted var(--text-primary);
    padding: .7rem .3rem;
    width: 4rem;
    border-radius: .5rem;
    color: var(--text-primary) !important;
    font-size: 1.4rem;
    margin-right: 4rem;
    margin-top: 1rem;
    display: none;
    transition: all .3 ease-in-out;
}

.todo-category-list--show+#new-category-btn {
    display: inline-block;
}

.darkmode {
    margin: 3rem 0;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .2rem;
}

.darkmode__track {
    background: var(--bg-color);
    height: 3rem;
    width: 6rem;
    border-radius: 5rem;
    position: relative;
    padding: .3rem;
}

#darkmode-check {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: pointer;

}

#darkmode-check:checked+.darkmode__thumb {
    left: 0;
    right: auto;
}

.darkmode__thumb {
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    background: var(--btn-color);
    margin: auto 0;
    z-index: 1;
    transition: all .3s ease-in-out;

}

.delete-data {
    display: flex;
    justify-content: center;
}

.delete-data__btn {
    color: var(--text-red);
    font-size: 1.4rem;
    cursor: pointer;
    text-decoration: underline;
}

.sidebar__btns {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.btn {
    width: 50%;
    height: 4rem;
    font-size: 1.4rem;
    border-radius: .5rem;
    background: var(--bg-blue);
    color: var(--text-white);
    cursor: pointer;
}

.content {

    width: 80%;
    min-height: 100vh;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 3rem;



}

.content__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.mobile-menu-btn {
    cursor: pointer;
    display: none;
}

.mobile-menu-btn svg {
    width: 3rem;
    height: 3rem;
}

.search,
.search-mobile {
    background: var(--bg-section);
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1rem;
    border-radius: 4rem;
    height: 4.5rem;
    flex-basis: 31%;
}

.search {
    display: flex;
}

.search-mobile {
    display: none;
}

.search svg,
.search-mobile svg {

    width: 2rem;
    height: 2rem;
}

.search__input {
    width: 100%;
    height: 100%;
}

.date {}

.date__day {}

.date__month {}

.date__year {}

.task-btn {
    background: var(--btn-color);
    color: var(--text-white);
    padding: 2rem 3rem;
    border-radius: 1rem;
    cursor: pointer;
}

.content__main {
    margin-top: 3rem;
}

.task-title {
    margin: 3rem 0;
    font-size: 2.4rem;
    font-weight: bold;
}

.task-title__count {}

.task-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.view {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view__grid,
.view__list {
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;

}


.filter {
    cursor: pointer;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    padding: 1rem 3rem;
    border-radius: 1rem;
    gap: 1rem;
    position: relative;
}

.filter svg {
    width: 2.5rem;
    height: 2.5rem;
}

.filter:hover .filter__wrapper {
    opacity: 1;
    visibility: visible;
}

.filter__wrapper {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: var(--bg-section);
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
    z-index: 1000;
    top: 5rem;
    left: 0;
    right: 0;
    transition: all .3s ease-in-out;
}



.filter__item:hover {
    color: var(--bg-rose);
}

.task-wrapper {

    margin: 3rem 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(25rem, 1fr));
    gap: 1rem;
}

.task-wrapper-massage {
    margin-top: 2rem;
}

.task-wrapper--list {
    grid-template-columns: 1fr;
}

.task-box {
    position: relative;
    background: var(--bg-section);
    padding: 5rem 1rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--bg-color);
}

.task-box__category {
    position: absolute;
    top: 1rem;
    background: var(--purple-700);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    font-size: 1.2rem;
    z-index: 0;

}

.task-box__title {
    font-size: 1.8rem;
    font-weight: 600;
    white-space: nowrap;
    width: 33rem;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 1rem;
}

.task-box__description {
    font-weight: 300;
    font-size: 1.4rem;
    margin: 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;

}

.task-box__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    margin: 2rem 0;
}

.task-box__date {}

.task-box__rate {
    display: flex;
    align-items: center
}

.task-box__rate svg {
    width: 2rem;
    height: 2rem;
}

.task-box__timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
}

.task-box__time-btns button {
    padding: .6rem 1rem;
    font-size: 1.4rem;
    border-radius: 1rem;
    cursor: pointer;
    color: var(--text-white);
}

.task-box__time-btns button:first-child {
    background-color: var(--bg-slate);

}

.task-box__time-btns button:last-child {
    background-color: var(--bg-rose);

}

.task-box__time {
    font-size: 2rem;

}

.task-box__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: .2rem dashed var(--text-secondary);
}

.task-box__done-btn {
    cursor: pointer;
    background: var(--bg-green);
    color: var(--text-white);
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-size: 1.4rem;
}

.task-box--done .task-box__done-btn {
    background: var(--yellow) !important;
}

.task-box--done .task-box__title,
.task-box--done .task-box__description {
    text-decoration: line-through;
}

.task-box__edit {}

.task-box__edit button {
    cursor: pointer;
}

.task-box__edit svg {
    width: 3rem;
    height: 3rem;
    pointer-events: none;

}
















/* responsive */
@media screen and (max-width:1280px) {

    .sidebar {
        width: 25%;
    }

    .content {
        width: 75%;
    }
}

@media screen and (max-width:1024px) {
    .sidebar {
        display: none;
        width: 30rem;
        right: -30rem;
    }

    .content {
        width: 100%;
        margin-right: 0;
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .sidebar__close-btn {
        display: block;
    }




}

@media screen and (max-width:768px) {
    .search {
        display: none;
    }

    .task-btn {
        padding: 1.5rem 2rem;
    }

    .search-mobile {
        display: flex;
    }
}

@media screen and (max-width:600px) {
    .view {
        display: none;
    }

    .task-menu {

        justify-content: flex-end;
    }

    .new-task {
        width: 34rem;
    }

    .task-wrapper {

        grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr)) !important;

    }


}