body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #ff9a9e, #fbc2eb, #8fd3f4);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    animation: bgAnimation 10s infinite alternate ease-in-out;
}

.passwordgen {
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    width: 400px;
}

h1 {
    font-size: 26px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0px 3px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    text-align: center;
    transition: 0.3s;
    color: #333;
}

input[type="text"]:focus {
    border: 2px solid #ff416c;
    box-shadow: 0 0 10px rgba(255, 65, 108, 0.5);
}

input[type="range"] {
    width: 100%;
    margin-top: 10px;
    accent-color: #ff416c;
}

/* Checkbox Styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.checkbox-container input {
    display: none;
}

.checkbox-container label {
    position: relative;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Custom checkbox */
.checkbox-container label::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #ff416c;
    border-radius: 5px;
    display: inline-block;
    margin-right: 10px;
    transition: 0.3s;
    background: white;
}

.checkbox-container input:checked + label::before {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    border-color: transparent;
    content: "✔";
    color: white;
    font-size: 14px;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
}

/* Button Styling */
button {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 16px;
    transition: 0.3s ease-in-out;
    box-shadow: 0px 5px 15px rgba(255, 65, 108, 0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 15px;
}

button:hover {
    transform: scale(1.08);
    box-shadow: 0px 8px 20px rgba(255, 65, 108, 0.8);
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Animation */
@keyframes bgAnimation {
    from {
        background: linear-gradient(135deg, #ff9a9e, #fbc2eb, #8fd3f4);
    }
    to {
        background: linear-gradient(135deg, #8fd3f4, #fbc2eb, #ff9a9e);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .passwordgen {
        width: 90%;
        padding: 20px;
    }
    h1 {
        font-size: 22px;
    }
    button {
        width: 100%;
    }
}
