/* Fonts */
@font-face {
    font-family: ChesterMain;
    src: url('../fonts/Cabin-VariableFont_wdth\,wght.ttf');
}
@font-face {
    font-family: ChesterAlt;
    src: url('../fonts/B612-Regular.ttf');
}
@font-face {
    font-family: Aviators-LED;
    src: url('../fonts/LEDCalculator.ttf');
}
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialSymbolsOutlined.woff2') format('woff2');
    font-display: swap;
}

/* Global Styling */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* prevent body from scrolling */
    font-family: ChesterMain, ChesterAlt, Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    background: #6F86A8;
    display: flex;
    flex-direction: column;
    overflow-x:hidden;
}
    body.logging-out {
    opacity: 0;
    transition: opacity 0.3s ease;
    }
    .no-scroll {
        overflow: hidden;
        height:100%
    }
header {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 5vh;
    background: transparent;
}
@media only screen and (min-width: 1080px) {
    header {
        height: 10vh;
    }
}
main {
    position: relative;
    flex: 1 1 auto;  /* take remaining space */
    overflow: hidden; /* prevent main from scrolling itself */
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* optional centering */
    align-items: flex-start;  /* top-align content */
    z-index: 1000;
}
footer {
    height: 0px; /* fixed footer height */
    flex-shrink: 0;
    width: 100%;
    position: relative;
}
fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    margin-inline: 0;
    padding-block: 0;
    padding-inline: 0;
}
legend {
    padding: 0;
    border: none;
    padding-inline: 0;
}
input {
    outline: none;
    border: none;
    font-family: ChesterMain, ChesterAlt;
    margin:0;
    padding:0;
    background: none;
    border-radius: 0;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
textarea {
    background: none;
    border:none;
    font-family: ChesterMain, ChesterAlt;
    width:fit-content;
    height: fit-content;
    user-select: none;
    align-items: center;
    padding: 0;
}
textarea:focus {
    background: none;
    border:none;
    outline: none;
}
button:focus {
    outline:none;
}
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 10vh;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    user-select:none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.blurred {
    filter: blur(10px);
    pointer-events: none; /* optional: prevent clicks on blurred elements */
    user-select: none;    /* optional: prevent text selection */
}
/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 8px;                                 /* scrollbar width */
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #ffffff00;                        /* track color */
}

*::-webkit-scrollbar-thumb {
    background-color: #1750ad;                  /* thumb color */
    border-radius: 10px;                        /* rounded corners */
    border: 2px solid #ffffff;                  /* creates gap around thumb */
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #0f3b80;                  /* darker on hover */
}
* {
    scrollbar-width: thin;                      /* auto | thin | none */
    scrollbar-color: #1750ad00 #6F86A8;           /* thumb | track */
}
.glass {
    position: relative;
    overflow: hidden;
    background: rgba(142, 154, 175, 0.08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px) saturate(140%);

    border-radius: 15px;
    padding: 1vh;

    /* Light edge highlight */
    /*border: 1px solid rgba(255, 255, 255, 0.25);*/

    /* Layered shadows for lift */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.12);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -1px 0 rgba(255,255,255,0.08),
        0 10px 25px rgba(0,0,0,0.2),
        0 4px 10px rgba(0,0,0,0.14);
    
}
    .glass::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        z-index:1;

        background:
            linear-gradient(
                to bottom,
                rgba(255,255,255,0.08),
                rgba(255,255,255,0.02)
            );
    }
    .glass::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;

        background: linear-gradient(
            135deg,
            rgba(255,255,255,0.22) 0%,
            rgba(255,255,255,0.16) 25%,
            rgba(255,255,255,0.10) 45%,
            rgba(255,255,255,0.06) 65%,
            rgba(255,255,255,0.02) 80%,
            transparent 95%
        );
    }
