/*
|--------------------------------------------------------------------------
| Fitness AI Dashboard CSS
|--------------------------------------------------------------------------
| Dashboard Widgets
| Analytics Cards
| Progress UI
| Workout UI
|--------------------------------------------------------------------------
*/

/* --------------------------------------------------
   Dashboard Header
-------------------------------------------------- */

.dashboard-header{

    margin-bottom:20px;

}

.dashboard-title{

    font-size:24px;
    font-weight:700;
    color:#111827;

    margin-bottom:5px;

}

.dashboard-subtitle{

    color:#6b7280;
    font-size:14px;

}

/* --------------------------------------------------
   Welcome Card
-------------------------------------------------- */

.welcome-card{

    background:
    linear-gradient(
        135deg,
        #4f46e5,
        #06b6d4
    );

    color:#fff;

    border-radius:24px;

    padding:25px;

    position:relative;

    overflow:hidden;

    margin-bottom:20px;

}

.welcome-card::after{

    content:'';

    position:absolute;

    right:-30px;
    top:-30px;

    width:140px;
    height:140px;

    background:rgba(255,255,255,.08);

    border-radius:50%;

}

.welcome-card h2{

    font-size:24px;
    font-weight:700;

    margin-bottom:8px;

}

.welcome-card p{

    margin:0;
    opacity:.9;

}

/* --------------------------------------------------
   Dashboard Statistics
-------------------------------------------------- */

.stats-row{

    margin-bottom:20px;

}

.stat-card{

    min-height:130px;

}

.stat-label{

    font-size:14px;
    opacity:.9;

}

.stat-value{

    font-size:30px;
    font-weight:700;

    margin-top:10px;

}

.stat-unit{

    font-size:13px;

    opacity:.8;

}

/* --------------------------------------------------
   Fitness Score Card
-------------------------------------------------- */

.fitness-score-card{

    background:
    linear-gradient(
        135deg,
        #10b981,
        #34d399
    );

    color:#fff;

    border-radius:24px;

    padding:25px;

    text-align:center;

    margin-bottom:20px;

}

.fitness-score{

    font-size:64px;

    line-height:1;

    font-weight:800;

}

.fitness-score-label{

    margin-top:10px;

    font-size:15px;

}

/* --------------------------------------------------
   Progress Bar Widget
-------------------------------------------------- */

.goal-progress{

    margin-top:15px;

}

.goal-progress .progress{

    height:12px;

    border-radius:50px;

    background:#e5e7eb;

}

.goal-progress .progress-bar{

    border-radius:50px;

}

/* --------------------------------------------------
   Workout Card
-------------------------------------------------- */

.workout-card{

    background:#fff;

    border-radius:20px;

    padding:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    margin-bottom:20px;

}

.workout-title{

    font-size:18px;
    font-weight:700;

    margin-bottom:15px;

}

.workout-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 0;

    border-bottom:1px solid #f1f5f9;

}

.workout-item:last-child{

    border-bottom:none;

}

.exercise-name{

    font-weight:600;

}

.exercise-meta{

    font-size:13px;
    color:#6b7280;

}

/* --------------------------------------------------
   AI Recommendation Card
-------------------------------------------------- */

.ai-card{

    background:#fff;

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

}

.ai-card-header{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:15px;

}

.ai-card-header i{

    color:#4f46e5;

    font-size:22px;

}

.ai-card-header h5{

    margin:0;

    font-weight:700;

}

.ai-tip{

    padding:12px 15px;

    background:#f8fafc;

    border-radius:12px;

    margin-bottom:10px;

    font-size:14px;

}

.ai-tip:last-child{

    margin-bottom:0;

}

/* --------------------------------------------------
   Analysis Report
-------------------------------------------------- */

.analysis-card{

    background:#fff;

    border-radius:20px;

    padding:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

}

.analysis-card h5{

    font-weight:700;

    margin-bottom:15px;

}

.analysis-content{

    line-height:1.8;

    color:#374151;

}

/* --------------------------------------------------
   Progress Tracking
-------------------------------------------------- */

.progress-card{

    background:#fff;

    border-radius:20px;

    padding:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    margin-bottom:20px;

}

.progress-card h5{

    margin-bottom:15px;

    font-weight:700;

}

.measurement-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:12px 0;

    border-bottom:1px solid #f1f5f9;

}

.measurement-item:last-child{

    border-bottom:none;

}

.measurement-value{

    font-weight:700;

}

/* --------------------------------------------------
   Chart Container
-------------------------------------------------- */

.chart-wrapper{

    background:#fff;

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

}

.chart-wrapper canvas{

    width:100% !important;

}

/* --------------------------------------------------
   Profile Page
-------------------------------------------------- */

.profile-card{

    background:#fff;

    border-radius:24px;

    padding:25px;

    text-align:center;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    margin-bottom:20px;

}

.profile-card img{

    width:120px;
    height:120px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:15px;

}

.profile-name{

    font-size:22px;
    font-weight:700;

}

.profile-email{

    color:#6b7280;

    margin-top:5px;

}

/* --------------------------------------------------
   Assessment Form
-------------------------------------------------- */

.assessment-card{

    background:#fff;

    border-radius:24px;

    padding:25px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

}

.assessment-card h4{

    font-weight:700;

    margin-bottom:20px;

}

/* --------------------------------------------------
   Section Headings
-------------------------------------------------- */

.section-heading{

    font-size:18px;

    font-weight:700;

    margin-bottom:15px;

}

/* --------------------------------------------------
   Quick Actions
-------------------------------------------------- */

.quick-actions{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

.quick-action{

    background:#fff;

    border-radius:18px;

    padding:20px;

    text-align:center;

    text-decoration:none;

    color:#111827;

    box-shadow:
    0 8px 20px rgba(0,0,0,.06);

    transition:.3s;

}

.quick-action:hover{

    transform:translateY(-3px);

    color:#4f46e5;

}

.quick-action i{

    font-size:28px;

    margin-bottom:10px;

}

/* --------------------------------------------------
   Empty State
-------------------------------------------------- */

.empty-state{

    text-align:center;

    padding:50px 20px;

}

.empty-state i{

    font-size:60px;

    color:#d1d5db;

    margin-bottom:15px;

}

.empty-state h4{

    margin-bottom:10px;

    font-weight:700;

}

.empty-state p{

    color:#6b7280;

}

/* --------------------------------------------------
   Mobile Optimization
-------------------------------------------------- */

@media(max-width:768px){

    .fitness-score{

        font-size:52px;

    }

    .dashboard-title{

        font-size:22px;

    }

    .welcome-card{

        padding:20px;

    }

    .quick-actions{

        grid-template-columns:1fr 1fr;

    }

}