*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial;
    background:#edf6ed;
    color:#222;
}

.mobile-container{
    max-width:500px;
    margin:auto;
    padding:20px;
    padding-bottom:120px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.topbar h1{
    font-size:34px;
}

.logout-btn{
    text-decoration:none;
    background:white;
    padding:10px 15px;
    border-radius:12px;
    color:#222;
    font-size:14px;
}

.card{
    background:white;
    border-radius:28px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
}

.green-card{
    background:#f5fff3;
}

.small-text{
    color:#777;
    margin-bottom:5px;
}

.calorie-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.calorie-top h2{
    font-size:34px;
}

.fire-icon{
    font-size:40px;
}

.progress{
    width:100%;
    height:16px;
    background:#e5e5e5;
    border-radius:20px;
    overflow:hidden;
    margin-top:20px;
}

.bar{
    height:100%;
    background:#67c56b;
    border-radius:20px;
}

.stats-row{
    display:flex;
    justify-content:space-between;
    margin-top:20px;
}

.stats-row h3{
    margin-top:5px;
}

.label{
    color:#888;
    font-size:14px;
}

.macro-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:15px;
}

.macro-card{
    background:white;
    border-radius:24px;
    padding:15px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
}

.macro-card p{
    margin-top:10px;
    font-weight:bold;
}

canvas{
    width:100% !important;
}

.floating-btn{
    position:fixed;
    right:20px;
    bottom:30px;
    width:70px;
    height:70px;
    border:none;
    border-radius:50%;
    background:#67c56b;
    color:white;
    font-size:40px;
    box-shadow:0 10px 25px rgba(0,0,0,0.2);
    cursor:pointer;
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.4);
    display:none;
    justify-content:center;
    align-items:flex-end;
}

.modal-content{
    background:white;
    width:100%;
    max-width:500px;
    border-radius:30px 30px 0 0;
    padding:25px;
    animation:slideUp 0.25s ease;
}

.modal-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.close-btn{
    background:none;
    border:none;
    font-size:34px;
    cursor:pointer;
}

input{
    width:100%;
    padding:16px;
    border-radius:16px;
    border:1px solid #ddd;
    margin-top:10px;
    margin-bottom:20px;
    font-size:16px;
}

button[type="submit"]{
    width:100%;
    border:none;
    padding:18px;
    background:#67c56b;
    color:white;
    border-radius:18px;
    font-size:18px;
    cursor:pointer;
}

@keyframes slideUp{

    from{
        transform:translateY(100%);
    }

    to{
        transform:translateY(0);
    }

}

@media(max-width:500px){

    .topbar h1{
        font-size:28px;
    }

    .calorie-top h2{
        font-size:28px;
    }

    .macro-grid{
        grid-template-columns:1fr;
    }

}


.top-icons{
    display:flex;
    gap:10px;
}

.icon-btn{
    width:46px;
    height:46px;
    border-radius:14px;
    background:white;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:20px;
    color:#222;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
}

.date-scroll{
    display:flex;
    gap:10px;
    overflow-x:auto;
    margin-bottom:20px;
    padding-bottom:5px;
}

.date-pill{
    min-width:65px;
    background:white;
    padding:12px;
    border-radius:18px;
    text-align:center;
    text-decoration:none;
    color:#222;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
    line-height:1.5;
}

.active-date{
    background:#67c56b;
    color:white;
}

.date-text{
    color:#777;
    margin-top:5px;
}

@media(min-width:700px){

    .mobile-container{
        max-width:900px;
    }

    .macro-grid{
        grid-template-columns:1fr 1fr 1fr;
    }

    .card{
        padding:30px;
    }

    .green-card{
        padding:35px;
    }

    .topbar h1{
        font-size:42px;
    }

    .floating-btn{
        right:40px;
        bottom:40px;
    }

}
