* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1b2a30, #1c3840, #2a4f60);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #f8f9fa;
}

.wrap {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    animation: fadeIn 1s ease-in-out;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.display-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.display-container input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: none;
    outline: none;
}

.copyBtn {
    position: absolute;
    right: 1.5rem;
    border: transparent;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s;
}

.copyBtn:hover {
    background-color: rgb(104, 255, 255);
}


.copyMsg {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copyMsg.active {
    opacity: 1;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.length-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider {
    appearance: none;
    width: 100%;
    cursor: pointer;
    background-color: #1abc9c;
    border-radius: 1rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    height: 0.75rem;
    background-repeat: no-repeat;
    border: none;
    outline: none;
    z-index: 2;
    background: transparent;
}

.slider::-webkit-slider-thumb {
    z-index: 1;
    appearance: none;
    height: 1.4rem;
    width: 1.4rem;
    border-radius: 80%;
    background-color: rgb(61, 144, 144);
    cursor: pointer;
    margin-top: -3px;
    box-shadow: 0px 0px 20px 0px rgba(255, 229, 61, 0.50);
    transition: all 100ms ease-in;
}

.slider:focus {
    outline: 3px solid transparent;
}

.slider::-webkit-slider-thumb:hover {
    outline: 2px solid rgb(255, 255, 255);
    background-color: rgb(80, 78, 78);
    box-shadow: 0px 0px 20px 0px rgba(255, 229, 61, 0.50);

}

label {
    display: flex;
    align-items: center;
    font-size: 16px;
    gap: 10px;
    color: #ecf0f1;
}

.strength-container span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.indicator {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(37, 35, 35, 0.2);
}

.generateButton {
    background: #1abc9c;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.generateButton:hover {
    background-color: #16a085;
}

.check {
    display: flex;
    align-items: baseline;
    gap: 0 1rem;
    flex-direction: column;
    margin: 1 rem 0;
}

.check input {
    appearance: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: relative;
    border-radius: 0.35rem;
    border: 1px solid rgb(73, 220, 220);
}

.check input:checked {
    background-color: rgb(30, 107, 107);
}

.check input:checked::before {
    position: absolute;
    content: '✔';
    font-size: 1.05rem;
    font-weight: 600;
    left: 15%;
    top: -3.5px;
    transform: translateY(-1%);

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 600px) {
    .wrap {
        padding: 20px;
    }

    h1 {
        font-size: 22px;
    }

    .display-container input {
        font-size: 14px;
    }

    .generateButton {
        font-size: 14px;
        padding: 10px;
    }

    label {
        font-size: 14px;
    }

    .length-container h3,
    .length-container p {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .display-container button i {
        font-size: 18px;
    }
}