*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:linear-gradient(135deg, #172554, #0f766e);
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:20px;
    color:#111827;
}

.container{
    width:min(100%, 460px);
    background:white;
    padding:32px;
    border-radius:8px;
    box-shadow:0 18px 45px rgba(0,0,0,0.28);
}

h1{
    text-align:center;
    margin-bottom:10px;
    font-size:28px;
}

.subtitle{
    color:#526071;
    line-height:1.5;
    text-align:center;
    margin-bottom:24px;
}

label{
    display:block;
    font-weight:700;
    margin-bottom:8px;
}

.input-wrap{
    display:flex;
    gap:8px;
    margin-bottom:16px;
}

input{
    width:100%;
    padding:12px;
    font-size:16px;
    border:2px solid #d1d5db;
    border-radius:8px;
    outline:none;
}

input:focus{
    border-color:#0f766e;
    box-shadow:0 0 0 3px rgba(15,118,110,0.14);
}

button{
    border:0;
    border-radius:8px;
    background:#172554;
    color:white;
    cursor:pointer;
    font-weight:700;
    min-width:68px;
    padding:0 14px;
}

button:hover{
    background:#1e3a8a;
}

.progress-container{
    width:100%;
    height:12px;
    background:#e5e7eb;
    border-radius:20px;
    overflow:hidden;
}

#progressBar{
    height:100%;
    width:0%;
    background:#d1d5db;
    transition:width 0.3s ease, background 0.3s ease;
}

#progressBar.weak{
    background:#dc2626;
}

#progressBar.medium{
    background:#f59e0b;
}

#progressBar.strong{
    background:#16a34a;
}

.result-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-top:18px;
}

#strengthText{
    font-size:20px;
}

#scoreText{
    font-weight:bold;
    white-space:nowrap;
}

#summaryText{
    color:#526071;
    line-height:1.5;
    margin-top:12px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:10px;
    margin-top:18px;
}

.stat-box{
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:12px 10px;
    text-align:center;
    background:#f9fafb;
}

.stat-box span{
    display:block;
    color:#526071;
    font-size:12px;
    line-height:1.2;
    margin-bottom:6px;
}

.stat-box strong{
    color:#111827;
    font-size:22px;
}

#feedback{
    list-style:none;
    margin-top:18px;
}

#feedback li{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
    color:#4b5563;
    line-height:1.35;
}

#feedback li::before{
    content:"!";
    display:grid;
    place-items:center;
    flex:0 0 22px;
    width:22px;
    height:22px;
    border-radius:50%;
    background:#fee2e2;
    color:#b91c1c;
    font-size:13px;
    font-weight:700;
}

#feedback li.passed{
    color:#166534;
}

#feedback li.passed::before{
    content:"OK";
    background:#dcfce7;
    color:#166534;
    font-size:10px;
}

@media (max-width:480px){
    .container{
        padding:24px;
    }

    .result-row{
        align-items:flex-start;
        flex-direction:column;
        gap:6px;
    }

    .stats-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}
