/* Start global rules */
:root {
    --primary-color: #2771e4;
    --secondary-color: #8fb8ee;
    --grey-color: #eff4f6;
    --background-color: #f6f9fb;
    --category-color: #dbe2f9;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}
/* End global rules */

/* Start Components */
/* Start button */
.btn-add {
    position: relative;
    display: block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 15px 15px 30px;
    font-weight: 700;
    font-size: 15px;
    width: 150px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.btn-add::before {
    content: "\2b";
    position: absolute;
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}
/* End button */
/* Start Task */
.task {
    display: flex;
    background-color: #ededed;
    margin-bottom: 15px;
    padding: 15px 0;
    border-radius: 8px;
    background-color: #e6eaeb94;
}
.task input {
    padding: 50px;
    margin: 0 15px;
    width: 20px;
}
.task input:checked ~ .info p {
    text-decoration: line-through;
    color: #888;
}
.task .info p {
    font-size: 19px;
    font-weight: 400;
    margin: 0px;
    cursor: pointer;
}
.task .info span {
    display: inline-block;
    background-color: #dbe2f9;
    padding: 7px;
    border-radius: 15px;
    font-size: 13px;
    position: relative;
    top: 7px;
}
/* End Task */
/* Start add task window */
.add-task-form {
    display: none;
    position: absolute;
    background-color: rgba(190, 190, 190, 0.667);
    backdrop-filter: blur(2px);
    width: 100vw;
    height: 100vh;
    z-index: 100;
}
.add-task-form .content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    padding: 15px 30px;
    border-radius: 10px;
}
@media (max-width: 576px) {
    .add-task-form .content {
        width: 350px;
        padding: 15px 20px;
    }
}
.add-task-form .content h3 {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 25px;
}
.add-task-form .content > div:not(:last-of-type) {
    margin-bottom: 20px;
}
.add-task-form .content > div label {
    display: inline-block;
    width: 80px;
    font-size: 17px;
}
.add-task-form .content > div > input[type="text"] {
    padding: 10px 10px 10px 10px;
    width: 300px;
    border-radius: 10px;
    border: 0px;
    background-color: var(--grey-color);
}
.add-task-form .content > div > input[type="text"]:focus {
    outline: none;
}
@media (max-width: 576px) {
    .add-task-form .content > div > input[type="text"] {
        margin-top: 10px;
    }
}
.add-task-form .content > div > select {
    width: 200px;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    border: 0px;
    background-color: var(--grey-color);
}
.add-task-form .content .buttons {
    display: flex;
    justify-content: center;
    column-gap: 15px;
}
.add-task-form .content button {
    display: inline-block;
    width: 120px;
    padding: 12px 12px 12px 30px;
}
.add-task-form .content button.cancel {
    background-color: rgb(254, 82, 82);
}
.add-task-form .content button.cancel::before {
    content: "\f057";
}
/* End add task window */
/* Start edit task window */
.edit-task-form {
    display: none;
    position: absolute;
    background-color: rgba(190, 190, 190, 0.667);
    backdrop-filter: blur(2px);
    width: 100vw;
    height: 100vh;
    z-index: 100;
}
.edit-task-form .content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    padding: 15px 30px;
    border-radius: 10px;
}
@media (max-width: 576px) {
    .edit-task-form .content {
        width: 350px;
        padding: 15px 20px;
    }
}
.edit-task-form .content h3 {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 25px;
}
.edit-task-form .content > div:not(:last-of-type) {
    margin-bottom: 20px;
}
.edit-task-form .content > div label {
    display: inline-block;
    width: 80px;
    font-size: 17px;
}
.edit-task-form .content > div > input[type="text"] {
    padding: 10px 10px 10px 10px;
    width: 300px;
    border-radius: 10px;
    border: 0px;
    background-color: var(--grey-color);
}
.edit-task-form .content > div > input[type="text"]:focus {
    outline: none;
}
@media (max-width: 576px) {
    .edit-task-form .content > div > input[type="text"] {
        margin-top: 10px;
    }
}
.edit-task-form .content > div > select {
    width: 200px;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    border: 0px;
    background-color: var(--grey-color);
}
.edit-task-form .content .buttons {
    display: flex;
    justify-content: center;
    column-gap: 15px;
}
.edit-task-form .content button {
    display: inline-block;
    width: 120px;
    padding: 12px 12px 12px 30px;
}
.edit-task-form .content button.cancel {
    background-color: rgb(254, 82, 82);
}
.edit-task-form .content button.delete {
    background-color: rgb(35, 125, 67);
}
.edit-task-form .content button.edit::before {
    content: "\f044";
}
.edit-task-form .content button.delete::before {
    content: "\f2ed";
}
.edit-task-form .content button.cancel::before {
    content: "\f057";
}
/* End add task window */
/* Start add category window */
.add-category-form {
    display: none;
    position: absolute;
    background-color: rgba(190, 190, 190, 0.667);
    backdrop-filter: blur(2px);
    width: 100vw;
    height: 100vh;
    z-index: 100;
}
.add-category-form .content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    padding: 15px 30px;
    border-radius: 10px;
}
@media (max-width: 576px) {
    .add-category-form .content {
        width: 350px;
        padding: 15px 20px;
    }
}
.add-category-form .content h3 {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 25px;
}
.add-category-form .content > div:not(:last-of-type) {
    margin-bottom: 20px;
}
.add-category-form .content > div label {
    display: inline-block;
    width: 80px;
    font-size: 17px;
}
.add-category-form .content > div > input[type="text"] {
    padding: 10px 10px 10px 10px;
    width: 300px;
    border-radius: 10px;
    border: 0px;
    background-color: var(--grey-color);
}
@media (max-width: 576px) {
    .add-category-form .content > div > input[type="text"] {
        margin-top: 10px;
    }
}
.add-category-form .content > div > select {
    width: 150px;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    border: 0px;
}
.add-category-form .content > div > input[type="text"]:focus {
    outline: none;
}
.add-category-form .content .buttons {
    display: flex;
    justify-content: center;
    column-gap: 15px;
}
.add-category-form .content button {
    display: inline-block;
    width: 120px;
    padding: 12px 12px 12px 30px;
}
.add-category-form .content button.cancel {
    background-color: rgb(254, 82, 82);
}
.add-category-form .content button.cancel::before {
    content: "\f057";
}
/* End add category window */
/* Start edt category window */
.edit-category-form {
    display: none;
    position: absolute;
    background-color: rgba(190, 190, 190, 0.667);
    backdrop-filter: blur(2px);
    width: 100vw;
    height: 100vh;
    z-index: 100;
}
.edit-category-form .content {
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    padding: 15px 30px;
    border-radius: 10px;
}
@media (max-width: 576px) {
    .edit-category-form .content {
        width: 350px;
        padding: 15px 20px;
    }
}
.edit-category-form .content h3 {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 25px;
}
.edit-category-form .content > div:not(:last-of-type) {
    margin-bottom: 20px;
}
.edit-category-form .content > div label {
    display: inline-block;
    width: 80px;
    font-size: 17px;
}
.edit-category-form .content > div > input[type="text"] {
    padding: 10px 10px 10px 10px;
    width: 300px;
    border-radius: 10px;
    border: 0px;
    background-color: var(--grey-color);
}
@media (max-width: 576px) {
    .edit-category-form .content > div > input[type="text"] {
        margin-top: 10px;
    }
}
.edit-category-form .content > div > select {
    width: 150px;
    padding: 10px 10px 10px 10px;
    border-radius: 10px;
    border: 0px;
}
.edit-category-form .content > div > input[type="text"]:focus {
    outline: none;
}
.edit-category-form .content .buttons {
    display: flex;
    justify-content: center;
    column-gap: 15px;
}
.edit-category-form .content button {
    display: inline-block;
    width: 120px;
    padding: 12px 12px 12px 30px;
}
.edit-category-form .content button.cancel {
    background-color: rgb(254, 82, 82);
}
.edit-category-form .content button.delete {
    background-color: rgb(35, 125, 67);
}
.edit-category-form .content button.edit::before {
    content: "\f044";
}
.edit-category-form .content button.delete::before {
    content: "\f2ed";
}
.edit-category-form .content button.cancel::before {
    content: "\f057";
}
/* End edit category window */
/* End Components */

