.card,
.results-card{
    background:#ffffff;
    border-radius:24px;
    padding:28px;
    margin-bottom:25px;
    box-shadow:
    0 10px 30px rgba(0,0,0,.08);;
}

.unit-toggle{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-bottom:25px;
}

.unit-btn{
    border:none;
    padding:14px 30px;
    border-radius:50px;
    cursor:pointer;
    font-size:15px;
    font-weight:700;
    background:#ffffff;
    color:#192c27;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
    transition:.3s;
}

.unit-btn:hover{
    transform:translateY(-2px);
}

.unit-btn.active{
    background:#007f5f;
    color:white;
}

.calculator-type{
    margin-bottom:25px;
}

.calculator-type label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.calculator-type select{
    width:100%;
    max-width:350px;
}

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

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group input,
.form-group select,
.calculator-type select{
    width:100%;
    border:2px solid #dce7e3;
    border-radius:14px;
    outline:none;
    transition:.3s;
}

.results-card{
    background:
    linear-gradient(
        135deg,
        #007f5f,
        #365951
    );

    color:white;
}

.main-result{
    text-align:center;
}

.result-value{
    font-size:68px;
    font-weight:800;
}

.result-title{
    font-size:18px;
    opacity:.95;
}

/* Risk Meter */

.risk-meter{
    width:100%;
    height:18px;
    background:
    rgba(255,255,255,.2);
    border-radius:50px;
    overflow:hidden;
    margin-top:25px;
}

.risk-fill{
    width:0%;
    height:100%;
    background:white;
    border-radius:50px;
    transition:.5s;
}

/* Results Grid */

.result-grid{
    margin-top:30px;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:15px;
}

.result-box{
    background:
    rgba(255,255,255,.15);

    backdrop-filter:blur(5px);

    border-radius:18px;
    padding:18px;
    text-align:center;
}

.result-box span{
    display:block;
    font-size:13px;
    margin-bottom:8px;
    opacity:.9;
}

.result-box strong{
    font-size:18px;
    font-weight:600;
}

/* Body Shape */

.visual-card{
    text-align:center;
}

.body-visual{
    display:flex;
    flex-direction:column;
    align-items:center;
}

#bodyIcon{
    font-size:100px;
    margin-bottom:10px;
}

#bodyShapeText{
    font-size:24px;
    font-weight:600;
}

/* Body Fat Risk Chart */

.chart-description{
    color:#5f6c67;
    margin-bottom:25px;
}

.chart-wrapper{
    margin-top:20px;
}

.chart-bar{
    width:100%;
    height:40px;
    background:#e7efec;
    border-radius:50px;
    overflow:hidden;
}

.chart-fill{
    width:0%;
    height:100%;
    background:
    linear-gradient(
        90deg,
        #55a630,
        #f4a261,
        #e63946
    );

    transition:.8s ease;
}

.chart-labels{
    display:flex;
    justify-content:space-between;
    margin-top:10px;
    font-size:14px;
    font-weight:600;
}

.score-display{
    text-align:center;
    margin-top:20px;
    font-size:20px;
    font-weight:700;
}

/* Table */

.table-wrapper{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

thead{
    background:var(--primary);
    color:white;
}

th,
td{
    border:1px solid #dbe6e2;
    padding:14px;
    text-align:center;
}

tbody tr:nth-child(even){
    background:#f8fbfa;
}


/* WHO Risk Categories */

.risk-category-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:20px;
}

.risk-item{
    color:white;
    padding:25px;
    border-radius:18px;
}

.risk-item h3{
    margin-bottom:10px;
}

.green{
    background:#55a630;
}

.yellow{
    background:#f4a261;
}

.red{
    background:#e63946;
}

/* Info */

.info-card p{
    line-height:1.8;
    color:#5c6964;
    margin-bottom:15px;
}

/* Headings */

.card h2{
    margin-bottom:20px;
    color:#192c27;
}

/* Utility */

.low-risk{
    color:#55a630;
}

.medium-risk{
    color:#f4a261;
}

.high-risk{
    color:#e63946;
}