*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f3f3f3;

    padding-top:env(safe-area-inset-top);
    padding-bottom:env(safe-area-inset-bottom);
    padding-left:env(safe-area-inset-left);
    padding-right:env(safe-area-inset-right);
}

header{

    position:sticky;
    top:0;

    padding-top:calc(20px + env(safe-area-inset-top));
    padding-right:20px;
    padding-bottom:20px;
    padding-left:20px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:#1976d2;
    color:white;

    z-index:100;
}

header button{
    border:none;
    background:none;
    color:white;
    cursor:pointer;
}

header button i{
    font-size:40px;
}

.month-nav{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 20px;

    background:white;
    border-bottom:1px solid #ddd;
}

.month-nav button{
    border:none;
    background:none;
    cursor:pointer;
}

.month-nav button i{
    font-size:34px;
}

#days{
    padding:15px;
}

.day{
    background:white;
    border-radius:10px;

    padding:15px;
    margin-bottom:12px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:0 2px 8px rgba(0,0,0,.1);
}

.info h3{
    margin-bottom:5px;
    font-size:18px;
}

.info p{
    color:gray;
    font-size:15px;
}

.addBtn{
    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:#2196f3;
    color:white;

    font-size:26px;
    cursor:pointer;

    transition:.2s;
}

.addBtn i{
    font-size:20px;
}

.addBtn:hover{
    background:#1976d2;
    transform:scale(1.1);
}

.stats{
    background:white;
    margin:20px 15px;
    padding:20px;

    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
}

.stats h2{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:0;
    color:#1976d2;
}

.stat{
    display:flex;
    justify-content:space-between;
    margin:12px 0;
    font-size:17px;
}

.stats hr{
    margin:20px 0;
    border:none;
    border-top:1px solid #ddd;
}
.stats-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

#settingsBtn{
    width:40px;
    height:40px;

    border:none;
    border-radius:50%;

    background:#2196f3;
    color:white;

    font-size:20px;
    cursor:pointer;

    transition:.2s;
}

#settingsBtn i{
    font-size:18px;
}

#settingsBtn:hover{
    background:#125ea9;
    transform:rotate(90deg);
}

.workedTime{
    display:block;
    margin-top:6px;
    font-weight:bold;
    color:#222;
}

.overtime{
    display:block;
    margin-top:3px;
    font-weight:bold;
    color:#d32f2f;
}

.noWork{
    color:#888;
    font-style:italic;
}

.stats h2 i{
    font-size:20px;
}

.buttons{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.moreBtn{

    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:#e3f2fd;
    color:#1976d2;

    cursor:pointer;

    transition:.2s;
}

.moreBtn:hover{

    background:#bbdefb;
}

.details{

    margin-top:15px;
    padding-top:15px;

    border-top:1px solid #ddd;

    color:#444;
}

.details strong{

    color:#1976d2;
}

.details p{

    margin-top:10px;
    line-height:1.5;
}

#exportBtn{

    width:100%;

    margin-top:20px;
    padding:15px;

    border:none;
    border-radius:10px;

    background:#1976d2;
    color:white;

    font-size:17px;
    font-weight:bold;

    cursor:pointer;

    transition:.2s;
}

#exportBtn:hover{

    background:#125ea9;
}

#exportBtn i{

    margin-right:10px;
}

.exportMenu{

    display:none;

    margin-top:12px;

    animation:fadeIn .2s ease;
}

.exportMenu button{

    width:100%;

    padding:14px;

    margin-top:10px;

    border:none;
    border-radius:10px;

    background:#f5f5f5;

    font-size:16px;

    cursor:pointer;

    transition:.2s;
}

.exportMenu button:hover{

    background:#e3f2fd;
}

.exportMenu button i{

    width:25px;

    color:#1976d2;
}

#exportBtn{

    display:flex;
    justify-content:space-between;
    align-items:center;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(-8px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
