:root {
    --color-primary: #123456;
    --color-secondary: #FFF;
    --azul-royal: #144480;
    --fundo-card-timer: rgba(20, 68, 128, 0.30);
    --lils: #4566a0;
    --linear-botes: linear-gradient(180deg, #B872FF 0%, #144480 100%);
    --azul-profundo: #a05383;
    --fundo-card: rgba(255, 255, 255, 0.50);
    --fundo-card-concludo: #4566a0;

    /* Cores base do layout */
    --main-bg-color: linear-gradient(180deg, #123456 0%, #0b0c10 100%);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --btn-bg: linear-gradient(180deg, #B872FF 0%, #144480 100%);
    --card-bg: rgba(20, 68, 128, 0.30);
    --card-border: #144480;
    --card-bg-complete: rgba(0, 244, 191, 0.40);
}

[data-contexto="foco"] {
    background: linear-gradient(180deg, #ffd9d0, #ececfb);
    --text-primary: #3c486b; /* vinho suave */
    --text-secondary: #7286a0; /* vermelho mais fechado */
    --btn-bg: linear-gradient(180deg, #ffb3b3 0%, #ff8e8e 100%);
    --card-bg: rgba(255, 179, 179, 0.3);
    --card-border: #ff8e8e;
    --card-bg-complete: #4566a0;
    --timer: #6c1f1f;
}

[data-contexto="descanso-curto"] {
    --main-bg-color: linear-gradient(180deg, #bad2df, #ffd9d0);
    --text-primary: #255957; /* verde-azulado escuro */
    --text-secondary: #3e7c75; /* tom médio */
    --btn-bg: linear-gradient(180deg, #a8e6cf 0%, #70c1b3 100%);
    --card-bg: rgba(168, 230, 207, 0.3);
    --card-border: #70c1b3;
    --card-bg-complete: #4566a0;
    --timer: #255957;
}

[data-contexto="descanso-longo"] {
    --main-bg-color: linear-gradient(180deg, #ececfb, #f9f9ff);
    --text-primary: #3c486b; /* azul profundo suave */
    --text-secondary: #7286a0;
    --btn-bg: linear-gradient(180deg, #d1d5f0 0%, #a0b4e3 100%);
    --card-bg: rgba(161, 174, 226, 0.3);
    --card-border: #a0b4e3;
    --card-bg-complete: #4566a0;
    --timer: #3c486b;
}


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

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

body {
    min-height: 100vh;
    position: relative;
    z-index: 0;
    
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./imagens/pattern.png");
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.3; /* aqui você controla */
    z-index: -1;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Unbounded', cursive;
    color: var(--text-primary);
}

.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;
}

.description {
    padding-bottom: 4em;
}

.app__title {
    line-height: 150%;
    font-size: 5.2rem;
    font-style: normal;
    color: var(--text-primary);
    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(--card-border);
    background: var(--card-bg);
    padding: 2.4rem;
    margin: 8rem 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(--text-primary);
    border: none;
    cursor: pointer;
    outline: inherit;
}

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

.app__card-timer {
    color: var(--timer);
    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(--text-primary);
    font-family: Montserrat;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
}

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

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

.footer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 2.8rem 6rem;
    justify-content: space-around;
    align-items: center;
    background: #010B15;
}

.footer-lista-item {
    flex: 1 1 200px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-family: 'Unbounded', cursive;
    
}

.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%;
}

.footer-lista {
    display: block;
    padding: 1em;
}

.footer__container {
    text-align: center;
}

.footer__container img {
    width: 50%;
    height: auto;
}

.footer-lista > li {
    padding: 1em 0;
}

.footer__contato {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 1.4rem 6rem;
    justify-content: space-around;
    align-items: center;
    background: #03182e;
}

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

.footer__contato-imagem img {
    padding: 0 .5em;
    opacity: 0.3;
}



/* 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(--color-primary);
}

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

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

/* fim - toggle */

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

.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: block;
    text-align: right;
    border-radius: 0.8rem;
    border: 0.2rem solid var(--card-border);
    background: var(--card-bg);
}

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

.app__section-task-header__li__button {
    width: 100%;
    border: none;
    cursor: pointer;
    outline: inherit;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-primary);
    gap: 0.8rem;
}

.app__description { 
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-align: justify;
    line-height: 2;
    font-family: 'Unbounded', cursive;
    margin-bottom: 0;
}

/* fim - dropdown */

.btn-voltar {
    position: fixed;
    top: 18rem;
    left: 5rem;
    padding: 0.5rem 1rem;
    background: var(--btn-bg, #B872FF);
    color: white;
    font-weight: bold;
    font-size: 2em;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.btn-voltar:hover {
    background: var(--lils);
}

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

    .btn-voltar {
        display: none;
    }

    .app__title {
        font-size: 2.6rem;
    }

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

    .app__section-active-task {
        gap: 2rem;
    }
}

.hidden {
    display: none;
}

.app__section-task-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.app__section-task-content {
    width: 59rem;
    max-width: 90%;
    color: var(--text-primary);
}

.app__section-active-task {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6rem;
    padding: 4rem 0;
    border-bottom: 1px solid var(--card-border);
    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: 2.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    color: var(--text-primary);
}

.app__section-tasks-heading {
    font-size: 2.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    color: var(--text-primary);
}

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

.app_button-edit,
.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: 2.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    color: var(--text-secondary);
}

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

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

.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(--color-secondary);
    font-family: Montserrat;
}

.app__section-task-list-item-complete.app__section-task-list-item {
    background: var(--card-bg-complete);
    cursor: inherit;
}

.app__section-task-list-item-active.app__section-task-list-item {
    border: 2px solid var(--text-primary);
}

.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(--card-bg);
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%; 
    font-family: Montserrat;
    color: var(--text-primary);
}

.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;
    color: var(--azul-profundo);
}

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

.app__form-footer .splitter {
    flex-grow: 1;
}

.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--confirm {
    border-radius: 3.2rem;
    padding: 0.8rem 2.4rem;
    color: #fff;
    background: var(--azul-profundo);
}

.app__button--add-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: 4rem;
    margin-bottom: 4rem;
    padding: 1.8rem;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

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

.animar {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 1s;
    
}

.animar-visivel {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}


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

    .app__title {
        font-size: 2.6rem;
    }

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

    .footer-lista {
        text-align: center;
    }

    .footer__contato-item {
        font-size: 1.4em;
        padding-bottom: 1em;
    }

    .footer__contato-imagem {
        padding: 1em;
    }
}

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

        .footer {
        flex-direction: column;
    }

        .footer-lista {
        text-align: center;
    }
}




