/**
* generate-password.css
* version: 1.0.0 - 2024
*
* Copyright 2024 Rafael D. Ferreira
* File responsible for styling the modal generate password
*/
.result {
    position: relative;
    width: 100%;
    height: 65px;
    overflow: hidden;
}

.result__info {
    position: absolute;
    bottom: 4px;
    font-size: .8rem;
    transition: all 150ms ease-in-out;
    transform: translateY(200%);
    opacity: 0;
    text-align: center;
    display: block;
    width: 100%;
}

.result__info.right {
    color: #000;
    text-align: center;
}

.result__info.left {
    font-weight: bold;
    color: var(--color-green);
    text-align: center;
}

.result .result__viewbox {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.09);
    border-radius: .5rem;
    color: var(--primary-color);
    text-align: center;
    line-height: 65px;
    font-weight: bold;
}

#copy-btn {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: 38px;
    height: 38px;
    background: #FFFFFF;
    font-size: var(--font-large);
    border: 0;
    border-radius: 50%;
    opacity: 0;
    transition: all 350ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    z-index: 1002;
}

#copy-btn:active {
    box-shadow: 0 0 0 200px rgba(255, 255, 255, 0.08);
}


#copy-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.35);
}

.field-title {
    position: absolute;
    top: -10px;
    left: 8px;
    transform: translateY(-50%);
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    font-size: 0.65rem;
    pointer-events: none;
    user-select: none;
}

.options {
    width: 100%;
    height: auto;
    margin: 50px 0;
}

.range__slider {
    position: relative;
    width: 100%;
    height: calc(65px - 10px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.09);
    border-radius: .5rem;
    margin: 30px 0;
}

.range__slider::before,
.range__slider::after {
    position: absolute;
    color: #666666;
    font-size: 0.9rem;
    font-weight: bold;
}

.range__slider::before {
    content: attr(data-min);
    left: 10px;
}

.range__slider::after {
    content: attr(data-max);
    right: 10px;
}

.length__title::after {
    content: attr(data-length);
    position: absolute;
    right: -16px;
    font-variant-numeric: tabular-nums;
    color: #666;
}

#slider {
    -webkit-appearance: none;
    width: calc(100% - 65px);
    height: 2px;
    border-radius: 5px;
    background: var(--primary-color);
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/*Range Handle*/
#slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.15s ease-in-out;

}

#slider::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

#slider::-webkit-slider-thumb::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

#slider::-webkit-slider-thumb::-moz-range-thumb:hover {
    background: var(--secondary-color);
}

.settings {
    position: relative;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.setting {
    position: relative;
    width: 100%;
    height: calc(65px - 10px);
    background: rgba(0, 0, 0, 0.09);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 10px 25px;
    color: #0C128C;
    margin-bottom: 8px;
    font-weight: bold;
}

.setting input {
    opacity: 0;
    position: absolute;
}

.setting input + label {
    user-select: none;
}

.setting input + label::before,
.setting input + label::after {
    content: "";
    position: absolute;
    transition: 150ms cubic-bezier(0.24, 0, 0.5, 1);
    transform: translateY(-50%);
    top: 50%;
    right: 10px;
    cursor: pointer;
}

.setting input + label::before {
    height: 30px;
    width: 50px;
    border-radius: 30px;
    background: #CCCCCC;
}

.setting input + label::after {
    height: 24px;
    width: 24px;
    border-radius: 60px;
    right: 32px;
    background: #fff;
}

.setting input:checked + label:before {
    background: #0C128C;
    transition: all 150ms cubic-bezier(0, 0, 0, 0.1);
}

.setting input:checked + label:after {
    right: 14px;
}

.setting input:focus + label:before {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.setting input:disabled + label:before,
.setting input:disabled + label:after {
    cursor: not-allowed;
}

.setting input:disabled + label:before {
    background: #0C12A8;
    border: 2px solid #fff;
}

.setting input:disabled + label:after {
    background: #666;
}