/* Password Generator Card */
.pwd-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.5rem;
}

/* Type Selection */
.pwd-type-selection {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.pwd-type-btn {
    padding: 0.9rem 3rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
    font-family: "Roboto Slab", serif;
    text-transform: uppercase;
    color: #000;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pwd-type-btn.active {
    background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
    color: #fff;
}

/* Input Row & Field */
.pwd-input-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.pwd-input-field {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    flex: 1;
}

.pwd-input-field label {
    font-weight: 600;
    margin: 6px 0;
    color: #111;
}

.pwd-input-field input[type="number"] {
    width: 100%;
    padding: 13px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-weight: 400;
    font-family: "Roboto Slab", serif;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
}

/* Options */
.pwd-options-label {
    font-weight: 600;
    color: #111;
    width: 100%;
}

.pwd-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: -0.9rem;
}

/* Custom Checkbox Styling */
.pwd-checkbox-label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
    font-size: 1.1rem;
    color: #222;
    display: inline-flex;
    align-items: center;
}

/* Hide default checkbox */
.pwd-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom checkbox box */
.pwd-checkbox-label .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Hover effect */
.pwd-checkbox-label:hover .checkmark {
    border-color: #0F2BC9;
}

/* When checked */
.pwd-checkbox-label input:checked~.checkmark {
    background-color: #0F2BC9;
    border-color: #0F2BC9;
}

/* Checkmark tick */
.pwd-checkbox-label .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show tick when checked */
.pwd-checkbox-label input:checked~.checkmark:after {
    display: block;
}

/* Tick mark design */
.pwd-checkbox-label .checkmark:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Generate Button */
.pwd-btn-container {
    display: flex;
    justify-content: center;
}

.pwd-generate-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #0F2BC9 0%, #667eea 100%);
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
    font-family: "Roboto Slab", serif;
    border: none;
    border-radius: 8px;
    width: 40%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pwd-generate-btn:hover {
    transform: translateY(1px);
}

/* Result Card */
.pwd-result-card {
    max-width: 700px;
    margin: 1.75rem auto 0 auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    padding: 1rem;
    text-align: center;
}

/* Result Box */
.pwd-result-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0ebff 100%);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    font-size: 1.2rem;
    color: #111;
    width: 100%;
}

#pwdGeneratedText {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1; 
    margin-right: 1rem; 
}


.pwd-result-box i {
    font-size: 1.3rem;
    color: #000000;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pwd-result-box i:hover {
    color: #000;
}

/* Input Spinner Removal */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}


/***** Media Query *****/
/***** Standard tablets & landscape phones (≤768px) ******/
@media (max-width: 768px) {
.pwd-card {
    max-width: 700px;
    padding: 2.5rem;
}

.pwd-result-card {
    max-width: 600px;
}

.pwd-generate-btn {
    width: 70%;
}

.pwd-result-box {
    font-size: 1.1rem;
}
}

/***** Large smartphones & phablets (≤617px) ******/
@media (max-width: 617px) {
.pwd-card {
    max-width: 500px;
    padding: 2.5rem;
}

.pwd-type-selection {
    flex-direction: column;
}

.pwd-input-row {
    align-items: center;
    flex-direction: column;
}

.pwd-input-field {
    width: 100%;
}

.pwd-result-card {
    max-width: 500px;
}

.pwd-generate-btn {
    width: 100%;
}

.pwd-result-box {
    font-size: 1.1rem;
}

.pwd-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: -0.9rem;
}
}

/***** Small smartphones (≤450px) ******/
@media (max-width: 450px) {
.pwd-card {
    max-width: 400px;
    padding: 2.5rem;
}

.pwd-type-selection {
    flex-direction: column;
}

.pwd-checkbox-label {
    font-size: 1rem;
}

.pwd-input-row {
    align-items: center;
    flex-direction: column;
}

.pwd-input-field {
    width: 100%;
}

.pwd-result-card {
    max-width: 400px;
}

.pwd-generate-btn {
    width: 100%;
}

.pwd-result-box {
    font-size: 1rem;
}

.pwd-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: -0.9rem;
}

.pwd-result-box i {
    font-size: 1.1rem;
}
}

/***** Extra small phones & older devices (≤365px) ******/
@media (max-width: 365px) {
.pwd-card {
    max-width: 320px;
    padding: 1.5rem;
}

.pwd-type-selection {
    flex-direction: column;
}

.pwd-input-row {
    align-items: center;
    flex-direction: column;
}

.pwd-input-field {
    width: 100%;
}

.pwd-result-card {
    max-width: 320px;
}

.pwd-generate-btn {
    width: 100%;
}

.pwd-result-box {
    font-size: 1rem;
}

.pwd-checkbox-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: -0.9rem;
    margin-left: -9rem;
}

.pwd-result-box i {
    font-size: 1.1rem;
}
}

