
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f7fb;
    color: #172033;
}

header {
    background: white;
    text-align: center;
    padding: 25px 15px;
}

header h1 {
    color: #000;
    font-size: 32px;
}

header h1 a {
    text-decoration: none;
    color: #333;
}

header p {
    color: #777;
    margin-top: 5px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 22px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

main {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.generator-box {
    background: white;
    padding: 25px;
    margin-top: 30px;
    border-radius: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.generator-box h2 {
    margin-bottom: 20px;
}

.password-output {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

button {
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.copy-btn {
    background: #e8e8e8;
    color: #000;
}

#length {
    width: 100%;
    margin: 15px 0 20px;
    accent-color: #5f5f5f;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0 25px;
}

.option {
    font-size: 14px;
}

.generate-btn {
    width: 100%;
    background: #000;
    color: white;
    font-size: 15px;
}

#message {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
}

footer {
    text-align: center;
    padding: 20px;
    color: #68758a;
    font-size: 13px;
}

@media (max-width: 600px) {
    main {
        margin: 25px auto;
    }

    .intro h1 {
        font-size: 25px;
    }

    .password-output {
        flex-direction: column;
    }

    .options {
        grid-template-columns: 1fr;
    }
}




.strength-bar {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 10px;
    margin: 12px 0 20px;
    overflow: hidden;
}

#strength-progress {
    width: 0%;
    height: 100%;
    transition: 0.3s;
}

.rules {
    padding-left: 20px;
    margin-top: 10px;
    line-height: 2;
    font-size: 14px;
}

.rules li.passed {
    color: #16834a;
}

.field {
    margin-top: 0px;
}
.password-output input {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.password-output button {
    flex-shrink: 0;
}

#length,
#wordCount {
    width: 100%;
    margin: 15px 0 20px;
    accent-color: #5f5f5f;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    margin-top: 10px;
    margin-bottom: 30px;
    background: white;
}