/* --- Password Generator Wrapper --- */
#pg-wrapper {
    font-family: 'Press Start 2P', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #111827;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 2px solid #374151;
    color: white;
}

/* --- Display Area --- */
.pg-display-container {
    width: 100%;
    background-color: #000;
    border: 4px solid #333;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pg-password-box {
    width: 100%;
    background: transparent;
    border: none;
    color: #00FFFF; /* Glitch Cyan */
    font-family: 'Press Start 2P', monospace, sans-serif;
    font-size: 1.5rem;
    text-align: center;
    word-break: break-all;
    outline: none;
    resize: none;
    height: auto;
    min-height: 1.5em;
    overflow-y: hidden;
}

.pg-strength-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #374151;
    border-radius: 3px;
    overflow: hidden;
}

.pg-strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pg-strength-label {
    font-size: 0.6rem;
    color: #9ca3af;
    text-align: right;
    text-transform: uppercase;
}

/* --- Controls Grid --- */
.pg-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    background-color: #1f2937;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #374151;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .pg-controls {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Settings Groups --- */
.pg-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pg-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
}

/* Range Slider */
.pg-range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg-range {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 6px;
    background: #000;
    border-radius: 3px;
    outline: none;
}

.pg-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #FBBF24;
    border: 2px solid #000;
    border-radius: 50%;
    cursor: pointer;
}

.pg-num-input {
    width: 60px;
    background: #000;
    border: 1px solid #4b5563;
    color: white;
    padding: 5px;
    font-family: 'Press Start 2P', monospace, sans-serif;
    text-align: center;
    border-radius: 4px;
}

/* Checkboxes */
.pg-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.pg-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.7rem;
    color: #d1d5db;
    user-select: none;
}

.pg-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #FBBF24;
    cursor: pointer;
}

/* --- Actions --- */
.pg-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

@media (min-width: 600px) {
    .pg-actions {
        flex-direction: row;
    }
}

.pg-btn {
    padding: 15px;
    font-family: inherit;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s ease;
    border-bottom: 4px solid rgba(0,0,0,0.3);
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pg-btn:active {
    transform: translateY(4px);
    border-bottom: none;
    margin-top: 4px;
}

.pg-btn-gen {
    background-color: #10b981; /* Green */
    color: #064e3b;
    border-bottom-color: #059669;
}
.pg-btn-gen:hover { background-color: #34d399; }

.pg-btn-copy {
    background-color: #3b82f6; /* Blue */
    color: #1e3a8a;
    border-bottom-color: #1d4ed8;
}
.pg-btn-copy:hover { background-color: #60a5fa; }

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #pg-wrapper { padding: 15px; }
    .pg-password-box { font-size: 1.1rem; }
}