/* -----------------------------------
   Dashboard
------------------------------------ */

.wwt-dashboard{
    width:100%;
}

.wwt-dashboard-header{
    margin-bottom:25px;
}

.wwt-dashboard-header h2{
    color:#348177;
    margin-bottom:10px;
}

.wwt-dashboard-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.wwt-card{
    background:#fff;
    border-radius:16px;
    padding:25px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.wwt-card-icon{
    font-size:42px;
    margin-bottom:15px;
}

.wwt-card h3{
    margin-bottom:15px;
    color:#348177;
}

.wwt-stat{
    font-size:28px;
    font-weight:700;
    margin-bottom:15px;
}

.wwt-progress-bar{
    width:100%;
    height:10px;
    background:#e5e5e5;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:12px;
}

.wwt-progress-bar span{
    display:block;
    height:100%;
    background:#348177;
}

.wwt-btn{
    display:inline-block;
    margin-top:15px;
    background:#348177;
    color:#fff !important;
    padding:12px 20px;
    text-decoration:none;
    border-radius:8px;
}

.wwt-btn:hover{
    background:#2d6f66;
}

@media(max-width:768px){

    .wwt-dashboard-grid{
        grid-template-columns:1fr;
    }

}

/* ===================================
   WEIGHT TRACKER
=================================== */

.wwt-weight-wrapper{
    max-width:1100px;
    margin:0 auto;
}

.wwt-weight-header{
    background:#348177;
    color:#fff;
    padding:25px;
    border-radius:15px;
    text-align:center;
    margin-bottom:25px;
}

.wwt-weight-header h2{
    margin:0;
    color:#fff;
    font-size:38px;
    font-weight:700;
}

.wwt-weight-alert{
    background:#e8f4f2;
    border:1px solid #348177;
    color:#2d6f66;
    padding:15px 20px;
    border-radius:10px;
    margin-bottom:25px;
}

.wwt-chart-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    box-shadow:0 3px 15px rgba(0,0,0,.08);
    margin-bottom:25px;
}

#wwt-weight-chart{
    width:100%;
    min-height:350px;
}

.wwt-log-weight-btn{
    width:100%;
    background:#348177;
    color:#fff;
    border:none;
    padding:16px;
    border-radius:40px;
    margin-top:20px;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
}

.wwt-log-weight-btn:hover{
    background:#2d6f66;
}

/* Stats Cards */

.wwt-stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:25px;
}

.wwt-stat-card{
    background:#fff;
    padding:25px;
    border-radius:16px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.wwt-stat-card h4{
    margin-bottom:10px;
    color:#666;
}

.wwt-big-number{
    font-size:32px;
    font-weight:700;
    color:#348177;
}

/* History */

.wwt-history-card{
    background:#fff;
    border-radius:20px;
    padding:30px;
    box-shadow:0 3px 15px rgba(0,0,0,.08);
}

.wwt-history-card h3{
    text-align:center;
    margin-bottom:25px;
}

.wwt-history-row{
    display:flex;
    justify-content:space-between;
    padding:15px 0;
    border-bottom:1px solid #eee;
}

.wwt-history-row:last-child{
    border-bottom:none;
}

/* Modal */

.wwt-modal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.wwt-modal.active{
    display:flex;
}

.wwt-modal-content{
    width:500px;
    max-width:90%;
    background:#fff;
    padding:30px;
    border-radius:20px;
}

.wwt-modal-content h2{
    text-align:center;
    margin-bottom:25px;
}

.wwt-modal-content label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.wwt-modal-content input{
    width:100%;
    padding:15px;
    border:1px solid #ddd;
    border-radius:10px;
    margin-bottom:20px;
}

.wwt-modal-save{
    width:100%;
    background:#348177;
    border:none;
    color:#fff;
    padding:15px;
    border-radius:10px;
    font-size:16px;
    cursor:pointer;
}

.wwt-modal-save:hover{
    background:#2d6f66;
}