.disabled {
    background-color: grey !important;
    pointer-events: none;
}
/* Z-Index's */
#deleteMealOverlay {
    z-index: 150000;
}
/* Overlay General Styling*/
.overlay {
    position: absolute;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    z-index:5000;
    backdrop-filter: blur(10px);
    overflow:hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
}
    .overlay-heading {
        position: absolute;
        display: flex;
        top: 3vh;
        left:50%;
        translate: -50%;
        width: fit-content;
        flex-wrap: nowrap;
        font-size: 4vh;
        color: white;
        background: #081e41;;
        box-shadow: 0 4px 30px rgba(23, 80, 173, 0.3);
        backdrop-filter: blur(20px);
        padding:1vh;
        -webkit-backdrop-filter: blur(20px);
        border-radius: 5px;        
        will-change: transform, opacity;
        transform:scale(1,1);
        opacity:1;
        transition: transform 0.5s ease, opacity 0.5s ease;
        text-align: center;
    }    
        .overlay-sub-heading {
            display: flex;
            font-size: 2vh;
            color: white;
            background: #081e41;;
            box-shadow: 0 4px 30px rgba(23, 80, 173, 0.3);
            backdrop-filter: blur(20px);
            padding:1vh;
            -webkit-backdrop-filter: blur(20px);
            border-radius: 5px;        
            will-change: transform, opacity;
            transform:scale(1,1);
            opacity:1;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }
    .overlay-text {
        color:#081e41;
        text-align: center;
        font-size: 3vh;
        line-height: 8vh;
    }
    .overlay-btn-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        width: 100%;
    }
        .overlay-button {
            font-size: 2.25vh;
            cursor: pointer;
            background: #1750ad;
            border: medium solid #081e41;
            color:white;
            width:fit-content;
            text-align: center;
        }
    @media only screen and (min-width: 1080px) {
        .overlay-heading {
            font-size: 4vw;
        }
            .overlay-sub-heading {
                font-size: 2vw;
            }
        .overlay-text {
            text-align: center;
            font-size: 2.5vw;
            line-height: 11vh;
            padding-top: 6vh;
        }
        .overlay-btn-container {
            width: 100%;
        }
            .overlay-button {
                font-size: 2.75vw;
                cursor: pointer;
                background: #1750ad;
                border: medium solid #081e41;
                color:white;
            }
    }
/* Login Overlay */
.login-overlay {
    position: absolute;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    z-index:50000;
    backdrop-filter: blur(10px);
    overflow:hidden;
}
    .login-message {
        position: absolute;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        bottom: 3.5vh;
        width:100%;
        font-size: 3vh;
        text-align: center;
        background: rgba(255,0,0, 0.5);
        transform: scale(0,0);
        opacity: 0;
        transition: transform 0.5s ease, opacity 0.5s ease;
        transform-origin: center bottom;
        z-index: 10000;
    }
@media only screen and (min-width: 1080px) {    
    .login-message {
        font-size: 1.5vw;
        bottom: 0vh;
    }
}
    .login-heading {
        position: absolute;
        top:5vh;
        left:50%;
        translate: -50%;
        font-size: 5vh;
        color: white;
        background: #081e41;
        box-shadow: 0 4px 30px rgba(23, 80, 173, 0.3);
        backdrop-filter: blur(20px);
        padding:1vh;
        -webkit-backdrop-filter: blur(20px);
        border-radius: 5px;        
        will-change: transform, opacity;
        transform:scale(1,0);
        opacity:1;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    @media only screen and (min-width: 1080px) {    
        .login-heading {
            font-size: 4vw;
        }
    }
.login-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width:100%;
    height:100%;
    margin: 0 0 0 0;
    will-change: opacity;
    transition: opacity 0.5s ease;
}
    .user-container {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        margin-top: 5vh;
        row-gap: 4vh;
        align-items: center;
        justify-content: space-evenly;
        width:100%;
    }
        .new-row {
            flex-basis: 100%;
        }
        .user {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            will-change: transform, opacity;
            transform: scale(0);
            opacity:1;
            transition: transform 0.5s ease, opacity 0.5s ease;
            transform-origin: center;
            user-select: none;
        }
            .user-letter {
                display: flex;
                align-items: center;
                justify-content: center;
                font-size:10vh;
                width:12vh;
                height:12vh;
                background: rgba(23, 80, 173, 0.5);
                border: #081e41;
                color:white;
                border-radius:50%;
                cursor:pointer;
                text-align: center;
            }
            .user-name {
                font-size:5vh;
            }
            @media only screen and (min-width: 1080px) {    
                .user-letter {
                    font-size:8vw;
                    width:10vw;
                    height:10vw;
                }
                .user-name {
                    font-size:3vw;
                }
            }
    .change-user {
        position: fixed;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        top:0;
        font-size:3vh;
        text-align: center;
        cursor: pointer;
        background: rgba(23, 80, 173, 0.5);
        border: #081e41;
        color:white;        
        box-sizing: border-box;
        padding:2%;
        z-index:1000;
        width: fit-content;
        height: 5vh;
        transform: scale(0,1);
        transform-origin: left;
        transition: transform 0.5s ease;
        will-change: transform;
        left:0;
    }
    @media only screen and (min-width: 1080px) {    
        .change-user {
            font-size:3vw;
        }
    }
    .pin-container {
        display: flex;
        position: absolute;
        left:0;
        top: 25vh;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        width:100%;
        height:70vh;
        margin: 0 0 1vh 0;
        opacity:0;
        will-change: opacity;
        transition: opacity 0.5s ease;
    }
    @media only screen and (min-width: 1080px) {
        .pin-container {
            top:30vh;
            height: 65vh;
        }
    }
        .pin-display {
            position: relative;
            display: flex;     
            flex-direction: row;       /* flex container for centering */
            justify-content: space-evenly;  /* horizontal center */
            align-items: center;      /* vertical center */
            margin-top:5vh;
            width:90%;
            height:20%;
            user-select: none;
        }
        @media only screen and (min-width: 1080px) {
            .pin-display {
                width:50%;
            }
        }
            .pin-dot {
                width:4vw;
                aspect-ratio: 1 / 1;
                border: medium solid #081e41;
                border-radius: 100%;
                user-select: none;
            }
            @media only screen and (min-width: 1080px) {
                .pin-dot {
                    width:2vw;
                }
            }
                .pin-dot.filled {
                    background:#081e41;
                }
        .pin-btn-container {
            position: relative;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            justify-items: center;
            width: 80%;
            height:60%;
            font-size:6vh;
            margin-top:1vh;
            row-gap:3.5vh;
        }
        @media only screen and (min-width: 1080px) {    
            .pin-btn-container {
                width:30%;
                row-gap:3.5vw;
            }
        }
        .pin-btn-container > :last-child {
            grid-column: 2;
        }
            .pin-btn {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                flex: 0 0 calc(33.333% - 2vh);
                width:8vh;
                position: relative;
                aspect-ratio: 1 / 1;
                border: medium solid #081e41;
                background-color: rgba(255,255,255, 0.5);
                color:#081e41;
                border-radius:100%;
                font-size:5vh;
                cursor: pointer;
                text-align: center;
                user-select: none;
            }
            @media only screen and (min-width: 1080px) {    
                .pin-btn {
                    width: 3.5vw;
                }
            }
