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

body {
    font-family: "Poppins", sans-serif;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    background: #222936;
    /* background: #535451; */
}

.container {
    padding: 30px;
    min-width: 550px;
    /* background: #161912; */
    /* height: 100%; */
    /* height: 100vh; */
    /* text-align: center; */
    /* box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2); */
    /* backdrop-filter: blur(10px); */
    /* border-radius: 15px; */
    /* max-width: 450px; */
    
}
/* header{
    margin: 0 0 0 0;
} */
h1 {
    font-size: 36px;

}
h1 span {
    color: #84db8f;
}

button {
    padding: 12px 15px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: #63b686;
    color: white;
    transition: 0.3s;
}

button:hover {
    background: #74ac8f;
}
.gen-password{
    margin: 25px 0;
}

.btn-container{
    display: flex;
    gap: 10px;
    align-items: center;
}
.p-container{
    display: flex;
    gap: 10px;
    margin: 20px 0;
    min-width: 550px;
}
.password-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    /* padding: 8px; */
}
.password-container input {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 300ms ease, transform 300ms ease;
}

/* When password is generated*/
.password-container input.show {
    opacity: 1;
    transform: scale(1);
}
input {
    border: none;
    padding: 8px;
    max-width: 180px;
    font-size: 18px;
    text-align: center;
    background: transparent;
    color: #86d591;
    outline: none;
}

::placeholder {
    color: rgba(255, 255, 255, 0.7);
}


.toggle{
    display: flex;
    gap: 5px;
    align-items: center;
    position: relative;
}

.toggle input[type="checkbox"] {
    appearance: none;
    width: 35px;
    height: 35px;
    border: 2px solid #86d591;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.toggle input[type="checkbox"]:hover {
    background-color: rgba(134, 213, 145, 0.2);
}

.toggle input[type="checkbox"]:checked {
    background-color: #86d591;
    border-color: #63b686;
}

.toggle input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 10px;
    width: 7px;
    height: 12px;

    border: solid #222936;
    border-width: 0 2px 2px 0;
    transform: scale(1.5) rotate(30deg);
}

.copy-btn {
    /* padding: 8px 12px; */
    font-size: 16px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #2980b9;
}


.generation-count {
    margin-top: 10px;
    font-size: 16px;
    color: #86d591;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}
