/* Global */
body{
    margin:0;
    padding:0;
    background:#f8fafc;
    font-family:"Inter",Arial,sans-serif;
}

.app-header{
    background:#004085;
    padding:16px;
    color:white;
    text-align:center;
    font-size:20px;
    font-weight:700;
    position:sticky;
    top:0;
    z-index:100;
}

.lang-btn{
    position:absolute;
    right:15px;
    top:15px;
    background:#059669;
    color:white;
    padding:6px 12px;
    border-radius:20px;
    cursor:pointer;
    font-size:12px;
    font-weight:600;
}

.container{
    padding:16px;
    padding-bottom:120px;
}

/* Cards */
.card{
    background:white;
    padding:16px;
    border-radius:16px;
    margin-bottom:16px;
    box-shadow:0 4px 10px rgba(0,0,0,0.12);
}

h2{
    margin-top:0;
    color:#004085;
    font-size:20px;
}

/* Labels + Inputs */
label{
    display:block;
    font-size:14px;
    margin-top:10px;
    color:#1e293b;
    font-weight:600;
}

input{
    width:100%;
    padding:10px;
    border:1px solid #cdd5df;
    border-radius:10px;
    margin-top:4px;
    font-size:15px;
}

/* 2-column grid */
.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}
@media(max-width:720px){
    .grid{ grid-template-columns:1fr; }
}

/* Result Boxes */
.result-box{
    background:#eaf4ff;
    padding:12px;
    border-radius:10px;
    margin-top:12px;
    color:#003065;
    font-weight:700;
}

.green{ background:#e7ffe7; color:#065f46; }
.yellow{ background:#fff8d2; color:#8a5d01; }

/* Button */
.btn{
    width:100%;
    padding:12px;
    background:#004085;
    color:white;
    border:none;
    border-radius:12px;
    font-size:16px;
    cursor:pointer;
    margin-top:12px;
}

/* Chart FIX — Important */
.chart-box{
    position:relative;
    width:100%;
    max-width:340px;
    margin:auto;
}

.chart-box canvas{
    width:100% !important;
    height:auto !important;
    aspect-ratio:1/1 !important;
}

/* Bottom Navigation */
.bottom-nav{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    display:flex;
    background:white;
    border-top:2px solid #d9d9d9;
    padding:8px 0;
    justify-content:space-around;
    z-index:200;
}

.bottom-nav a{
    text-decoration:none;
    text-align:center;
    font-size:12px;
    color:#004085;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.bottom-nav a span{
    font-size:12px;
}
