body {
    font-family: Arial;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: 0.3s;
}

body.dark {
    background: #121212;
    color: white;
}

body.light {
    background: #f5f5f5;
    color: black;
}

.container {
    padding: 20px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: inherit;
    animation: fadeIn 0.5s ease;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.output-box {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.output-box input {
    flex: 1;
    padding: 10px;
}

.output-box button {
    padding: 10px;
    cursor: pointer;
}

.settings label {
    display: block;
    margin: 5px 0;
}

.generate {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: #ccc;
    margin-top: 10px;
    border-radius: 5px;
}

#strengthFill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}