body{
font-family: Arial, sans-serif;
background: linear-gradient(135deg,#667eea,#764ba2);
height:100vh;
display:flex;
align-items:center;
justify-content:center;
margin:0;
transition:0.3s;
}

.container{
background:white;
padding:30px;
border-radius:12px;
width:350px;
box-shadow:0 15px 35px rgba(0,0,0,0.2);
text-align:center;
}

.top-bar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
}

#themeToggle{
border:none;
background:#eee;
padding:6px 10px;
cursor:pointer;
border-radius:5px;
}

.display{
display:flex;
gap:10px;
margin-bottom:20px;
}

.display input{
flex:1;
padding:10px;
font-size:16px;
border:1px solid #ccc;
border-radius:5px;
}

.display button{
padding:10px;
cursor:pointer;
border:none;
background:#667eea;
color:white;
border-radius:5px;
}

.settings{
margin-bottom:20px;
}

.generate{
width:100%;
padding:12px;
font-size:16px;
background:#667eea;
color:white;
border:none;
cursor:pointer;
border-radius:6px;
}

.generate:hover{
background:#5563d6;
}

.strength{
margin-top:20px;
text-align:left;
}

#strengthBar{
height:10px;
width:0%;
background:red;
border-radius:5px;
margin-top:5px;
transition:0.3s;
}

/* DARK MODE */

.dark body{
background:#121212;
}

.dark .container{
background:#1e1e1e;
color:white;
}

.dark input{
background:#333;
color:white;
border:1px solid #555;
}

.dark #themeToggle{
background:#333;
color:white;
}

#copyMsg{
display:block;
margin-top:10px;
font-size:14px;
color:green;
opacity:0;
transition:0.3s;
}