:root {
    --color-primary: #123456;
    --color-secondary: #fff;
    --azul-royal: #144480;
    --fundo-card-timer: rgba(20, 68, 128, 0.3);
    --lils: #b872ff;
    --linear-botes: linear-gradient(180deg, #b872ff 0%, #144480 100%);
    --azul-profundo: #01080e;
    --fundo-card: rgba(255, 255, 255, 0.5);
    --fundo-card-concluido: rgba(0, 244, 191, 0.4);
    --fundo-modal-2: #1b293b;
}

[data-contexto="foco"] {
    --main-bg-color: linear-gradient(180deg,
            #8b1ff8 0%,
            #041832 48.44%,
            #01080e 100%);
}

[data-contexto="short"] {
    --main-bg-color: linear-gradient(180deg,
            #0f725c 0%,
            #041832 48.44%,
            #01080e 100%);
}

[data-contexto="long"] {
    --main-bg-color: linear-gradient(180deg,
            #1875e9 0%,
            #041832 48.44%,
            #01080e 100%);
}

* {
    box-sizing: border-box;
    max-width: 100%;
}

html {
    background: var(--main-bg-color);
    min-height: 100vh;
    font-size: 10px;
}

body {
    min-height: 100vh;
    background: url("/imagens/pattern.webp");
    background-size: cover;
    background-repeat: no-repeat;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Unbounded", cursive;
}

.app__logo-figure {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

.app__section-banner-container {
    width: 99rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.app__title {
    line-height: 150%;
    font-size: 5.2rem;
    font-style: normal;
    color: var(--color-secondary);
    font-weight: 200;
    max-width: 46rem;
}

.app__title-strong {
    font-weight: 600;
}

.app__section-card-container {
    display: flex;
    justify-content: center;
}

.app__card {
    border-radius: 3.2rem;
    border: 0.2rem solid var(--azul-royal);
    background: var(--fundo-card-timer);
    padding: 2.4rem;
    margin: 8rem 0 0 0;
    width: 59rem;
    max-width: 90%;
}

.app__card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}

.app__card-button {
    font-family: Montserrat;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    background: none;
    padding: 0.8rem;
    color: var(--color-secondary);
    border: none;
    cursor: pointer;
    outline: inherit;
}

.app__card-button.active {
    border-radius: 0.8rem;
    background: var(--azul-royal);
    font-weight: 600;
}

.app__card-timer {
    color: var(--color-secondary);
    text-align: center;
    font-family: Unbounded;
    font-size: 12rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 3.2rem;
    text-align: center;
}

.app__card-list-label {
    color: var(--color-secondary);
    font-family: Montserrat;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
}

.app__card-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.app__card-primary-button,
.app__card-secondary-button {
    padding: 0.8rem;
    width: 12rem;
    color: var(--color-secondary);
    border: none;
    cursor: pointer;
    outline: inherit;
    border-radius: 3.2rem;
    background: var(--linear-botes);
    margin-top: 3.2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* dropdown */
.dropdown-container {
    position: relative;
    font-family: Montserrat;
}

.app__section-task-header__ul {
    display: none;
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 0;
    min-width: 24rem;
    padding: 1.6rem;
}

.app__section-task-header__ul:hover,
.app__button-more:hover~.app__section-task-header__ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
    border-radius: 0.8rem;
    border: 0.2rem solid var(--azul-royal, #144480);
    background: var(--fundo-modal-2, #1b293b);
}

.app__section-task-header__li {
    margin: 1.6rem 0;
}

.app__section-task-header__li__button {
    width: 100%;
    border: none;
    border-radius: 1.6rem;
    cursor: pointer;
    outline: inherit;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    gap: 0.8rem;
    padding: 1rem;
}

.app__section-task-header__li__button:hover {
    background-color: #b872ff7e;
}

/* fim - dropdown */

.app__footer {
    display: flex;
    width: 100%;
    padding: 2.8rem 6rem;
    justify-content: center;
    align-items: center;
    background: #010b15;
}

.app__footer-text {
    color: rgba(182, 182, 182, 0.8);
    text-align: center;
    font-family: Montserrat;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

/* toggle */
.toggle {
    cursor: pointer;
    display: inline-block;
}

.toggle-switch {
    display: inline-block;
    background: #ccc;
    border-radius: 1.6rem;
    width: 5.8rem;
    height: 3.2rem;
    position: relative;
    vertical-align: middle;
    transition: background 0.25s;
}

.toggle-switch:before,
.toggle-switch:after {
    content: "";
}


.toggle-switch:before {
    display: block;
    background: linear-gradient(to bottom, #fff 0%, #eee 100%);
    border-radius: 50%;
    width: 2.4rem;
    height: 2.4rem;
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    transition: left 0.25s;
}

.toggle:hover .toggle-switch:before {
    background: linear-gradient(to bottom, #fff 0%, #fff 100%);
}

.toggle-checkbox:checked+.toggle-switch {
    background: var(--lils);
}

.toggle-checkbox:checked+.toggle-switch:before {
    left: 3rem;
}

.toggle-checkbox {
    position: absolute;
    visibility: hidden;
}

/* fim - toggle */

.hidden {
    display: none;
}

.material-symbols-outlined {
    color: #fff;
    cursor: pointer;
}

.error-message {
    display: none;
    color: #9d0000;
}

.task-edit-error-message {
    font-family: Montserrat;
    font-size: 1.2rem;
}

.overlayEditTask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.wrapper {
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-editTask-button {
    margin: 1rem 0 0 1rem;
}

.task-edit-page {
    padding: 2rem;
    background-color: #fff; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;

    transform: scale(0.8);
    transition: transform 0.5s ease-in-out;
}

.task-edit-page-wrapper {
    width: 100%;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.input-edit-task {
    width: 75%;
    height: 50%;

    padding: 10px;
    border: 1px solid var(--lils);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.input-edit-task:hover {
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.input-edit-task:focus {
    outline: none;
    border: 2px solid var(--lils);
}

.app__section-task-container {
    width: 70%;
    margin: 0 auto 5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.app__section-task-container>* {
    width: 100%;
}

.app__section-task-content {
    color: #fff;
}

.app__section-active-task {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10rem;
    padding: 4rem 0;
    border-bottom: 1px solid #144480;
    margin-bottom: 4rem;
}

.app__form-textarea,
.app__form-textarea::placeholder {
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    white-space: nowrap;
    font-family: Montserrat;
}

.app__section-active-task-description {
    font-family: Montserrat;
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.app__section-tasks-heading {
    color: #fff;
    font-size: 2.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.app__section-task-header {
    display: flex;
    justify-content: space-between;
}

.app__button-edit,
.app__button-delete,
.app__button-more {
    border: none;
    cursor: pointer;
    outline: inherit;
    background-color: transparent;
    display: flex;
    align-items: center;
}

.app__section-active-task-label {
    font-family: Montserrat;
    font-size: 2rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.app__section-task-list {
    margin-top: 2.4rem;
    margin-bottom: 4rem;
}

.app__section-task-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-radius: 0.8rem;
    background: var(--fundo-card);
    margin-bottom: 0.8rem;
    padding: 1.6rem;
    box-sizing: border-box;
    cursor: pointer;
}

.app__section-task-list-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

.app__section-task-list-item-description {
    flex-grow: 1;
    margin: 0;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    color: var(--azul-profundo);
    font-family: Montserrat;
}

.app__section-task-list-item-active.app__section-task-list-item {
    border: 2px solid #fff;
}

.app__section-task-list-item-complete.app__section-task-list-item {
    background: var(--fundo-card-concluido);
    color: #fff;
    cursor: inherit;
}

.app__section-task-list-item-complete .app__section-task-icon-status circle {
    fill: #00f4bf;
}

.app__form-add-task {
    padding: 1.6rem;
    border-radius: 0.8rem;
    background: var(--fundo-card);
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    font-family: Montserrat;
}

.app__form-label {
    color: var(--azul-profundo);
    font-family: Unbounded;
    font-size: 2.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    display: block;
    margin-bottom: 3.2rem;
}

.app__form-textarea {
    width: 100%;
    border-radius: 0.8rem;
    padding: 0.8rem;
    background: #98a0a8;
}

.app__form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.6rem;
    margin-top: 3.2rem;
    padding: 1rem;
}

.splitter {
    display: flex;
    gap: 2rem;
}

.app__form-footer__button {
    border: none;
    cursor: pointer;
    outline: inherit;
    background-color: transparent;
    display: flex;
    align-items: center;
    color: var(--azul-profundo);
    font-family: Montserrat;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    gap: 0.8rem;
}

.app__form-footer__button--save {
    border-radius: 3.2rem;
    padding: 0.8rem 2.4rem;
    color: #fff;
    background: var(--azul-profundo);
}

.app__button--add-task,
.btn-save-edit-task {
    border: none;
    cursor: pointer;
    outline: inherit;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--lils);
    border-radius: 3.2rem;
    border: 0.2rem solid var(--lils);
    width: 100%;
    margin-top: 1rem;
    padding: 1.8rem;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.app__button--add-task:hover,
.btn-save-edit-task:hover {
    color: #fff;
    background: #b872ff8c;
    border-color: #a049f7;
}

.btn-save-edit-task {
    width: 25%;
    padding: 0 1.8rem;
    margin: 0;
}

.app_button-edit:disabled {
    color: #e6e6e6;
    opacity: 0.8;
    cursor: not-allowed;
}

/* Para Tablets */
@media (max-width: 1024px) and (min-width: 768px) {
    .app__section-banner-container {
        width: 48rem;
    }
}

/* Para Celulares */
@media (max-width: 767px) {
    .app__section-banner-container {
        width: 32rem;
    }

    .app__title {
        font-size: 2.6rem;
    }

    .app__card-timer {
        font-size: 6rem;
    }

    .app__section-active-task {
        justify-content: center;
        gap: 1rem;
        padding-bottom: 4rem;
        margin: 4rem 0;
    }

    .app__section-task-header {
        align-items: center;
    }

    .app__section-task-list-item {
        gap: 1rem;
    }

    .app__section-task-list-item .splitter {
        gap: 1rem;
    }

    .app__form-footer {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0;
        padding: 0;
    }

    .app__form-footer__button--delete {
        width: 7%;
        font-size: 1.2rem;
        padding: 0;
    }
}