/* ===========================
   Brahmaputra Gymnasium
   Profile Page
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#111;
    color:#fff;
}

.dashboard{
    display:flex;
    min-height:100vh;
}

/* Sidebar */

.sidebar{
    width:260px;
    background:#1b1b1b;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    padding:25px;
    border-right:1px solid #333;
}

.logo{
    display:block;
    text-align:center;
    margin-bottom:40px;
    text-decoration:none;
    transition:.3s;
}

.logo h2{
    color:#FFD700;
    margin-bottom:5px;
}

.logo span{
    color:#ccc;
    font-size:14px;
}
.logo:hover{
    transform:scale(1.03);
}

.logo:hover h2{
    color:#fff;
}

.logo:hover span{
    color:#FFD700;
}
.sidebar nav{
    display:flex;
    flex-direction:column;
}

.sidebar nav a{
    color:#ddd;
    text-decoration:none;
    padding:14px;
    margin-bottom:10px;
    border-radius:10px;
    transition:.3s;
}

.sidebar nav a i{
    width:25px;
}

.sidebar nav a:hover,
.sidebar nav a.active{
    background:#FFD700;
    color:#111;
    font-weight:bold;
}

/* Main */

.main-content{
    margin-left:260px;
    width:calc(100% - 260px);
    padding:35px;
}

/* Top Bar */

.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.top-bar h1{
    color:#FFD700;
}

#logoutBtn{
    background:#FFD700;
    color:#111;
    border:none;
    padding:12px 22px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}
.home-logo{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:#FFD700;
    font-size:22px;
    font-weight:bold;
}

.home-logo img{
    width:45px;
    height:45px;
    object-fit:contain;
}

.home-logo:hover{
    opacity:0.85;
}

/* Profile Header */

.profile-header{
    background:#1e1e1e;
    border-radius:18px;
    padding:30px;
    display:flex;
    align-items:center;
    gap:25px;
    margin-bottom:25px;
}

.profile-photo{
    width:120px;
    height:120px;
    border-radius:50%;
    border:4px solid #FFD700;
    object-fit:cover;
}

.profile-header h2{
    color:#FFD700;
    margin-bottom:8px;
}

.profile-header p{
    color:#bbb;
}
/* ===========================
   Profile Cards
=========================== */

.profile-card{
    background:#1e1e1e;
    border-radius:18px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.profile-card h2{
    color:#FFD700;
    margin-bottom:20px;
    font-size:22px;
}

.profile-card h2 i{
    margin-right:10px;
}

.profile-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.info-box{
    background:#2a2a2a;
    border-radius:12px;
    padding:18px;
    transition:.3s;
    border:1px solid transparent;
}

.info-box:hover{
    transform:translateY(-4px);
    border-color:#FFD700;
}

.info-box label{
    display:block;
    color:#999;
    font-size:13px;
    margin-bottom:8px;
}

.info-box p{
    color:#fff;
    font-size:17px;
    font-weight:bold;
}

/* ===========================
   Action Buttons
=========================== */

.action-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    margin-top:20px;
}

.primary-btn,
.secondary-btn,
.back-btn{

    padding:14px 22px;
    border-radius:10px;
    text-decoration:none;
    font-size:15px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

.primary-btn{

    background:#FFD700;
    color:#111;
    border:none;
}

.primary-btn:hover{

    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(255,215,0,.35);
}

.secondary-btn{

    background:#333;
    color:#fff;
    border:1px solid #555;
}

.secondary-btn:hover{

    background:#444;
}

.back-btn{

    background:#222;
    color:#fff;
    border:1px solid #555;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.back-btn:hover{

    background:#FFD700;
    color:#111;
}

/* ===========================
   Responsive
=========================== */

@media(max-width:900px){

.sidebar{

    position:relative;
    width:100%;
    height:auto;
}

.main-content{

    margin-left:0;
    width:100%;
    padding:20px;
}

.dashboard{

    display:block;
}

.profile-header{

    flex-direction:column;
    text-align:center;
}

.top-bar{

    flex-direction:column;
    gap:15px;
    align-items:flex-start;
}

.action-buttons{

    flex-direction:column;
}

.primary-btn,
.secondary-btn,
.back-btn{

    width:100%;
    justify-content:center;
    text-align:center;
}

}

/* ===========================
   Scrollbar
=========================== */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#FFD700;
    border-radius:10px;
}

