/* ==========================================================
   TypingTutor.Online
   Daily Practice Goals + Adaptive Lessons v17.1.1
   File: css/practice-plan.css
========================================================== */

/* ==========================================================
   LESSON HEADER
========================================================== */

.lesson-duration-card {
    position: relative;
}

.lesson-duration-card small {
    display: block;
    margin-top: 3px;

    color: #7a8799;

    font-size: .55rem;
    font-weight: 750;
    line-height: 1;
}

.daily-goal-lesson-card {
    min-width: 105px;
}

.daily-goal-lesson-track {
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 7px;

    overflow: hidden;

    background: #e6edf6;
    border-radius: 999px;
}

#dailyGoalLessonFill {
    display: block;
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2f75f0,
            #57a0ff
        );

    border-radius: inherit;
    transition: width .25s ease;
}

.daily-goal-lesson-card.daily-goal-complete {
    background: #effbf5 !important;
    border-color: #bfe7d2 !important;
}

.daily-goal-lesson-card.daily-goal-complete
#dailyGoalLessonFill {
    background: #18a566;
}

/* ==========================================================
   STATISTICS DAILY GOAL
========================================================== */

.daily-practice-summary {
    display: grid;
    grid-template-columns:
        minmax(220px, .9fr)
        minmax(310px, 1.35fr)
        minmax(290px, .9fr);

    gap: 18px;
    align-items: center;

    width:
        calc(100% - 32px);
    max-width: 1400px;

    margin:
        0 auto 14px;

    padding:
        18px 20px;

    color: #26354d;
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .98),
            rgba(246, 250, 255, .98)
        );

    border:
        1px solid
        #dce5f1;

    border-radius: 18px;

    box-shadow:
        0 12px 34px
        rgba(15, 23, 42, .07);
}

.daily-practice-summary-heading {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.daily-practice-summary-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;

    color: #2668da;
    background: #edf5ff;

    border:
        1px solid
        #d7e7fb;

    border-radius: 13px;

    font-size: 1.1rem;
    font-weight: 800;
}

.daily-practice-summary-heading span {
    display: block;
    margin-bottom: 3px;

    color: #62728a;

    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.daily-practice-summary-heading h2 {
    margin: 0 0 3px;

    color: #16243b;

    font-size:
        clamp(1rem, 1.5vw, 1.25rem);

    line-height: 1.2;
}

.daily-practice-summary-heading p {
    margin: 0;

    color: #718097;

    font-size: .68rem;
    line-height: 1.4;
}

.daily-practice-summary-values {
    display: flex;
    gap: 7px;
    align-items: baseline;
    flex-wrap: wrap;

    margin-bottom: 9px;

    color: #64748b;

    font-size: .74rem;
}

.daily-practice-summary-values > strong {
    color: #1e65dd;
    font-size: 1.05rem;
}

.daily-practice-summary-values em {
    margin-left: auto;

    color: #728198;

    font-size: .67rem;
    font-style: normal;
    font-weight: 700;
}

.daily-practice-summary-track {
    position: relative;
    width: 100%;
    height: 10px;

    overflow: hidden;

    background: #e7eef7;
    border-radius: 999px;
}

#dailyPracticeFill {
    display: block;
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2e78f5,
            #5c95ff
        );

    border-radius: inherit;
    transition: width .25s ease;
}

.daily-practice-summary-facts {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;
}

.daily-practice-summary-facts > span {
    display: grid;
    min-width: 0;
    min-height: 62px;
    padding: 9px 8px;
    place-content: center;
    gap: 4px;

    background:
        rgba(238, 245, 255, .72);

    border:
        1px solid
        #dce7f5;

    border-radius: 12px;

    text-align: center;
}

.daily-practice-summary-facts small {
    color: #718097;

    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.daily-practice-summary-facts strong {
    color: #18273f;

    font-size: .76rem;
    line-height: 1.2;
}

.daily-practice-summary.daily-goal-complete {
    border-color: #bfe5d0;
    background:
        linear-gradient(
            135deg,
            #f6fff9,
            #edf9f3
        );
}

.daily-practice-summary.daily-goal-complete
#dailyPracticeFill {
    background: #18a566;
}

/* ==========================================================
   SETTINGS
========================================================== */

