/* =========================================
   EMerriment - My Skin Journey
========================================= */

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

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f8f6f1;
    color:#333;
    line-height:1.6;
}

/* ===========================
   Header
=========================== */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:#fff;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:100;
}

.logo{
    font-size:24px;
    font-weight:bold;
    color:#d4af37;
}

.logo span{
    color:#222;
}

nav{
    display:flex;
    align-items:center;
    gap:20px;
}

nav a{
    text-decoration:none;
    color:#444;
    font-weight:600;
}

nav a:hover{
    color:#d4af37;
}

#logoutBtn{
    background:#d4af37;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

#logoutBtn:hover{
    background:#b8860b;
}

/* ===========================
   Main Container
=========================== */

.container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

/* ===========================
   Hero
=========================== */

.hero{
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    margin-bottom:35px;
}

.hero h1{
    font-size:34px;
    margin-bottom:12px;
}

.hero p{
    color:#666;
}

/* ===========================
   Stats
=========================== */

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
    margin-bottom:35px;
}

.card{
    background:#fff;
    padding:25px;
    border-radius:18px;
    text-align:center;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    color:#666;
    margin-bottom:12px;
}

.card h2{
    font-size:34px;
    color:#d4af37;
}

/* ===========================
   Sections
=========================== */

.progress-section,
.latest-result,
.timeline,
.goals{

    background:#fff;
    padding:30px;
    border-radius:18px;
    margin-bottom:30px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);

}

.progress-section h2,
.latest-result h2,
.timeline h2,
.goals h2{

    margin-bottom:20px;

}

/* ===========================
   Chart Placeholder
=========================== */

.chart-placeholder{

    border:2px dashed #d4af37;
    border-radius:15px;
    padding:60px 20px;
    text-align:center;
    color:#777;
}

/* ===========================
   Latest Result
=========================== */

.result-card{

    background:#fafafa;
    border-left:5px solid #d4af37;
    padding:20px;
    border-radius:12px;

}

.result-card p{

    margin-bottom:12px;

}

.result-card strong{

    color:#222;

}

/* ===========================
   Timeline
=========================== */

#timelineContainer{

    display:flex;
    flex-direction:column;
    gap:20px;

}

.timeline-item{

    background:#fafafa;
    border-left:4px solid #d4af37;
    padding:20px;
    border-radius:12px;

}

.timeline-item h4{

    color:#d4af37;
    margin-bottom:10px;

}

/* ===========================
   Goals
=========================== */

.goal-card{

    background:#fafafa;
    border-left:5px solid #4CAF50;
    padding:20px;
    border-radius:12px;

}

/* ===========================
   Actions
=========================== */

.actions{

    text-align:center;
    margin-top:40px;

}

.primary-btn{

    display:inline-block;
    background:#d4af37;
    color:#fff;
    text-decoration:none;
    padding:16px 30px;
    border-radius:12px;
    font-size:17px;
    font-weight:bold;
    transition:.3s;

}

.primary-btn:hover{

    background:#b8860b;
    transform:translateY(-3px);

}

/* ===========================
   Footer
=========================== */

footer{

    text-align:center;
    padding:30px;
    color:#777;

}

/* ===========================
   Responsive
=========================== */

@media(max-width:768px){

    .topbar{

        flex-direction:column;
        gap:20px;

    }

    nav{

        flex-wrap:wrap;
        justify-content:center;

    }

    .hero h1{

        font-size:28px;

    }

    .card h2{

        font-size:28px;

    }

}

@media(max-width:480px){

    .container{

        padding:20px 15px;

    }

    .hero,
    .progress-section,
    .latest-result,
    .timeline,
    .goals{

        padding:20px;

    }

    .primary-btn{

        width:100%;

    }

}