/* Top bar */
    .top-bar-heading {
        font-size: 3vh;
        position: absolute;
        left: 1vw;
        top: 0;
        display: flex;
        align-items: center;
        justify-content: center; /* left align */
        width: auto;
        height: fit-content;
        padding: 1vh 1vw 1vh 1vw;
        box-sizing: border-box;
        opacity: 0;
        color: #6F86A8;       /* mostly transparent white */
        text-shadow: 0 5px 5px black;
        transform: translateX(-20px);
        will-change: transform, opacity;
        transition: transform 0.5s ease-in, opacity 0.5s ease-in;
    }           
    @media only screen and (min-width: 1080px) {    
        .top-bar-heading  {
            font-size:4vw;
            padding: 1vh 0.5vw 1vh 0.5vw;
        }
    } 
        .top-bar-heading:empty {
            display: none;
        }
        .top-bar-heading.active {
            opacity: 1;
            transform: translateX(0);
        }
    .top-bar-right {
        position: absolute;
        right: 1vh;
        top: 1vh;

        display: flex;
        flex-direction: column;
        align-items: center;   /* 🔑 horizontal centering */
        justify-content: flex-start;

        z-index: 5000;
    }
    @media only screen and (min-width: 1080px) {
        .top-bar-right {
            right: 1vw;
        }
    }
        .top-bar-user {
            position: relative;   /* not absolute */
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(8, 30, 65, 0.949);
            border: none;
            color: white;
            width: 4vh;
            height: 4vh;
            font-size: 4vh;
            padding: 2vh;
        
            cursor: pointer;
            border-radius: 100%;
            z-index: 5000000;
        }
        @media only screen and (min-width: 1080px) {
            .top-bar-user {
                font-size:3vw;
                padding: 1vw;
                width: 4vw;
                height: 4vw;
            }
        }
            .user-menu {
                position: absolute;
                top: calc(100% + 0.5vh);
                left: 50%;

                transform: translate(-50%, -5vh) scale(0.95);
                opacity: 0;
                touch-action: manipulation;
                display: flex;
                flex-direction: column;
                justify-content: space-evenly;
                align-items: center;

                width: 5vh;
                height: 12.5vh;

                transition: transform 0.5s ease, opacity 0.25s ease-out;
                transform-origin: top center;
                z-index: 2500;
            }

            @media only screen and (min-width: 1080px) {
                .user-menu {
                    height: 21vh;
                    width: 4vw;
                }
            }
                .user-option {
                    position: relative;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 5.5vw;
                    height: 5.5vw;
                    border-radius: 100%;
                    font-size: 2.5vh;
                    cursor: pointer;
                    background: rgba(255, 255, 255, 0.5);
                }
                @media only screen and (min-width: 1080px) {
                    .user-option {
                        width: 3vw;
                        height:3vw;
                        font-size: 2.5vw;
                    }
                }
            .countdown-timer {
                display: none;
            }
