*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

h1 {
    color: #2c3e50; 
    margin-bottom: 25px;
    font-size: 2em;
}

.password-display {
    display: flex;
    margin-bottom: 25px;
    gap: 10px;
}

#passwordOutput {
    flex-grow: 1; 
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    background-color: #e9ecef; 
    color: #555;
    text-align: center;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
}
.options {
    text-align: left;
    margin-bottom: 30px;
}

.option-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.option-group label {
    flex-grow: 1;
    font-size: 1.05em;
    cursor: pointer;
    padding-left: 10px;
}

.option-group input[type="checkbox"] {
    appearance: none; 
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.option-group input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.option-group input[type="checkbox"]:checked::after {
    content: '✔';
    font-size: 16px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-group input[type="range"] {
    flex-grow: 1;
    -webkit-appearance: none; 
    appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    margin-right: 15px; 
    cursor: pointer;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4300fa;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.option-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#lengthValue {
    font-weight: bold;
    min-width: 30px;
    text-align: right;
}

#generateButton {
    background-color: #4300fa; 
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%; 
}

#generateButton:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#generateButton:active {
    transform: translateY(0);
}