/* Start Page */
.page {
    display: flex;
    background-color: var(--background-color);
    height: 100vh;
    position: relative;
}
/* Start Sidebar */
aside {
    flex: 1;
    background-color: #dcdfe4;
    padding: 12px;
    position: relative;
}
aside.hide {
    display: none;
}
aside h2 {
    margin: 50px 0 30px 0;
    font-size: 25px;
    font-weight: 700;
    /* text-align: center; */
    color: #343434;
}
@media (max-width: 576px) {
    aside h2 {
        font-size: 18px;
        text-align: center;
        font-weight: 700;
    }
}
aside ul {
    position: relative;
    padding-top: 1px;
}
aside ul::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    top: 0;
    background-color: #343434;
}
aside .category {
    font-size: 17px;
    border-radius: 7px;
    color: #4f5559;
    padding: 10px;
    margin: 10px 0px;
    cursor: pointer;
    transition:
        background-color 0.3s,
        color 0.3s;
}
aside .category:hover {
    background-color: #f6f9fb;
    color: var(--primary-color);
}
aside .category.active {
    background-color: #f6f9fb;
    color: var(--primary-color);
}
aside button.add-category {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    aside button.add-category {
        padding: 10px 10px 10px 30px;
        width: 120px;
        font-size: 11px;
        font-weight: 900;
    }
}
@media (max-width: 576px) {
    aside button.add-category {
        width: 50%;
        bottom: initial;
        padding: 15px 10px 15px 30px;
    }
    aside button.add-category span {
        display: none;
    }
}
@media (max-width: 576px) {
    aside button.add-category::before {
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
/* End Sidebar */
/* Start right page */
.right-page {
    flex: 5;
}
/* Start Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
}
@media (max-width: 576px) {
    header {
        flex-direction: column;
        align-items: initial;
        padding-bottom: 10px;
    }
}
header > div:first-of-type {
    display: flex;
    align-items: center;
    /* margin: 0px 20px; */
}
header > div:first-of-type i {
    display: none;
    font-size: 29px;
    color: black;
    margin: 0px 5px 0px 15px;
    cursor: pointer;
}
@media (max-width: 992px) {
    header > div:first-of-type i {
        display: inline;
    }
}
header h1 {
    color: #343434;
    margin: 20px 15px;
}
@media (max-width: 576px) {
    header h1 {
        margin: 10px 15px;
    }
}
header .search {
    margin-right: 40px;
    position: relative;
    height: fit-content;
}
@media (max-width: 576px) {
    header .search {
        margin-right: 0;
        position: relative;
        height: fit-content;
        align-self: center;
    }
}
header .search::before {
    content: "\f002";
    font-family: "Font Awesome 7 Free";
    font-weight: 600;
    font-size: 12px;
    color: grey;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 1;
}
header div input[type="search"] {
    padding: 10px 10px 10px 35px;
    width: 300px;
    border-radius: 17px;
    border: 0px;
    background-color: var(--grey-color);
    position: relative;
}
header div input[type="search"]:focus {
    outline: none;
}
/* End Header */
/* Start Main */
main {
    padding: 15px 20px 0 20px;
    /* background-color: #FBFFF1; */
}
main .add-task {
    margin-bottom: 20px;
}
main .add-task button.btn-add {
    width: 120px;
}
/* End Main */
/* End right page */
/* End Page */
