body {
    font-family: sans-serif;
    background-color: #2c3e50; /* Dark background */
    color: #ecf0f1; /* Light text */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #34495e; /* Lighter container background */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
}

h1 {
    text-align: center;
    color: #ecf0f1;
    margin-bottom: 1.5rem;
}

.password-display-container {
    display: flex;
    margin-bottom: 1.5rem;
}

#password-display {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #95a5a6;
    border-radius: 25px 0 0 25px; /* Rounded corner */
    font-size: 1.1rem;
    background-color: #fff; /* White input field */
    color: #2c3e50; /* Dark text for input */
    padding-left: 20px;
    border-right: none;
}

#copy-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #e67e22;
    background-color: #e67e22; /* Orange control */
    color: white;
    cursor: pointer;
    border-radius: 0 25px 25px 0; /* Rounded corner */
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#copy-btn:hover {
    background-color: #d35400; /* Darker orange on hover */
}

#copy-btn.copied {
    background-color: #27ae60; /* Green for success */
}

.options-container {
    margin-bottom: 1.5rem;
}

.length-option {
    margin-bottom: 1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.option label {
    margin-bottom: 0.5rem;
}

.length-controls {
    display: flex;
    align-items: center;
}

.length-controls button {
    width: 35px;
    height: 35px;
    border: none;
    background-color: #e67e22; /* Orange control */
    color: white;
    cursor: pointer;
    border-radius: 50%; /* Fully rounded */
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    padding-bottom: 4px;
}

.length-controls button:hover {
    background-color: #d35400;
}

#length {
    flex-grow: 1;
    margin: 0 0.5rem;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #95a5a6;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
    border-radius: 5px;
}

#length:hover {
    opacity: 1;
}

#length::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #e67e22; /* Orange slider thumb */
    cursor: pointer;
    border-radius: 50%;
}

#length::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #e67e22; /* Orange slider thumb */
    cursor: pointer;
    border-radius: 50%;
}

/* Custom Checkbox */
.checkbox-label {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #95a5a6;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #bdc3c7;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #e67e22;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}


#generate-btn, #generate-multiple-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    background-color: #e67e22; /* Orange control */
    color: white;
    border: none;
    border-radius: 25px; /* Rounded corners */
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 1rem;
}

#generate-btn:hover, #generate-multiple-btn:hover {
    background-color: #d35400; /* Darker orange on hover */
}

.multi-password-container {
    margin-top: 1.5rem;
}

.passwords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    background-color: #2c3e50; /* Dark background for grid */
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #95a5a6;
}
