* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}
header {
    background: #4a90e2;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
header .logo h1 {
    margin: 0;
    font-size: 24px;
    color: white;
}
nav ul {
    list-style: none;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li:first-child {
    margin-left: 0;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}
main {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
    margin-bottom: 10px;
    color: #333;
}
h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}
p {
    margin-bottom: 10px;
}
ul {
    margin-left: 20px;
    margin-bottom: 10px;
}
button {
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background: #357ABD;
}
input[type="range"] {
    width: 100%;
}
.form-group {
    margin-bottom: 10px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
textarea {
    resize: vertical;
    height: 80px;
}
.password-output {
    width: 100%;
    min-height: 40px;
    padding: 10px;
    margin-block: 10px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-family: monospace;
    font-size: 18px;
    color: #333;
}
.password-output.loading {
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
footer {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}
/* Responsive adjustments */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        margin-top: 10px;
        flex-direction: column;
    }
    nav ul li {
        margin-left: 0;
        margin-top: 5px;
    }
    main {
        margin: 10px;
    }
}