/* Global menus */
.global-menu-container {
    position: absolute;
    bottom: 0.5vh;
    left: 0.5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: calc (6vh + 0.5vw);
    height: 15vh;
    z-index: 10000;
}
    .global-menu-button {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        color: white;
        border-radius: 100%;
        font-size: 5vh;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    .global-menu {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        row-gap: 1vh;
        left: 50%;
        transform: translate(-50%, 5vh) scale(0.9);
        opacity: 0;
        will-change: transform, opacity;
        transition: transform 0.5s ease, opacity 0.25s ease;
        transform-origin: bottom center;
        bottom: 8vh;
    }
        .global-menu.open {
            transform: translate(-50%, 0) scale(1);
            opacity: 1;
        }
        .global-menu-app {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            width: 3vh;
            height: 3vh;
            border-radius: 100%;
            font-size: 3vh;
            background-color: rgba(255, 255, 255, 0.7);
            cursor: pointer;
            transform-origin: center center;
            transition: transform 0.5s ease, background-color 0.5s ease-in, color 0.5s ease-in;
        }
.app-menu-container {
    position: absolute;
    bottom: 0.5vh;
    right: 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5vw;
    height: fit-content;
    z-index: 10000;
}
@media only screen and (min-width: 1080px) {
    .global-menu-container {
        height: 15vh;
    }
        .global-menu-button {
            font-size: 4vw;
        }
            .global-menu {
                position: absolute;
                display: flex;
                flex-direction: column;
                align-items: center;
                width: 5vw;
                row-gap: 1vh;
                bottom: 5.5vw;
            }

                .global-menu-app {
                    width: 3vw;
                    height:3vw;
                    font-size: 2.5vw;
                }
    .app-menu-container {
        right: 0.5vw;
    }
}
/* App tiles */
.app-tile-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 3vw;
    row-gap: 1vh;
    width: 98vw;
    height: 100vh;
    margin: auto;
    padding: 5vh 0;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 2000;
}
    .app-tile {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 60vw;
        height: 25vh;
        cursor: pointer;
        box-sizing: border-box;
        color: #081e41;
        background: rgba(255,255,255, 0.4);
        flex: 0 0 auto; /* ✅ THIS is the key */

    }
        .app-tile span {
            font-size: 15vw;
        }        
        .app-name {
            font-size: 3vh;
        }

@media only screen and (min-width: 1080px) {
    .app-tile-container {
        padding: 1vw 0;
        gap: 1vw;
    }
        .app-tile {
            width: 25vw;
            height: 20vw;
            justify-content: center;
        }
            .app-tile span {
                font-size: 5vw;
            }  
            .app-name {
                font-size:2vw;
            }
}

