/* * -- icono de producto --------------------------*/
.todo-icon {
    width: 48px;
    height: 48px;
}

/* * -- botones ------------------------------------*/

.btn {
    display: inline-flex;
    justify-content: start;
    align-items: center;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    line-height: 1.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: normal;
    vertical-align: middle;
    text-align: center;
    margin: 8px 0px;
    padding: 4px 0px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    color: var(--font-color-dark);
}
@media (min-width: 768px) {
    .btn {
        font-size: 0.8rem;
    }
}


.btn--new::before {
    content: '';
    display: inline-block;
    background-image: url('../assets/svg/add-ellipse-svgrepo-com.svg');
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.btn--save::before {
    content: '';
    display: inline-block;
    background-image: url('../assets/svg/save-01-svgrepo-com.svg');
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.btn--edit::before {
    content: '';
    display: inline-block;
    background-image: url('../assets/svg/add-1-svgrepo-com.svg');
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.btn--cancel::before {
    content: '';
    display: inline-block;
    background-image: url('../assets/svg/cancle-circle-svgrepo-com.svg');
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.btn--delete::before {
    content: '';
    display: inline-block;
    background-image: url('../assets/svg/trash-svgrepo-com.svg');
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

.btn--done::before {
    content: '';
    display: inline-block;
    background-image: url('../assets/svg/check-square-svgrepo-com.svg');
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
}

/* * -- elementos de texto -------------------------*/

.title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.hidden {
    display: none;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.frase {
    font-family: monospace;
    font-weight: 600;
    color: var(--font-color-accept);
}

.link {
    font-weight: 600;
    color: var(--font-color-done);
    cursor: pointer;
}

.link:hover {
    color: var(--font-color-cancel);
}

.funfact {
    margin-top: 2rem;
    font-style: italic;
    color: var(--font-color-cancel);
}

@media (min-width: 768px) {
    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .text-base {
        font-size: 0.9rem;
    }
}

/* * -- nota ---------------------------------------*/
.note {
    position: relative;
    width: 100%;           /* Mobile: ancho completo */
    flex: 0 0 100%;        /* No crecer, no encogerse, 100% ancho */
    height: 300px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border: 1px solid var(--bg-color-dark);
    /* recorte de esquina superior derecha */
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

@media (min-width: 576px) {
    .note {
        width: 240px;
        max-width: 300px;
        flex: 1 0 240px;   /* crecer desde base 240px */
    }
}

/* sombreado de esquina doblada ANTES de nota */
.note::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 21px;
    height: 23px;
    background-color: var(--bg-color-accent);
}

/* esquina doblada DESPUES de nota */
.note::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: var(--bg-color-gray);

}

.note__header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-color-dark);
}

.note__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.note__title::first-letter {
    text-transform: uppercase;
}

.note__deadline {
    font-size: 1.1rem;
}

.note__title,
.note__deadline,
.note__text {
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--bg-color-dark);
}

@media (min-width: 768px) {

    .note__title {
        font-size: 1.1rem;
    }

    .note__deadline,
    .note__text {
        font-size: 0.9rem;
    }

}

.note-done {
    text-decoration: line-through;
}

.note__body {
    height: 60%;
    padding: 0.8rem 0;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Asegurar que el scroll funcione suavemente */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    .note__body {
        height: 70%;
        max-height: 230px;
    }
}

.note__controls {
    display: flex;
    justify-content: space-between;
}

.note__controls--hidden {
    display: none;
}


/* * -- formulario ---------------------------------*/
.form-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem 1rem;
    background-color: var(--bg-color-accent);
}

.form {
    width: 100%;
    max-width: 400px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--bg-color-light);
}

.form--hidden {
    display: none;
}

.form__label {
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 400;
}

.form__label::first-letter {
    text-transform: uppercase;
}

.form__input-wrapper {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 100%;
}

.form__input {
    display: block;
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid var(--bg-color-dark);
    font-family: 'Roboto', sans-serif;
}

@media (min-width: 768px) {
    .form__label,
    .form__input {
        font-size: 0.8rem;
    }
}

.form__input--textarea {
    height: auto;
    resize: vertical;
}

.form__buttons-container {
    width: 100%;
    height: auto;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}