/*
|--------------------------------------------------------------------------
| Fitness AI App CSS
|--------------------------------------------------------------------------
| Mobile First
| Bootstrap 5
| App Style Layout
|--------------------------------------------------------------------------
*/

:root{

    --primary:#4f46e5;
    --primary-light:#6366f1;

    --secondary:#06b6d4;

    --success:#10b981;
    --warning:#f59e0b;
    --danger:#ef4444;

    --dark:#111827;
    --gray:#6b7280;

    --bg:#f5f7fb;
    --card:#ffffff;

    --border:#e5e7eb;

    --topbar-height:70px;
    --bottom-nav-height:72px;

    --radius:18px;

    --shadow:
        0 10px 25px rgba(0,0,0,.08);

}

/* -------------------------------------------------- */
/* Reset */
/* -------------------------------------------------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{

    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;

    background:
    linear-gradient(
        135deg,
        #eef2ff 0%,
        #f8fafc 50%,
        #ecfeff 100%
    );

}

body{

    overflow-x:hidden;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;

}

/* -------------------------------------------------- */
/* App Wrapper */
/* -------------------------------------------------- */

.app-container{

    min-height:100vh;
    background:transparent;

}

.app-content{

    max-width:420px;

    margin:0 auto;

    min-height:100vh;

    padding-top:20px;
    padding-bottom:40px;

}

/* -------------------------------------------------- */
/* Topbar */
/* -------------------------------------------------- */

.topbar{

    height:var(--topbar-height);

    background:#ffffff;

    border-bottom:1px solid var(--border);

    display:flex;
    align-items:center;

    z-index:1050;

    box-shadow:
        0 2px 10px rgba(0,0,0,.04);

}

.menu-btn{

    width:42px;
    height:42px;

    border:none;

    border-radius:12px;

    background:#eef2ff;

}

.menu-btn i{

    font-size:18px;
    color:var(--primary);

}

.app-brand{

    display:flex;
    align-items:center;
    gap:10px;

}

.app-logo{

    width:38px;
    height:38px;

    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;

}

.app-name{

    font-size:18px;
    font-weight:700;

}

.top-icon-btn{

    width:42px;
    height:42px;

    border:none;

    border-radius:12px;

    background:#f3f4f6;

}

.top-avatar{

    width:42px;
    height:42px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid #fff;

    box-shadow:
        0 3px 10px rgba(0,0,0,.12);

}

/* -------------------------------------------------- */
/* Sidebar */
/* -------------------------------------------------- */

.sidebar-offcanvas{

    width:290px;

}

.sidebar-user{

    text-align:center;

    padding:25px 20px;

    border-bottom:1px solid var(--border);

}

.sidebar-avatar{

    width:90px;
    height:90px;

    border-radius:50%;

    object-fit:cover;

    border:4px solid #fff;

    box-shadow:
        0 6px 18px rgba(0,0,0,.15);

}

.sidebar-name{

    margin-top:15px;
    margin-bottom:4px;

    font-weight:700;

}

.sidebar-email{

    color:var(--gray);
}

.sidebar-menu{

    list-style:none;
    padding:0;
    margin:0;

}

.sidebar-menu li{

    width:100%;

}

.sidebar-menu a{

    display:flex;
    align-items:center;
    gap:15px;

    padding:16px 20px;

    color:var(--dark);

    text-decoration:none;

    transition:.3s;

}

.sidebar-menu a i{

    width:22px;
    text-align:center;

}

.sidebar-menu a:hover{

    background:#f3f4f6;

}

.sidebar-menu a.active{

    background:#eef2ff;

    color:var(--primary);

    font-weight:600;

}

.sidebar-footer{

    padding:20px;

}

/* -------------------------------------------------- */
/* Bottom Navigation */
/* -------------------------------------------------- */

.bottom-nav{

    position:fixed;

    left:0;
    right:0;
    bottom:0;

    height:var(--bottom-nav-height);

    background:#fff;

    border-top:1px solid var(--border);

    display:flex;

    z-index:1050;

    box-shadow:
        0 -3px 10px rgba(0,0,0,.05);

}

.bottom-nav-item{

    flex:1;

    text-decoration:none;

    color:var(--gray);

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:3px;

    font-size:11px;

    transition:.3s;

}

.bottom-nav-item i{

    font-size:18px;

}

.bottom-nav-item.active{

    color:var(--primary);

    font-weight:600;

}

/* -------------------------------------------------- */
/* Dashboard Cards */
/* -------------------------------------------------- */

.dashboard-card{

    background:#fff;

    border-radius:var(--radius);

    padding:20px;

    margin-bottom:15px;

    box-shadow:var(--shadow);

    border:none;

}

.dashboard-card h6{

    color:var(--gray);

    margin-bottom:8px;

    font-size:14px;

}

.dashboard-card h3{

    font-weight:700;

    margin-bottom:0;

}

/* -------------------------------------------------- */
/* Statistics Cards */
/* -------------------------------------------------- */

.stat-card{

    border-radius:20px;

    padding:20px;

    color:#fff;

    position:relative;

    overflow:hidden;

}

.stat-card.primary{

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #7c3aed
        );

}

.stat-card.success{

    background:
        linear-gradient(
            135deg,
            #10b981,
            #34d399
        );

}

.stat-card.warning{

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #fbbf24
        );

}

.stat-card.danger{

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #f87171
        );

}

.stat-card .icon{

    position:absolute;

    right:15px;
    top:15px;

    font-size:30px;

    opacity:.2;

}

/* -------------------------------------------------- */
/* Forms */
/* -------------------------------------------------- */

.form-control,
.form-select{

    min-height:52px;

    border-radius:14px;

    border:1px solid var(--border);

}

.form-control:focus,
.form-select:focus{

    box-shadow:none;

    border-color:var(--primary);

}

.btn{

    border-radius:14px;

    min-height:50px;

    font-weight:600;

}

/* -------------------------------------------------- */
/* Buttons */
/* -------------------------------------------------- */

.btn-primary{

    background:var(--primary);
    border-color:var(--primary);

}

.btn-primary:hover{

    background:#4338ca;
    border-color:#4338ca;

}

/* -------------------------------------------------- */
/* Tables */
/* -------------------------------------------------- */

.table{

    background:#fff;

}

/* -------------------------------------------------- */
/* Charts */
/* -------------------------------------------------- */

.chart-card{

    background:#fff;

    border-radius:20px;

    padding:20px;

    box-shadow:var(--shadow);

}

/* -------------------------------------------------- */
/* Profile */
/* -------------------------------------------------- */

.profile-avatar{

    width:120px;
    height:120px;

    border-radius:50%;

    object-fit:cover;

}

/* -------------------------------------------------- */
/* Utilities */
/* -------------------------------------------------- */

.radius-lg{

    border-radius:20px;

}

.shadow-app{

    box-shadow:var(--shadow);

}

.bg-card{

    background:#fff;

}

/* -------------------------------------------------- */
/* Mobile */
/* -------------------------------------------------- */

@media (max-width:768px){

    .app-name{

        font-size:16px;

    }

    .dashboard-card{

        padding:16px;

    }

}

.app-logo-large{

    width:100px;
    height:100px;

    margin:auto;

    border-radius:30px;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#fff;

    font-size:40px;

    background:
    linear-gradient(
        135deg,
        #4f46e5,
        #06b6d4
    );

}