/* Meal planner */
.meal-container {
    position: relative;
    align-self: center;
    display: flex;
    flex-direction: column;
    flex-shrink: 1 0 auto;
    row-gap: 2vh;
    justify-content: safe center;
    align-items: center;
    width: 100vw;
    height: 100%;
    overflow-y: auto;
    padding: 1vh 0 1vh 0;
    transition: all 0.3s ease;
}
    .meal-row {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        width: 90%;
        height: 18.5vh;
        padding: 0 1vw 0 1vw;
        box-sizing: border-box;
        background: rgba(255,255,255, 0.4);
        opacity: 1;    
        will-change: opacity, transform, height;
        box-shadow: 0px 0px 0px green;
        transition: 
            height 0.5s ease, 
            opacity 0.5s ease, 
            translate 0.5s ease, 
            transform 0.5s ease,
            box-shadow 0.5s ease;
        overflow: hidden;
        z-index: 10;
    }
        .selected {
            transform: scale(1.1, 1.1);
            z-index: 10000;
            box-shadow: 0 0 15px green;
        }
        .not-selected {
            filter: blur(10px);
            pointer-events: none;
        }
        .meal-day {
            position: relative;
            font-size: 2.25vh;
            justify-self: flex-start;
            /*background: #1750ad;*/
            text-align: center;
            min-width: 35%;
            user-select: none;
        }
        .meal-eat-sep {
            position: absolute;
            width:35%;
            left: 5%;
            transform: translateX(-5%);
            bottom: 2vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            will-change: opacity;
            transition: all 0.5s ease;
            pointer-events: none;
        }
            /* Show class */
            .meal-eat-sep.shown {
                opacity: 1;
                pointer-events: all;
            }

            /* Label */
            .meal-eat-sep label {
                position: relative;
                display: flex;
                align-items: center;
                justify-content: space-evenly;
                width: 100%;
                font-size: 2vh;
                cursor: pointer;
                border-bottom: medium outset #081e41;
                padding-bottom: 0.5vh;
            }

            /* Hide the checkbox */
            .meal-eat-sep input {
                opacity: 0;
                width: 0;
                height: 0;
                position: absolute;
            }

            /* The slider */
            .slider {
                position: relative;
                width: 12vw;
                height: 6vw;
                background-color: rgb(219, 219, 219);
                border-radius: 34px;
                transition: 0.4s;
                margin-left: 10px; /* space between text and toggle */
            }

            /* The circle */
            .slider:before {
                content: "";
                position: absolute;
                height: 5.5vw;
                width: 5.5vw;
                left: 0.5vw;
                bottom: 0.25vw;
                background-color: #1750ad;
                border-radius: 50%;
                transition: 0.4s;
            }

            /* Checked state */
            input:checked + .slider {
                background-color: #081e41;
            }

            input:focus + .slider {
                box-shadow: 0 0 1px #2196F3;
            }

            input:checked + .slider:before {
                transform: translateX(calc(12vw - 5.5vw - 0.5vw - 0.75vw)); 
            }

            /* Optional round modifier (already works) */
            .slider.round {
                border-radius: 34px;
            }

            .slider.round:before {
                border-radius: 50%;
            }
        .action-buttons-container {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
            align-items: center;
            flex-shrink: 0;
            width: 20%;
            height: 100%;
        }
            .action-button {
                font-size: 3.5vh;
                border-radius: 100%;
                padding: 0.5vh;
                cursor: pointer;
                user-select: none;
                background: rgba(23, 80, 173, 0.5);
                will-change: opacity, transform;
                transition: all 0.5s ease;
            }
        .meal-name {
            position: relative;
            right: 1vw;
            white-space: normal;
            max-width: 40%;
            vertical-align: middle;
            text-align: center;
            user-select: none;           
            font-size: 2vh;
            opacity: 1;
            transition: all 0.5s ease;
            resize:none;
            margin-top: auto;
            margin-bottom: auto;
            text-overflow: ellipsis;
        }
        .meal-cont {
            position: relative;
            right: 1vw;
            max-width: 40%;
            height: 75%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 1;
            transition: all 0.5s ease;
            flex-shrink: 0;
        }
            .meal-cont-adult,
            .meal-cont-child {
                position: relative;
                display: flex;
                width: 100%;
                flex: 1;
                flex-direction: row;
                align-items: center;
                justify-content: flex-end;
                flex-shrink: 0;
                border-top: thin groove #081e41;
                color:white;
                font-size: 2vh;
                padding-left: 1vw;
                box-sizing: border-box;
            }
                .meal-cont-adult legend,
                .meal-cont-child legend {
                    background: #081e41;
                    border-radius: 15px;
                    padding: 0 0.5vw 0 0.5vw;
                }
                .meal-icon {
                    position: static;
                    left: 0;
                    font-size: 2.5vh;
                    width: 30%;
                    text-align: right;
                }
                .meal-name-adult,
                .meal-name-child {
                    position: relative;
                    font-size: 1.75vh;
                    font-weight: normal;
                    width: 100%;
                    text-align: center;
                    margin-right: 1vw;
                    overflow-x: auto;
                    text-overflow: ellipsis;
                }
    .meal-add {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        align-self: center;
        width: 75%;
        height: 50%;
        margin-top: 2%;
    }
        .meal-add-date {
            position: absolute;
            top: 1vh;
            font-size: 3vh;
            text-align: center;
            user-select: none;
            cursor: pointer;
        }
        .add-eat-sep {
            position: absolute;
            width:100%;
            height: fit-content;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            top: 15vh;
            opacity: 1;
            will-change: opacity;
            transition: all 0.5s ease;
        }
            .add-eat-sep input {
                opacity: 0;
                width: 0;
                height: 0;
                position: absolute;
            }
            .add-eat-sep label {
                position: relative;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                font-size: 3vh;
            }
            .add-slider {
                position: absolute;
                top: 6vh;
                width: 16vw;
                height: 8vw;
                background-color: rgb(219, 219, 219);
                border-radius: 34px;
                transition: 0.4s;
                margin-left: 10px; /* space between text and toggle */
            }

            /* The circle */
            .add-slider:before {
                content: "";
                position: absolute;
                height: 7.75vw;
                width: 7.75vw;
                left: 0.5vw;
                bottom: 0.125vw;
                background-color: #1750ad;
                border-radius: 50%;
                transition: 0.4s;
            }
            .add-eat-sep input:checked + .add-slider {
                background-color: #081e41;
            }
            .add-eat-sep input:checked + .add-slider:before {
                transform: translateX(calc(16vw - 7.75vw - 0.75vw - 0.125vw)); 
            }
            .add-meal-name {
                position: absolute;
                bottom: 5vh;
                font-size: 3vh;
                width: 75%;
                text-align: center;
            }
                .add-meal-name::placeholder {
                    color:#1750ad;
                    opacity: 0.5;
                }
                .add-meal-name:focus {
                    background: white;
                    color:#081e41;
                }
            .add-meal-cont {
                position: absolute;
                display: flex;
                flex-direction: column;
                row-gap: 1vh;
                bottom: 5vh;
                width: 75%;
                font-size: 3vh;
            }
                .add-meal-cont .meal-name-adult,
                .add-meal-cont .meal-name-child {
                    font-size: 3vh;
                    text-align: center;
                }
                .add-meal-cont .meal-name-adult::placeholder,
                .add-meal-cont .meal-name-child::placeholder {
                    color:#1750ad;
                    opacity: 0.5;
                }
                .add-meal-cont .meal-name-adult:focus,
                .add-meal-cont .meal-name-child:focus {
                    background: white;
                    color:#081e41;
                }

    .add-meal {
        position: absolute;
        font-size: 4vh;
        bottom: 10vh;
        cursor: pointer;
        user-select: none;
        border: medium outset #081e41;
    }
    .update-success {
        box-shadow: 0 0 15px green;
    }