::-webkit-scrollbar-track{
    background:#1b1b1b;
}

#weightChart{
    width:100%;
    height:350px !important;
}


#weightChart{
    width:100%;
    height:380px !important;
}
.weight-modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.7);
justify-content:center;
align-items:center;
z-index:9999;
}

.weight-box{
background:#1e1e1e;
width:350px;
padding:30px;
border-radius:15px;
text-align:center;
}

.weight-box h2{
color:#FFD700;
margin-bottom:20px;
}

.weight-box input{
width:100%;
padding:12px;
font-size:18px;
border:none;
border-radius:8px;
margin-bottom:20px;
}

.weight-buttons{
display:flex;
justify-content:center;
gap:10px;
}
.photo-wrap{
    position:relative;
    width:120px;
    cursor:pointer;
}

.photo-edit-badge{
    position:absolute;
    bottom:2px;
    right:2px;
    width:34px;
    height:34px;
    background:#FFD700;
    border:3px solid #1e1e1e;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#111;
    font-size:14px;
    transition:.2s;
}

.photo-wrap:hover .photo-edit-badge{
    transform:scale(1.1);
}

.photo-uploading{
    opacity:.5;
    pointer-events:none;
}
/* ================= MOBILE PROFESSIONAL LAYOUT ================= */

.mobile-bottom-nav{
    display:none;
}

@media(max-width:900px){

    body{ padding-bottom:70px; }

    /* Hide sidebar completely on mobile, use bottom nav instead */
    .sidebar{
        display:none;
    }

    .main-content{
        margin-left:0;
        width:100%;
        padding:16px;
    }

    /* Cleaner top bar */
    .top-bar{
        padding:14px 16px;
        border-radius:14px;
        margin-bottom:18px;
    }

    .home-logo span{
        font-size:16px;
    }

    .home-logo img{
        width:36px;
        height:36px;
    }

    #logoutBtn{
        padding:9px 14px;
        font-size:13px;
    }

    /* Profile header */
    .profile-header{
        flex-direction:column;
        text-align:center;
        padding:24px 20px;
        gap:14px;
    }

    .profile-photo{
        width:90px;
        height:90px;
    }

    .profile-header h2{
        font-size:19px;
    }

    /* Cards */
    .profile-card{
        padding:18px;
        border-radius:14px;
    }

    .profile-card h2{
        font-size:17px;
        margin-bottom:14px;
    }

    .profile-grid{
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    .info-box{
        padding:12px;
    }

    .info-box label{
        font-size:11px;
    }

    .info-box p{
        font-size:14px;
    }

    /* Action buttons stack cleanly */
    .action-buttons{
        flex-direction:column;
        gap:10px;
    }

    .primary-btn,
    .secondary-btn,
    .back-btn{
        width:100%;
        text-align:center;
        justify-content:center;
        padding:13px;
    }

    /* Fixed bottom nav bar */
    .mobile-bottom-nav{
        display:flex;
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        background:#1a1a1a;
        border-top:1px solid rgba(255,215,0,.2);
        z-index:9999;
        padding:8px 0 10px;
    }

    .mobile-bottom-nav a{
        flex:1;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:4px;
        color:#888;
        text-decoration:none;
        font-size:10px;
        font-weight:600;
    }

    .mobile-bottom-nav a i{
        font-size:19px;
    }

    .mobile-bottom-nav a.active{
        color:#FFD700;
    }

}