/* ==========================
   ToolNova Password Generator
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#0f172a;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:30px;
}

.container{
    width:100%;
    max-width:600px;
    background:#1e293b;
    border-radius:20px;
    padding:35px;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

header{
    text-align:center;
    margin-bottom:30px;
}

header h1{
    color:#fff;
    font-size:36px;
    margin-bottom:10px;
}

header p{
    color:#94a3b8;
    font-size:16px;
}

.passwordBox{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:25px;
}

.passwordBox input{
    flex:1;
    padding:16px;
    border:none;
    outline:none;
    border-radius:12px;
    background:#0f172a;
    color:#fff;
    font-size:18px;
}

.passwordBox button{
    width:52px;
    height:52px;
    border:none;
    border-radius:12px;
    cursor:pointer;
    background:#2563eb;
    color:#fff;
    font-size:18px;
    transition:.3s;
}

.passwordBox button:hover{
    background:#1d4ed8;
    transform:scale(1.05);
}

.strength{
    margin-bottom:25px;
}

.bar{
    width:100%;
    height:10px;
    background:#334155;
    border-radius:20px;
    overflow:hidden;
    margin-bottom:10px;
}

#barFill{
    width:100%;
    height:100%;
    background:#22c55e;
    transition:.4s;
}

.strength p{
    color:#cbd5e1;
}

#strengthText{
    font-weight:bold;
}

.options{
    margin-top:25px;
}

.option{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    color:white;
    font-weight:600;
}

input[type=range]{
    width:100%;
    margin-bottom:25px;
    cursor:pointer;
}

.options label{
    display:block;
    color:#e2e8f0;
    margin-bottom:15px;
    cursor:pointer;
    user-select:none;
}

.options input[type=checkbox]{
    margin-right:8px;
    transform:scale(1.2);
}

.generateBtn{
    width:100%;
    padding:16px;
    border:none;
    border-radius:12px;
    background:#10b981;
    color:white;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
    margin-top:20px;
    transition:.3s;
}

.generateBtn:hover{
    background:#059669;
    transform:translateY(-2px);
}

.history{
    margin-top:35px;
}

.history h2{
    color:white;
    margin-bottom:15px;
    font-size:24px;
}

#historyList{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:10px;
    max-height:220px;
    overflow-y:auto;
}

#historyList li{
    background:#0f172a;
    color:#fff;
    padding:12px;
    border-radius:10px;
    font-family:monospace;
    word-break:break-all;
}

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:#475569;
    border-radius:10px;
}

::-webkit-scrollbar-track{
    background:transparent;
}

/* Responsive */

@media(max-width:650px){

.container{
    padding:25px;
}

header h1{
    font-size:28px;
}

.passwordBox{
    flex-wrap:wrap;
}

.passwordBox input{
    width:100%;
}

.passwordBox button{
    flex:1;
}

}