@media only screen and (min-width: 1080px) {
    .meal-row {
        width: 95%;
        height: 13.5vw;
    }
        .selected {
            transform: scale(1.05, 1.05);
        }
        .meal-day {
            width: 30%;
            font-size: 2vw;
        }
        .meal-eat-sep {
            width:30%;
            left: 2.5%;
            transform: translateX(-2.5%);
        }
            .meal-eat-sep label {
                font-size: 2vw;
            }
            .slider {
                width: 12vh;
                height: 6vh;
            }

            /* The circle */
            .slider:before {
                height: 5.5vh;
                width: 5.5vh;
                left: 0.5vh;
                bottom: 0.25vh;
            }

            input:checked + .slider:before {
                transform: translateX(calc(12vh - 5.5vh - 0.5vh - 0.5vh)); 
            }
        .action-buttons-container {
            flex-direction: row;
            width: 25%;
            align-items: center;
        }
            .action-button {
                font-size: 3.5vw;
                padding: 0.5vw;
            }
        .meal-name {
            font-size: 2vw;
            width: 25%;
        }
        .meal-cont {
            width:fit-content;
            max-width: 45%;
        }
            .meal-cont-adult,
            .meal-cont-child {
                font-size: 2vw;
            }
                .meal-cont-adult legend,
                .meal-cont-child legend {
                    font-size: 2.5vw;
                }
                .meal-icon {
                    width: 30%;
                    font-size: 2.5vw;
                }
                .meal-name-adult,
                .meal-name-child {
                    font-size: 2vw;
                    width: 100%;
                }
    .add-meal {
        font-size: 3vw;
        bottom: 5vh;
    }            
        .add-eat-sep {
            top: 15vh;
            font-size: 3vh;
        }
            .add-eat-sep input {
                opacity: 0;
                width: 0;
                height: 0;
                position: absolute;
            }
            .add-slider {
                position: absolute;
                width: 4vw;
                height: 2vw;
                margin-left: 10px; /* space between text and toggle */
                bottom: 50%;
                transform: translateY(50%);
            }
            /* The circle */
            .add-slider:before {
                height: 1.75vw;
                width: 1.75vw;
                left: 0.25vw;
                bottom: 0.125vw;
            }
            .add-eat-sep input:checked + .add-slider {
                background-color: #081e41;
            }
            .add-eat-sep input:checked + .add-slider:before {
                transform: translateX(calc(4vw - 1.75vw - 0.25vw - 0.125vw)); 
            }
}
/* Cleaning */
.cleaning-container {
    position: relative;
    align-self: center;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    row-gap: 2vh;
    justify-content: safe center;
    align-items: center;
    width: 100vw;
    height: 100%;
    overflow-y: auto;
    padding: 1vh 0 1vh 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
    .job-cont {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 90%;
        height: 18.5vh;
        box-sizing: border-box;
        background: rgba(255,255,255, 0.4);
        opacity: 1;    
        will-change: opacity, transform, height;
        transition: height 0.5s ease, opacity 0.5s ease;
        overflow: hidden;
        z-index: 10;
    }
        .job-left-cont {
            display: flex;
            flex-direction: column;
            justify-content: start;
            align-items: flex-start;
            flex-shrink: 0;
            height: 100%;
            width: 60%;
        }
            .job-name {
                margin-top: 1vh;
                font-size: 2.5vh;
                text-align: center;
                background: rgba(255,255,255, 0.5);
                color: #081e41;
            }            
        .job-action-container {
            position: absolute;
            bottom: 2.5vh;
            left: 1vw;
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            column-gap: 7.5vw;
            align-items: flex-end;
            margin-left: 1vw;
            width: 100%;
            height: fit-content;
        }
            .job-button {
                font-size: 2.75vh;
                width: 2.75vh;
                height: 2.75vh;
                border-radius: 50px;
                padding: 1vh;
                cursor: pointer;
                user-select: none;
                background: rgba(23, 80, 173, 0.35);
                will-change: opacity, transform;
                transition: all 0.5s ease;
            }
        .job-right-cont {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-end;
            height: 100%;
            width: 40%;
        }
            .job-freq {
                position: absolute;
                top: 10%;
                font-size: 1.5vh;
            }
            .job-due {
                font-size: 1.75vh;
                width: fit-content;
                border-bottom: medium solid #081e41;
                opacity: 1;
                transform: translateY(0px);
                will-change: opacity, transform, height;
                transition: transform 0.5s ease, opacity 0.5s ease;
            }
                .job-due.fade-out,
                .job-info.fade-out {
                    opacity: 0;
                    transform: translateY(-8px);
                }

                .job-due.fade-in,
                .job-info.fade-in {
                    opacity: 1;
                    transform: translateY(0);
                }
            .job-info {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                font-size: 1.25vh;
                opacity: 1;    
                will-change: opacity, transform, height;
                transition: height 0.5s ease, opacity 0.5s ease;
            }
            .job-assigned-to {
                position: absolute;
                bottom: 10%;
                font-size: 1.25vh;
            }
    .job-option-menu {
        position: absolute;
        display: flex;
        flex-direction: column;
        row-gap: 0.5vh;
        z-index: 2500;
        background: rgba(255,255,255, 0.75);
        margin-left: 1vw;
        transform: translateY(1.5vh);
    }
        .job-option {
            position: relative;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            width: 100%;
            font-size: 2vh;
            background: rgba(23, 80, 173, 0.8);
            color: white;
            border-radius: 10px;
            padding: 1vh 1vw 1vh 1vw;
            box-sizing: border-box;
            cursor: pointer;
        }
            .job-option .material-symbols-outlined {
                font-size: 3vh;
            }

.job-add {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    align-self: center;
    width: 90%;
    height: 50%;
    margin-top: 1%;
    background: rgba(23, 80, 173, 0.75);
}
    .job-add label {
        font-size: 2vh;
    }
    .job-add-name {
        font-size: 2vh;
        width: 75%;
        text-align: center;
        background-color: rgba(255,255,255, 0.75);
        border: medium outset rgba(255,255,255, 0.75);
    }
        .job-add-name::placeholder {
            color:#1750ad;
            opacity: 0.5;
        }
        .job-add-name:focus {
            border: medium outset #081e41;
        }
    .job-add-freq {
        font-size: 2vh;
        text-align: center;
        width: 6.5vh;
        margin: 0 1vw 0 1vw;
        background-color: rgba(255,255,255, 0.75);
        border: medium outset rgba(255,255,255, 0.75);
    }
        .job-add-freq:focus {
            background: white;
            border: medium outset #081e41;
        }
    .job-add-freq-unit {
        font-size: 2vh;
        margin-left: 1vw;
        background-color: rgba(255,255,255, 0.75);
        border: medium outset rgba(255,255,255, 0.75);
    }
    .job-add-date {
        font-size: 2vh;
        text-align: center;
        margin-left: 1vw;
        background-color: rgba(255,255,255, 0.75);
        border: medium outset rgba(255,255,255, 0.75);
    }
.job-update, .job-delete {
    z-index: 150000;
}
@media only screen and (min-width: 1080px) {
    .job-cont {
        height: 15vw;
        font-size: 1.75vw;
    }
        .job-name {
            margin-top: 2vh;
            margin-left: 1vw;
            font-size: 2.5vw;
        }
        .job-right-cont {
            box-sizing: border-box;
            padding-right: 1vw;
        }
            .job-freq {
                transform: translateY(-1.5vh);
                font-size: 1.25vw;
            }
            .job-due {
                font-size: 1.75vw;
            }
            .job-info {
                font-size: 1.25vw;
            }
            .job-assigned-to {
                font-size: 1.25vw;
            }
        .job-action-container {
            bottom: 5vh;
            margin-left: 0;
            column-gap: 10vw;
        }
            .job-button {
                font-size: 2.5vw;
                border-radius: 50px;
                width: 2.5vw;
                height: 2.5vw;
            }
    .job-option-menu {
        transform: translateY(-3vh);
    }
    
.job-add {
    width: 75%;
    height: 60%;
    margin-top: 2%;
}
    .job-add label {
        font-size: 2vw;
    }
    .job-add-name {
        font-size: 2vw;
        width: 75%;
        text-align: center;
    }
        .job-add-name::placeholder {
            color:#1750ad;
            opacity: 0.5;
        }
        .job-add-name:focus {
            background: white;
            color:#081e41;
        }
    .job-add-freq {
        font-size: 2vw;
        text-align: center;
        width: 6.5vh;
        margin: 0 1vw 0 1vw;
    }
        .job-add-freq:focus {
            background: white;
            color:#081e41;
        }
    .job-add-freq-unit {
        font-size: 2vw;
    }
    .job-add-date {
        font-size: 2vw;
    }
}
/*Datepicker*/
.ui-datepicker {
    font-family: ChesterMain, ChesterAlt, Arial, Helvetica, sans-serif !important;
    margin-top: 1vh;
}
.ui-state-default,
.ui-state-highlight {
    background: white !important;
    border: thin solid #1750ad !important;
    color: #081e41 !important;
}
.ui-state-active {
    background:#1750ad !important;
    border: thin solid #1750ad !important;
    color:white !important;
}
.meal-date a,
.meal-date-add a {
    position: relative; /* For the triangle */
    padding: 4px; /* Adjust padding to prevent content overlap */
}
    .meal-date a::after,
    .meal-date-add a::after {
        content: ""; /* Add a pseudo-element for the corner triangle */
        position: absolute;
        bottom: -1px !important;
        left: -1px;
        width: 0;
        height: 0;
        border-left: 10px solid transparent; /* Adjust the size of the triangle */
        border-top: 10px solid red; /* Red triangle */
        transform: rotate(180deg);
    }
.glass.ui-datepicker,
.glass.ui-widget-content {
    background: rgba(142, 154, 175, 0.08) !important; /* override default bg */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-radius: 15px;
    padding: 1vh;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -1px 0 rgba(255,255,255,0.08),
        0 10px 25px rgba(0,0,0,0.2),
        0 4px 10px rgba(0,0,0,0.14),
        0 8px 20px rgba(0,0,0,0.18),
        0 2px 6px rgba(0,0,0,0.12);
    overflow: visible; /* ensure pseudo-elements & shadows are visible */
}
.glass.ui-datepicker::before,
.glass.ui-datepicker::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.glass.ui-datepicker::before {
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.glass.ui-datepicker::after {
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.22) 0%,
        rgba(255,255,255,0.16) 25%,
        rgba(255,255,255,0.10) 45%,
        rgba(255,255,255,0.06) 65%,
        rgba(255,255,255,0.02) 80%,
        transparent 95%
    );
}
.glass.ui-datepicker * {
    position: relative;
    z-index: 2;
}

