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

body{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(
        135deg,
        #4f46e5,
        #7c3aed,
        #06b6d4
    );
    padding:15px;
}

.hero{
    width:100%;
    max-width:500px;
}

.card{
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(15px);
    padding:25px;
    border-radius:20px;
    color:white;
    box-shadow:0 8px 25px rgba(0,0,0,0.2);
}

h1{
    text-align:center;
    margin-bottom:5px;
}

.subtitle{
    text-align:center;
    opacity:0.9;
    margin-bottom:20px;
}

.input-group{
    display:flex;
    gap:10px;
}

.input-group input{
    flex:1;
    padding:12px;
    border:none;
    border-radius:10px;
    outline:none;
}

.input-group button{
    width:55px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    background:white;
    font-size:16px;
}

.strength-row{
    display:flex;
    justify-content:space-between;
    margin-top:15px;
    font-weight:bold;
}

.strength-bar{
    width:100%;
    height:12px;
    background:rgba(255,255,255,0.2);
    border-radius:20px;
    margin-top:10px;
    overflow:hidden;
}

#strengthFill{
    width:0%;
    height:100%;
    transition:0.4s;
}

.requirements{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:15px;
}

.requirements span{
    background:rgba(255,255,255,0.15);
    padding:6px 10px;
    border-radius:20px;
    font-size:12px;
}

.generator{
    margin-top:25px;
}

.generator h3{
    margin-bottom:12px;
}

.length-buttons{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.length{
    flex:1;
    padding:10px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    background:white;
}

.length.active{
    background:#22c55e;
    color:white;
}

.options{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
    font-size:14px;
}

.generate-btn{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    background:white;
    color:#333;
    font-weight:bold;
}

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

.generated-box{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.generated-box input{
    flex:1;
    padding:12px;
    border:none;
    border-radius:10px;
    outline:none;
}

.generated-box button{
    padding:12px 15px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    background:white;
    font-weight:bold;
}

.history{
    margin-top:20px;
}

.history h3{
    margin-bottom:10px;
}

#historyList{
    list-style:none;
}

#historyList li{
    background:rgba(255,255,255,0.15);
    padding:10px;
    border-radius:10px;
    margin-bottom:8px;
    font-size:14px;
    word-break:break-all;
}

@media (max-width: 600px){

    .card{
        padding:20px;
    }

    .options{
        flex-direction:column;
        gap:8px;
    }

    .generated-box{
        flex-direction:column;
    }

    .generated-box button{
        width:100%;
    }
}