/* ===========================
   Daily Wellness PWA
   style.css
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --primary:#2E7D32;
    --primary-dark:#1B5E20;
    --background:#f4f6f8;
    --card:#ffffff;
    --text:#222;
    --border:#d9d9d9;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    padding-bottom:100px;
}

header{
    position:sticky;
    top:0;
    z-index:100;
    background:var(--primary);
    color:white;
    text-align:center;
    padding:16px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

header h1{
    font-size:1.4rem;
}

form{
    max-width:900px;
    margin:20px auto;
    padding:15px;
}

section{
    background:var(--card);
    border-radius:12px;
    padding:18px;
    margin-bottom:18px;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

section h2{
    color:var(--primary-dark);
    margin-bottom:15px;
    font-size:1.15rem;
}

label{
    display:block;
    margin-top:12px;
    margin-bottom:6px;
    font-weight:bold;
}

input,
select,
textarea{
    width:100%;
    border:1px solid var(--border);
    border-radius:8px;
    padding:12px;
    font-size:15px;
    outline:none;
    transition:.2s;
    background:white;
}

textarea{
    min-height:90px;
    resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 5px rgba(46,125,50,.25);
}

.buttons{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    background:white;
    padding:12px;
    gap:12px;
    box-shadow:0 -2px 10px rgba(0,0,0,.15);
}

.buttons button{
    flex:1;
    border:none;
    border-radius:8px;
    padding:16px;
    font-size:16px;
    cursor:pointer;
    transition:.2s;
}

#clearBtn{
    background:#d32f2f;
    color:white;
}

#submitBtn{
    background:var(--primary);
    color:white;
}

#clearBtn:hover{
    background:#b71c1c;
}

#submitBtn:hover{
    background:var(--primary-dark);
}

button:active{
    transform:scale(.98);
}

/* Toast */

.toast{
    position:fixed;
    bottom:80px;
    left:50%;
    transform:translateX(-50%);
    background:#333;
    color:white;
    padding:12px 20px;
    border-radius:30px;
    opacity:0;
    pointer-events:none;
    transition:.3s;
}

.toast.show{
    opacity:1;
}

/* Mobile */

@media (max-width:768px){

    form{
        padding:10px;
    }

    section{
        padding:15px;
    }

    header h1{
        font-size:1.2rem;
    }

}

/* Desktop */

@media (min-width:900px){

    input,
    select{
        max-width:350px;
    }

}