@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

/* background-image: linear-gradient(to right bottom, #284630, #356e3b, #4c973e, #6ec238, #9bec1f); */

:root{
    --background: #ffffff;
    --background-soft: #f6f5f2;
    --surface-muted: rgba(255, 255, 255, 0.72);
    --surface-outline: rgba(22, 22, 22, 0.08);
    --shadow: 0 18px 44px rgba(22, 22, 22, 0.08);
    --tileradius: 24px;
    --gradient: linear-gradient(to right bottom, #284630, #2d5c3a, #307343, #348b4c, #37a355);
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #37a355 100%);
    --progress-gradient: linear-gradient(
        to right bottom,
        rgba(55, 163, 85, 0.98),
        rgba(120, 178, 72, 0.96),
        rgba(220, 168, 48, 0.94),
        rgba(204, 92, 38, 0.96),
        rgba(160, 48, 64, 0.98)
    );
    --progress-gradient-stop-1: rgba(55, 163, 85, 0.98);
    --progress-gradient-stop-2: rgba(120, 178, 72, 0.96);
    --progress-gradient-stop-3: rgba(220, 168, 48, 0.94);
    --progress-gradient-stop-4: rgba(204, 92, 38, 0.96);
    --progress-gradient-stop-5: rgba(160, 48, 64, 0.98);
    --errorred: #ff0040;
    --textcolor: #161616;
    --green: #37a355;
}

*, *::before, *::after {
    box-sizing: border-box;
}

*:not(dialog) {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 22rem),
        radial-gradient(circle at bottom right, rgba(55, 163, 85, 0.08), transparent 24rem),
        var(--background-soft);
    min-height: 100vh;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

#root, #__next {
    isolation: isolate;
}

html, body {
    font-family: 'Nunito Sans', Helvetica, Arial, sans-serif;
    color: var(--textcolor);
}

.height-100{
    height: 100%;
}

.home-screen-container{
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 20rem),
        linear-gradient(135deg, #1f3f35 0%, #255c44 38%, #2d6d8f 100%);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.home-screen-container-inner{
    width: min(460px, 100%);
}

.text-label{
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.25em 0;
    color: #2f2b36;
}

.tile{
    display: flex;
    flex-direction: column;
    border-radius: var(--tileradius);
    border: 1px solid var(--surface-outline);
    height: 100%;
    min-height: 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.tile-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.flex{
    display: flex;
}

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

.flex-center{
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-end{
    display: flex;
    justify-content: flex-end;
}

.tile-header h1,
.tile-header h2,
.tile-header h3,
.tile-header h4{
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-page{
    width: 100%;
    padding: 1.5rem 1rem 2rem;
    border-radius: 25px;
    background:
            radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 24rem),
            radial-gradient(circle at bottom right, rgba(55, 163, 85, 0.08), transparent 20rem),
            #f6f5f2;
}

.app-page-grid{
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.app-panel{
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--surface-outline);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
}

.app-panel-inner{
    padding: 1.75rem;
}

.app-page-header{
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.app-page-header h1,
.app-side-panel h2,
.app-surface h2{
    color: #161616;
    background: none;
    -webkit-text-fill-color: initial;
}

.app-eyebrow{
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
    color: #6f6b7b;
    margin-bottom: 0.75rem;
}

.app-copy{
    max-width: 38rem;
    color: #5f5b68;
    font-size: 0.98rem;
}

.app-page-actions{
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-surface{
    min-height: 24rem;
    border: 1px solid rgba(22, 22, 22, 0.06);
    border-radius: 1.25rem;
    background:
        linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(79, 70, 229, 0) 55%),
        #ffffff;
    padding: 1.25rem;
}

.app-surface-soft{
    min-height: 0;
    border: 1px solid rgba(22, 22, 22, 0.05);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(248, 248, 248, 0.95), rgba(255, 255, 255, 0.95));
    padding: 1rem;
}

.form-surface{
    background: #ffffff;
}

.app-side-panel{
    padding: 1.5rem;
}

.app-side-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-pill{
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.85rem;
}

.app-metric-list{
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.app-metric-item{
    display: grid;
    gap: 0.6rem;
}

.app-metric-row{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    color: #3b3744;
}

.app-metric-row strong{
    color: #161616;
}

.app-metric-track{
    height: 0.42rem;
    background: rgba(22, 22, 22, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.app-metric-fill{
    height: 100%;
    border-radius: inherit;
    background: var(--accent-gradient);
}

.app-surface-soft h2,
.app-surface-soft h3{
    color: #161616;
    background: none;
    -webkit-text-fill-color: initial;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-container{
    display: flex;
    flex-direction: column;
}

.form-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
}

.form-input-label {
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.25em 0;
    color: inherit;
}

.form-input-field {
    padding: 0.5em 0.75em;
    border: 1px solid #ccc;
    border-radius: 12px;
    font: inherit;
    background: white;
}

.form-input-field:focus {
    outline: none;
}

.form-input-field:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-input-field::placeholder {
    color: #999;
}

.form-input-date,
.form-input-select {
    cursor: pointer;
}

.form-input-select {
    min-height: 2.5em;
}

.form-input-select option {
    padding: 0.25em 0.5em;
}

.form-input-field.input-error {
    border-color: var(--errorred);
    outline: none;
}

/* Hide number input spinner arrows */
.form-input-field[type="number"]::-webkit-inner-spin-button,
.form-input-field[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-input-field[type="number"] {
    -moz-appearance: textfield;
}

.form-btn-container{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-bottom: 0.5em;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid var(--errorred);
}

.validation-message {
    margin-right: 0.25rem;
    margin-top: -0.5rem;
    color: var(--errorred);
    font-size: 0.75rem;
    font-weight: bold;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnL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NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.border-top{
    border-top: 1px solid rgba(55, 163, 85, 0.5);
}

.daily-activity-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    width: 100%;
}

.multiple{
    grid-template-columns: 1fr 1fr 0.25fr!important;
}

.column-title{
    font-weight: bold;
    padding-bottom: 0.5rem;
    margin-left: 0.25rem;
}

/* Display */

.flex-column{
    flex-direction: column;
    display: flex;
}

/* Utilities */


.w-100{
    width: 100%;
}

.mx-1em{
    margin: 0 1em;
}

.mt-1em{
    margin-top: 1em;
}

.mr-0-5em{
    margin-right: 0.5em;
}

.no-mb{
    margin-bottom: 0!important;
}

.mt-minus-0-75{
    margin-top: -0.75rem;
}

.ml-minus-0-75{
    margin-left: -0.75em;
}

.mb-1{
    margin-bottom: 1rem!important;
}

.p0-5{
    padding: 0.5rem;
}

/* Containers */

.goal-container{
    display: grid;
    grid-template-columns:1fr 1fr;
    width: 100%;
    align-items: center;
    align-content: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .home-screen-container-inner {
        width: 90%;
    }

    .app-page{
        padding: 1rem 0.75rem 1.5rem;
    }

    .app-page-grid{
        grid-template-columns: 1fr;
    }

    .app-page-header{
        flex-direction: column;
    }

    .app-page-actions{
        justify-content: flex-start;
    }
}
