/* =====================================
   EMerriment Dashboard
===================================== */

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

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

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

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

.brand{
    font-size:24px;
    font-weight:bold;
    color:#b8860b;
}

.brand span{
    color:#222;
}

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

.logout-btn:hover{
    background:#b8860b;
}

/* =========================
   Dashboard Layout
========================= */

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

/* =========================
   Welcome Card
========================= */

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

.welcome-card h1{
    color:#222;
    margin-bottom:10px;
}

.welcome-card p{
    color:#666;
}

/* =========================
   Statistics
========================= */

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

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

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

.stat-card h2{
    font-size:18px;
    margin-bottom:10px;
    color:#555;
}

.stat-card p{
    font-size:32px;
    font-weight:bold;
    color:#d4af37;
}

/* =========================
   Features
========================= */

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

.feature-card{
    background:#fff;
    text-decoration:none;
    color:#333;
    padding:30px;
    border-radius:18px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    transition:.3s;
}

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

.icon{
    font-size:40px;
    margin-bottom:15px;
}

.feature-card h3{
    margin-bottom:10px;
    color:#222;
}

.feature-card p{
    color:#666;
    font-size:15px;
}

/* =========================
   Activity
========================= */

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

.activity-card h2{
    margin-bottom:15px;
}

#recentActivity{
    color:#666;
}

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

footer{
    text-align:center;
    padding:25px;
    color:#777;
}

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

@media (max-width:768px){

    .topbar{
        flex-direction:column;
        gap:15px;
        padding:20px;
    }

    .brand{
        font-size:22px;
    }

    .logout-btn{
        width:100%;
    }

    .welcome-card{
        padding:25px;
    }

    .welcome-card h1{
        font-size:28px;
    }

    .stat-card p{
        font-size:28px;
    }

    .welcome-card{
        padding:20px;
    }

    .stat-card,
    .feature-card,
    .activity-card{
        padding:20px;
    }

    .icon{
        font-size:34px;
    }

    .welcome-card h1{
        font-size:24px;
    }

}

.empty-state{

    background:#ffffff;

    padding:40px;

    border-radius:16px;

    text-align:center;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

}

.empty-state h3{

    color:#1f7a4d;

    margin-bottom:10px;

}

.empty-state p{

    color:#666;

}

.progress-bar{

    width:100%;

    height:8px;

    background:#e5e5e5;

    border-radius:999px;

    overflow:hidden;

    margin:12px 0;

}

.progress-fill{

    height:100%;

    background:#1f7a4d;

    border-radius:999px;

    transition:width .3s ease;

}

.topics-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

}

.topic-card{

    background:#fff;

    border-radius:16px;

    padding:20px;

    text-align:center;

    cursor:pointer;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

    transition:.3s;

}

.topic-card:hover{

    transform:translateY(-4px);

}

.topic-card h3{

    color:#1f7a4d;

    margin-bottom:10px;

}

.topic-card p{

    color:#666;

}