:root {
    --primary-color: #ca9546;
    --secondary-color: #31255a;
    --weak-color: #ff1100ff;
    --medium-color: #fbd38d;
    --strong-color: #68d391;
}

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

body {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    padding: 20px;
}

.container {
    background-color: #eee;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 450px;
}

h1 {
    text-align: center;
    margin-bottom: 28px;
    color: var(--primary-color);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 4px;
    background: linear-gradient(70deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
}

.password-container {
    margin-bottom: 32px;
    background-color: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px 0 0;
}

#password {
    width: 100%;
    padding: 18px;
    padding-right: 50px;
    font-weight: bold;
    border: none;
    background: transparent;
    color: #4a5568;
    letter-spacing: 1px;
    outline: none;
    border-radius: 10px;
}

#copy-btn {
    cursor: pointer;
    color: #718096;
    font-size: 18px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#copy-btn:hover {
    color: var(--primary-color);
}

.options {
    margin-bottom: 32px;
    background-color: #f8fafc;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.option label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 900;
}

.range-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 60%;
    
}

input[type="range"] {
    accent-color: var(--primary-color);
    height: 5px;
    cursor: pointer;
    flex: 1;    
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    appearance: none;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: "\2714";
    position: absolute;
    color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

#length-value {
    font-weight: 600;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
    background: #e2e8f0;
    border-radius: 4px;
    padding: 3px 6px;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(75deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 24px;
}
button:hover{
    transform: scale(1.03);
}

.strength-container {
    margin-top: 12px;
}

.strength-container p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

#strength-label {
    font-weight: bold;
    color: var(--primary-color);
}

.strength-meter {
    height: 10px;
    background-color: #ededed;
    border-radius: 5px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
}

.strength-bar {
    height: 100%;
    width: 0;
    min-width: 5%;
    background-color: var(--weak-color);
    transition: all 0.3s ease;
    border-radius: 5px;
}


@media (max-width: 768px) {
    .container{
        width: 95%;
        padding: 28px;
    }
    h1 {
        font-size: 26px;
    }
    .option label {
        font-size: 14px;
    }
}