.setting-inline-fields {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.setting-custom-minutes {
    display: inline-flex;
    gap: 6px;
    align-items: center;

    color: #65758c;

    font-size: .72rem;
    font-weight: 700;
}

.setting-custom-minutes[hidden] {
    display: none !important;
}

.setting-custom-minutes input {
    width: 82px;
    min-height: 38px;
}

.practice-plan-settings-message {
    min-height: 18px;
    margin: 5px 0 0;
}

/* ==========================================================
   COMPLETION TOAST
========================================================== */

.daily-goal-toast {
    position: fixed;
    z-index: 3000;
    right: 20px;
    bottom: 20px;

    display: grid;
    grid-template-columns:
        auto minmax(0, 1fr) auto;

    width: min(390px, calc(100% - 30px));
    padding: 14px 15px;
    gap: 11px;
    align-items: start;

    color: #184e38;
    background:
        rgba(239, 253, 246, .98);

    border:
        1px solid
        #a9dec4;

    border-radius: 15px;

    box-shadow:
        0 18px 48px
        rgba(15, 23, 42, .2);

    opacity: 0;
    transform:
        translateY(14px);

    pointer-events: none;

    transition:
        opacity .18s ease,
        transform .18s ease;
}

.daily-goal-toast[hidden] {
    display: none !important;
}

.daily-goal-toast-visible {
    opacity: 1;
    transform:
        translateY(0);

    pointer-events: auto;
}

.daily-goal-toast > span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #18a566;

    border-radius: 999px;

    font-weight: 900;
}

.daily-goal-toast strong {
    display: block;
    margin-bottom: 3px;

    color: #15533a;
    font-size: .86rem;
}

.daily-goal-toast p {
    margin: 0;

    color: #4a725f;
    font-size: .72rem;
    line-height: 1.45;
}

.daily-goal-toast button {
    padding: 2px 5px;

    color: #47715d;
    background: transparent;
    border: 0;

    font-size: 1.2rem;
    cursor: pointer;
}

/* ==========================================================
   DARK THEME
========================================================== */

html[data-theme="dark"]
.lesson-duration-card small {
    color: #a8b6ca;
}

html[data-theme="dark"]
.daily-goal-lesson-track {
    background: #26364d;
}

html[data-theme="dark"]
.daily-goal-lesson-card.daily-goal-complete {
    background: #17372d !important;
    border-color: #2d6751 !important;
}

html[data-theme="dark"]
.daily-practice-summary {
    color: #dfe9f7;
    background:
        linear-gradient(
            135deg,
            #121d30,
            #101a2b
        );

    border-color: #2b3c55;
}

html[data-theme="dark"]
.daily-practice-summary-heading h2,
html[data-theme="dark"]
.daily-practice-summary-facts strong {
    color: #f0f5ff;
}

html[data-theme="dark"]
.daily-practice-summary-heading span,
html[data-theme="dark"]
.daily-practice-summary-heading p,
html[data-theme="dark"]
.daily-practice-summary-values,
html[data-theme="dark"]
.daily-practice-summary-values em,
html[data-theme="dark"]
.daily-practice-summary-facts small {
    color: #aab8cc;
}

html[data-theme="dark"]
.daily-practice-summary-track {
    background: #223149;
}

html[data-theme="dark"]
.daily-practice-summary-facts > span {
    background: #17243a;
    border-color: #2d425d;
}

html[data-theme="dark"]
.daily-practice-summary.daily-goal-complete {
    background:
        linear-gradient(
            135deg,
            #123027,
            #11271f
        );

    border-color: #2c634f;
}

html[data-theme="dark"]
.daily-goal-toast {
    color: #c7f3de;
    background:
        rgba(20, 50, 40, .98);

    border-color: #36745b;
}

html[data-theme="dark"]
.daily-goal-toast strong {
    color: #e7fff4;
}

html[data-theme="dark"]
.daily-goal-toast p {
    color: #b7dcc9;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {
    .daily-practice-summary {
        grid-template-columns:
            minmax(210px, .85fr)
            minmax(300px, 1.2fr);
    }

    .daily-practice-summary-facts {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .daily-practice-summary {
        grid-template-columns:
            minmax(0, 1fr);

        width:
            calc(100% - 20px);

        margin:
            0 auto 10px;

        padding: 15px;

        border-radius: 16px;
    }

    .daily-practice-summary-facts {
        grid-column: auto;
    }

    .daily-practice-summary-values em {
        width: 100%;
        margin-left: 0;
    }

    .daily-goal-lesson-card {
        min-width: 92px;
    }

    .setting-inline-fields {
        width: 100%;
        justify-content: flex-start;
    }

    .daily-goal-toast {
        right: 15px;
        bottom: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #dailyGoalLessonFill,
    #dailyPracticeFill,
    .daily-goal-toast {
        transition: none;
    }
}
