/* ===========================
   Brahmaputra Gymnasium
   Progress Page
=========================== */

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

body{
    background:#111;
    color:#fff;
    font-family:Arial,sans-serif;
}

.dashboard{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:260px;
    background:#1b1b1b;
    padding:25px;
    position:fixed;
    left:0;
    top:0;
    bottom:0;
}

.logo h2{
    color:#FFD700;
    margin-bottom:5px;
}

.logo span{
    color:#fff;
}

.sidebar nav{
    margin-top:30px;
}

.sidebar nav a{
    display:flex;
    align-items:center;
    gap:10px;
    color:#ddd;
    text-decoration:none;
    padding:12px;
    border-radius:8px;
    margin-bottom:8px;
    transition:.3s;
}

.sidebar nav a:hover,
.sidebar nav a.active{
    background:#FFD700;
    color:#111;
}

.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.home-logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#fff;
}

.home-logo img{
    width:50px;
}

#logoutBtn{
    padding:10px 18px;
    border:none;
    background:#FFD700;
    color:#111;
    border-radius:8px;
    cursor:pointer;
}

/* Main Content */

.main-content{
    margin-left:260px;
    width:calc(100% - 260px);
    padding:35px;
    background:#111;
}

/* Page Header */

.page-header{
    margin-bottom:30px;
}

.page-header h1{
    color:#FFD700;
    font-size:34px;
}

.page-header p{
    color:#bbb;
    margin-top:8px;
}

/* Cards */

.progress-card{
    background:#1e1e1e;
    border-radius:18px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}

.progress-card h2{
    color:#FFD700;
    margin-bottom:20px;
}

/* Statistics */

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

.stat-card{
    background:#2a2a2a;
    padding:25px;
    border-radius:15px;
    text-align:center;
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-6px);
    background:#FFD700;
    color:#111;
}

.stat-card i{
    font-size:34px;
    margin-bottom:12px;
}

.stat-card h3{
    font-size:15px;
    margin-bottom:8px;
}

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

/* Chart */

.chart-card{
    background:#1e1e1e;
    border-radius:18px;
    padding:25px;
    margin-top:25px;
    width:700px;
    max-width:100%;
    height:380px;
    margin-left:auto;
    margin-right:auto;
}

.chart-card h2{
    color:#FFD700;
    margin-bottom:20px;
}

#weightChart{
    width:100% !important;
    height:100% !important;
}

.progress-bar{
    width:100%;
    height:10px;
    background:#ddd;
    border-radius:10px;
    overflow:hidden;
    margin-top:8px;
}

.progress-fill{
    width:0%;
    height:100%;
    background:#28a745;
    transition:width .8s ease;
}

/* Responsive */

@media(max-width:900px){

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .dashboard{
        display:block;
    }

    .main-content{
        margin-left:0;
        width:100%;
        padding:20px;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .top-bar{
        flex-direction:column;
        gap:15px;
        align-items:flex-start;
    }

    .chart-card{
        width:100%;
    }

}