/*Animations*/
.rotate {
    animation: rotate infinite 2s;
    background-color: rgb(8, 30, 65, 0.75);
    box-shadow: 0px 0px 20px #1750ad;
    color:white;
    transition: background-color 0.5s ease, color 0.5s ease;
}
@keyframes rotate {
    0% {
        rotate: 0deg ;
    }
    100% {
        rotate: 360deg;
    }
}
.error-shake {
    animation: errorShake 0.6s ease-in-out;
    box-shadow: 0 0 10px red;
}

@keyframes errorShake {
    0%   { transform: translateX(0); }
    10%  { transform: translateX(-8px); }
    20%  { transform: translateX(8px); }
    30%  { transform: translateX(-6px); }
    40%  { transform: translateX(6px); }
    50%  { transform: translateX(-4px); }
    60%  { transform: translateX(4px); }
    70%  { transform: translateX(-2px); }
    80%  { transform: translateX(2px); }
    90%  { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}
.glow {
    animation: glowing 5s ease-in-out infinite;
    transition: box-shadow 0.2s ease-in-out; /* optional extra smoothness */
}

@keyframes glowing {
    0% {
        box-shadow: 0 0 5px rgba(255,165,0,0.3), 0 0 10px rgba(255,165,0,0.2);
    }
    25% {
        box-shadow: 0 0 10px rgba(255,165,0,0.6), 0 0 20px rgba(255,165,0,0.4);
    }
    50% {
        box-shadow: 0 0 15px rgba(255,165,0,0.9), 0 0 30px rgba(255,165,0,0.5);
    }
    75% {
        box-shadow: 0 0 10px rgba(255,165,0,0.6), 0 0 20px rgba(255,165,0,0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(255,165,0,0.3), 0 0 10px rgba(255,165,0,0.2);
    }
}